Hi,, I am new to xml. I would like to split an incoming xml based on a
certain criteria. For example In comming XML:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
<TRANS>
<ID>009</ID>
<DESC>New Product</DESC>
<VENDOR>
<NAME>ACME</NAME>
<ADDRESS>45 Cross Street</ADDRESS>
</VENDOR>
<BRANCH>4007</BRANCH>
<BRANCH>5007</BRANCH>
<BRANCH>6007</BRANCH>
</TRANS>
My output should be as follows:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
<TRANS>
<ID>009</ID>
<DESC>New Product</DESC>
<VENDOR>
<NAME>ACME</NAME>
<ADDRESS>45 Cross Street</ADDRESS>
</VENDOR>
<BRANCH>4007</BRANCH>
</TRANS>
========================================================================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
<TRANS>
<ID>009</ID>
<DESC>New Product</DESC>
<VENDOR>
<NAME>ACME</NAME>
<ADDRESS>45 Cross Street</ADDRESS>
</VENDOR>
<BRANCH>5007</BRANCH>
</TRANS>
========================================================================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
<TRANS>
<ID>009</ID>
<DESC>New Product</DESC>
<VENDOR>
<NAME>ACME</NAME>
<ADDRESS>45 Cross Street</ADDRESS>
</VENDOR>
<BRANCH>6007</BRANCH>
</TRANS>
Thanks in advance
Sudeep
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list