XML::Struct for document-oriented XML
Jakob Voß <[email protected]> Mon, 9 Sep 2013 12:30:40 +0200
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I was missing something like XML::Simple for document-oriented XML, =
where element order is relevant. So I created XML::Struct:
http://blogs.perl.org/users/jakob/2013/09/another-approach-to-xml-processin=
g.html
For instance
<root>
<foo>text</foo>
<bar key=3D"value"> <!-- mixed content here: -->
text
<doz/>
</bar>
</root>
can be transformed to this structure (and back):
[
root =3D> { }, [
[ foo =3D> { }, "text" ],
[ bar =3D> { key =3D> "value" }, [
"text",
[ doz =3D> { } ]
]
]
]
The module is fully based on XML::LibXML and I found not difference in =
speed compared to XML::LibXML::Simple.
Jakob
-- =
Jakob Vo=DF <[email protected]>, skype: nichtich
Verbundzentrale des GBV (VZG) / Common Library Network
Platz der Goettinger Sieben 1, 37073 G=F6ttingen, Germany
+49 (0)551 39-10242, http://www.gbv.de
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs