|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Comparing 2 XMLs for differences in structure / X path of th
We have incoming XMLs from another system and we essentially have a translation with one-to-one xpath mapping to our xml model. What we will be doing is adding a schema validation to the given incoming feed. The content inside this XML structure will be updated on a regular basis and that is what we want. But, if anytime the X-Path Mapping between the Source XML and Destination XML is broken we want to be able to know that a given source element/attribute was not present in the SOURCE XML. The way we want to maybe do this is have a SAMPLE / REFERENCE SOURCE XML that has the "correctly mapped" structure. We will always want to do a structure compare between the incoming SOURCE XML and the reference XML. This is something that can not be captured by XSDs (or can it?). XSDs might end up generalizing the structure and allow validation even when a certain number elements have disappeared and that breaks the MAPPING. Also, if we do an XML Diff since the content will essentially have been updated we don't want a CONTENT-TO-CONTENT comparison (that will always change). We want a STRUCTURE-to-STRUCTURE i.e. Absolute X-PATH to Absolute X-Path mapping validation. Any ideas? How we could go about doing this? Please comment. Thanks, ____________________________________________________________ Abhishek Sanwal HP - Houston Campus ............................................................
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








