Hi All,
I'm new to xmlquery and I trying to combine to xml files so that I can produce a third file which contains a smaller dataset ie fileA.xml - fileB.xml = fileC.xml
I have the following XML Schemas
could any on help me ?
The query need to remove all the product nodes that contain a matching catalogueNumber in the second file? and output the result in a third file.
Hope you can help me with the query
Thanks
Zapster
I'm new to xmlquery and I trying to combine to xml files so that I can produce a third file which contains a smaller dataset ie fileA.xml - fileB.xml = fileC.xml
I have the following XML Schemas
could any on help me ?
Code:
FileA.xml
<Products>
<Product>
<brand></brand>
<catalogueNumber>AA05715</catalogueNumber>
<category>Women | Brands | Dresses & Skirts</category>
<colour></colour>
<colours></colours>
<gender></gender>
<image></image>
<keyword></keyword>
<keywords></keywords>
<longDescription>Contrast trims and distressing detail. Length 14ins. Cotton. Machine washable. Light-wash.</longDescription>
<modelNumber></modelNumber>
....
....
.....
</Product>
<Product>
....
</Product>
</Products>
FileB.xml
<Exclude>
<catalogueNumber>AA01111</catalogueNumber>
<catalogueNumber>AA05715</catalogueNumber>
<catalogueNumber>AA22222</catalogueNumber>
....
....
</Exclude>
The query need to remove all the product nodes that contain a matching catalogueNumber in the second file? and output the result in a third file.
Hope you can help me with the query
Thanks
Zapster