
johann_p
Novice
Feb 28, 2007, 3:17 AM
Post #1 of 2
(309 views)
|
|
Best XML Module for ...
|
Can't Post
|
|
There seem to be a lot of modules on CPAN for handling XML and I am a bit confused what their respective advantages and limitations are. Can you recommend which module would be most easy to use and still handle the following things: * (most important) there should be an easy way to create or access content of tags that again can contain tags like e.g. <mytag1 attr1="somevalue">this is the content of mytag1<mytag2 nr="1" /> but with <mytag2 attr="abc"> other tags included</mytag1> It is absolutely essential to keep and manipulate the exact order of the embedded tags. * should be able to handle encodings * should be able to automatically escape characters apropriately, e.g. replace ">" by ">" in the content of a tag. * should be able to parse from a string and create into a string Documents are not very large, so this can be based on a parser that parses everything into memory at once. Also speed is not all too important.
|