Hi,
I am pretty new to XML and was wondering how I would go about doing this.....
THIS IS AN EXTRACT OF WHAT I HAVE GOT AT PRESENT
<?xml version="1.0"?>
<BatchRequest004>
<header>
<system>CCeS</system>
<timestamp>20040228124525</timestamp>
<userid>NWAR-X004</userid>
<batchInfo>March 2004 validation</batchInfo>
</header>
<statusRqst>
<crn>206095476A</crn>
<name>AUBREY</name>
<Ass>10016</Ass>
</statusRqst>
<statusRqst>
<crn>205103573T</crn>
<name>HOLMES</name>
<Ass>10017</Ass>
</statusRqst>
<statusRqst>
<crn>205993041B</crn>
<name>HARRADINE</name>
<Ass>10022</Ass>
</statusRqst>
I WANT IT TO LOOK LIKE THIS...
<?xml version="1.0"?>
<BatchRequest004>
<header>
<system>CCeS</system>
<timestamp>20040228124525</timestamp>
<userid>NWAR-X004</userid>
<batchInfo>March 2004 validation</batchInfo>
</header>
<statusRqst id="10016">
<crn>206095476A</crn>
<name>AUBREY</name>
</statusRqst>
<statusRqst id="10017">
<crn>205103573T</crn>
<name>HOLMES</name>
</statusRqst>
<statusRqst id="10022">
<crn>205993041B</crn>
<name>HARRADINE</name>
</statusRqst>
THE ID NUMBERS INSERTED IN <statusRqst id="xxxxx"> ARE NOT CONSECUTIVE NUMBERS BUT ARE DERIVED AS IN THE ORIGINAL EXTRACT AS ABOVE...there over 6000 records, so it's a bot of a task to do it manually..
The editor that I am using is XMLShell v1.5
Any assistance would be greatly appreciated.
Ken
I am pretty new to XML and was wondering how I would go about doing this.....
THIS IS AN EXTRACT OF WHAT I HAVE GOT AT PRESENT
<?xml version="1.0"?>
<BatchRequest004>
<header>
<system>CCeS</system>
<timestamp>20040228124525</timestamp>
<userid>NWAR-X004</userid>
<batchInfo>March 2004 validation</batchInfo>
</header>
<statusRqst>
<crn>206095476A</crn>
<name>AUBREY</name>
<Ass>10016</Ass>
</statusRqst>
<statusRqst>
<crn>205103573T</crn>
<name>HOLMES</name>
<Ass>10017</Ass>
</statusRqst>
<statusRqst>
<crn>205993041B</crn>
<name>HARRADINE</name>
<Ass>10022</Ass>
</statusRqst>
I WANT IT TO LOOK LIKE THIS...
<?xml version="1.0"?>
<BatchRequest004>
<header>
<system>CCeS</system>
<timestamp>20040228124525</timestamp>
<userid>NWAR-X004</userid>
<batchInfo>March 2004 validation</batchInfo>
</header>
<statusRqst id="10016">
<crn>206095476A</crn>
<name>AUBREY</name>
</statusRqst>
<statusRqst id="10017">
<crn>205103573T</crn>
<name>HOLMES</name>
</statusRqst>
<statusRqst id="10022">
<crn>205993041B</crn>
<name>HARRADINE</name>
</statusRqst>
THE ID NUMBERS INSERTED IN <statusRqst id="xxxxx"> ARE NOT CONSECUTIVE NUMBERS BUT ARE DERIVED AS IN THE ORIGINAL EXTRACT AS ABOVE...there over 6000 records, so it's a bot of a task to do it manually..
The editor that I am using is XMLShell v1.5
Any assistance would be greatly appreciated.
Ken