Hi,
I have this kind of file (with indenting tabs):
I want it to be split into different files with a given number of nodes in each file.
So file 1 would be:
And file 2 would be:
Any idea if there is a way of doing it in UltraEdit? I looked through the forum but couldn't find any. I found ways of doing it online using some other softwares but wasn't familiar to those. 69
I have this kind of file (with indenting tabs):
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<products>
<product>
<product_id>62455</product_id>
<model>76171570018</model>
<image><![CDATA[http://s7d9.scene7.com/is/image/JCPenney/DP0929201617164410M?wid=2000&hei=2000&op_sharpen=1]]></image>
<price>69.9900</price>
<category>Rugs</category>
<brand>KALEEN</brand>
<brand2>KALEEN </brand2>
<title>Kaleen Brisa Tiles Negative Rectangular Rugs</title>
<productpageurl><![CDATA[http://www.appliance.com/index.php?route=product/product&modelnumber=76171570018&path=1&product_id=62455]]></productpageurl>
</product>
<product>
<product_id>62456</product_id>
<model>76171450026</model>
<image><![CDATA[http://s7d9.scene7.com/is/image/JCPenney/DP0929201617163413M?wid=2000&hei=2000&op_sharpen=1]]></image>
<price>189.9900</price>
<category>Rugs</category>
<brand>KALEEN</brand>
<brand2>KALEEN </brand2>
<title>Kaleen Brisa Tiles Positive Rectangular Rugs</title>
<productpageurl><![CDATA[http://www.appliance.com/index.php?route=product/product&modelnumber=76171450026&path=1&product_id=62456]]></productpageurl>
</product>
</products>
So file 1 would be:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<products>
<product>
<product_id>62455</product_id>
<model>76171570018</model>
<image><![CDATA[http://s7d9.scene7.com/is/image/JCPenney/DP0929201617164410M?wid=2000&hei=2000&op_sharpen=1]]></image>
<price>69.9900</price>
<category>Rugs</category>
<brand>KALEEN</brand>
<brand2>KALEEN </brand2>
<title>Kaleen Brisa Tiles Negative Rectangular Rugs</title>
<productpageurl><![CDATA[http://www.appliance.com/index.php?route=product/product&modelnumber=76171570018&path=1&product_id=62455]]></productpageurl>
</product>
</products>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<products>
<product>
<product_id>62456</product_id>
<model>76171450026</model>
<image><![CDATA[http://s7d9.scene7.com/is/image/JCPenney/DP0929201617163413M?wid=2000&hei=2000&op_sharpen=1]]></image>
<price>189.9900</price>
<category>Rugs</category>
<brand>KALEEN</brand>
<brand2>KALEEN </brand2>
<title>Kaleen Brisa Tiles Positive Rectangular Rugs</title>
<productpageurl><![CDATA[http://www.appliance.com/index.php?route=product/product&modelnumber=76171450026&path=1&product_id=62456]]></productpageurl>
</product>
</products>