?

Log in

No account? Create an account

Previous Entry | Next Entry

So it seems there are fifteen-million Perl XML libraries, but for the most part they all focus on parsing XML, not creating it. Also all of the docs surrounding them focus on parsing. Even O'Reilly's Perl & XML book barely focuses on creation. Right now though, I need to create XML with Perl. Doing it by hand is lame. Been playing with XML::Writer, but its namespace support either sucks or is just so complicated that it needs more docs than the virtually nonexistent ones. bleh

Comments

( 2 comments — Leave a comment )
(Deleted comment)
daveman692
Dec. 12th, 2005 03:17 am (UTC)
Yeah, looked at it a bit. Means building up a rediculous object of nested hashrefs and arrayrefs inorder to deal with attributes vs values. Not to mention it doesn't seem to handle namespaces at all. From reading XML::Simple, it seems like I could make it do what i wanted, with the exception of namespaces, but if I ever needed to do anything more complicated I'd have to use something else.
mahlon
Dec. 12th, 2005 05:16 pm (UTC)
XML::Simple is... well... too simple for most tasks. It's great for sucking in quick XML for data structure manipulation, and "little" XML out chunks, like for XML-RPC. If you need to do anything serious, you should use XML::LibXML.

(Please ignore / don't unscreen my first anon comment. I'm on a new computer and forgot I wasn't logged in. Duhr.) :)
( 2 comments — Leave a comment )