I was wondering, is there anyway to have the XML::Simple module ignore tag attributes when reading in an XML file. Also is there anyway to tell the module to only parse out a certain subset of tags? Any and all help is greatly appreciated!
NoAttr => 1 *# in+out - handy*
When used with "XMLout()", the generated XML will contain no attributes.
All hash key/values will be represented as nested elements instead.
When used with "XMLin()", any attributes in the XML will be ignored.
For your selective tag parsing question, I'm not sure XML::Simple can do that. Depending on how complicated your XML document is, it might not be too much work to build some custom handlers for XML:arser. Otherwise, you might want to take a look at the other XML modules on CPAN and find one that will do what you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.