Hello fellow monkers,
I am trying to devise a way of getting information from an XML document. The document in question is created dynamically when a user chooses specific search criteria on, say, a web page. Though i have no idea what crieteria they may have chosen. (Its for a web service if that helps).
What i can't figure out is how to get a list of all the nodes that are present in the document and then locate the one im after, without having to type each possible combination in. I know the node i want to search for, but, it may be nested deep within some other nodes, or may be at the very top. I just dont know.
I have looked at XML::Simple, XML::Parser, XML:Smart, but im still not clued up.
Any help would be realy great.
MonkPaul
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.