XML::Parser::Wrapper

Software captura de pantalla:
XML::Parser::Wrapper
Detalles de software:
Versión: 0.15
Fecha de carga: 14 Apr 15
Promotor: Don Owens
Licencia: Libre
Popularidad: 3

Rating: nan/5 (Total Votes: 0)

XML :: Parser :: Wrapper es un módulo Perl para analizar XML. XML :: Parser :: Wrapper es un contenedor en la parte superior de XML :: Parser que proporciona una API más amigable
SINOPSIS
uso de XML :: Parser :: Wrapper.;
mi $ xml = qq {Hello World!};
mi $ root = XML :: Parser :: Wrapper-> new ($ xml);
mi $ root2 = XML :: Parser :: Wrapper-> new ({file => '/tmp/test.xml'});
mi root_tag_name $ = $ root-> nombre;
mis $ roots_children = $ Raíz> elementos;
foreach my $ element (@ $ roots_children) {
if ($ element-> nombre eq "cabeza") {
mi $ id = $ elemento-> attr ('id');
mi hello_world_text $ = $ elemento-> texto; # Eq "Hello World!"
}}

Mi head_element $ = $ root-> elemento ('head2');
mis $ head_elements = $ Raíz> elementos ( 'head2');
mi $ test = $ root-> elemento ('head2') -> elemento ('test_tag');
mi new_element $ = $ root-> add_child ('test4', {attr1 => 'val1'});
mi niño $ = $ root-> update_kid ('root_child', {attr2 => 'stuff2'}, 'bla');
$ niño-> update_node ({new_attr => 'new_stuff'});
$ new_element-> add_child ("niño", {"cosas" myattr =>}, 'bleh');
mi new_xml $ = $ raíz -> to_xml;

Requisitos :

  • Perl

Programas parecidos

manspider
manspider

20 Feb 15

markup.py
markup.py

14 Apr 15

markdown2Mathjax
markdown2Mathjax

14 Apr 15

GeSHi
GeSHi

20 Feb 15

Comentarios a la XML::Parser::Wrapper

Comentarios que no se encuentran
Añadir comentario
A su vez en las imágenes!