This is more of XML'y rather than Perl'y question but perhaps it is common knowledge here...
Assume that I have XML file that describes physical configuration - for the sake of argument letsay it is about
Item (that has TYPE and some internal ID)
Container (that has TYPE and some internal ID)
So XML file describes collection of items sitting in containers.
So now I have two files - each one describes some collection of items of some TYPE sitting in container of certain TYPE.
How can I verify that those two files describe same physical configuration?
Is it a common XML problem and there is some module somewhere that can be helpful in developing script to compare two configuration?
TIA for any pointers, keywords etc...
PS. My real life problem deals with configuration that has much more depth than mere items and containers.
PS2."internal ID" has no relevance outside of given file - but inside the file it may be used to describe to refer to element as part of some construct (eg some other relation beyond containment).
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.