I have 1 big XML file that I need to process and create multiple smaller XML files. I need to create multiple XML files based on the lob attribute and the region node. (example XML snippet below). The dealrow can have 3 different lob values and 5 different region nodes. So I would need to create a separate XML file for the "hotelbased" lob in the "Southwest" region. Then possibly a "cruise" lob in the "North" region.
BIG XML FILE
Code:
<?xml version="1.0" encoding="utf-8"?>
<campaign>
<dealrow lob="hotelbased">
<region>Southwest</region>
<subregion>Arizona</subregion>
<destination>Page</destination>
<hotelname><![CDATA[Quality Inn at Lake Powell]]></hotelname>
<starrating>3</starrating>
<traveleropinion>3.5</traveleropinion>
<traveleropinioncount>40</traveleropinioncount>
<price rank="1">89</price>
<price rank="2">239</price>
</dealrow>
</campaign>
--
Victor Corey