I have some data in XML format:
I need to process the above data using some Perl XML parser with the following constraints:
1) I have certain checks that I need to apply on the above data (using DTD).
2) Also, in the above example the user may or may not give certain "arg" names and values for example "NUMBER". In that case I need to take some default value (present in the XML file itself).
3) Also, as can be seen above I need a parser which supports different structures for different "options". For example: option QUEUE takes a scalar value, option LICENSE takes a hash-like structure and option RUN_OS takes an array-like structure.
I was using XML::Simple until now, but that doesn't do anything about DTD nor about default values. My question to you wise monks is how do I go about chossing the XML parser/checker with the above constraints. Any specific names will be greatly appreciated.