Hello all,
I would appreciate help with the following. The aim is to extract XML (tagged) data from within an xml file. The data itself is free format and potentially could exist in the file in various positions. The tags are known, eg <nedn/> being one of the tags.
I need to read the tagged data, that data that exist between the xml tags; <nedn>test_data</nedn> and write the output to an external text file.
I have copied an extract of the data (XML) file into the thread for your persual.
Any help would be appreciated.
Thanks
Alf
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="MeasDataCollection.xsl"?>
<!DOCTYPE MeasDataCollection SYSTEM "MeasDataCollection.dtd">
<mdc xmlns:HTML="<mfh>
<ffv>1</ffv>
<sn>System=MS, ManagementServer=ManagementServer</sn>
<st></st>
<vn>Ericsson</vn>
<cbt>200402180000</cbt>
</mfh>
<md>
<neid>
<neun>SK1</neun>
<nedn>System=MS, Sitekeeper=SK1</nedn>
</neid>
<mts>200402191600</mts>
<gp>900</gp>
<mt>Resource,CPU load</mt>
<mt>Resource,RAM used</mt>
<mt>Resource,Disk used</mt>
<mt>Accounting,Radius events</mt>
<moid>Calls=1,Orig calls=1,SK release - no route</moid>
<r>0</r>
The tags that I am interested in are as follows;
nedn
mts
gp
moid
r
thanks in advance
Regards
Alf
I would appreciate help with the following. The aim is to extract XML (tagged) data from within an xml file. The data itself is free format and potentially could exist in the file in various positions. The tags are known, eg <nedn/> being one of the tags.
I need to read the tagged data, that data that exist between the xml tags; <nedn>test_data</nedn> and write the output to an external text file.
I have copied an extract of the data (XML) file into the thread for your persual.
Any help would be appreciated.
Thanks
Alf
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="MeasDataCollection.xsl"?>
<!DOCTYPE MeasDataCollection SYSTEM "MeasDataCollection.dtd">
<mdc xmlns:HTML="<mfh>
<ffv>1</ffv>
<sn>System=MS, ManagementServer=ManagementServer</sn>
<st></st>
<vn>Ericsson</vn>
<cbt>200402180000</cbt>
</mfh>
<md>
<neid>
<neun>SK1</neun>
<nedn>System=MS, Sitekeeper=SK1</nedn>
</neid>
<mts>200402191600</mts>
<gp>900</gp>
<mt>Resource,CPU load</mt>
<mt>Resource,RAM used</mt>
<mt>Resource,Disk used</mt>
<mt>Accounting,Radius events</mt>
<moid>Calls=1,Orig calls=1,SK release - no route</moid>
<r>0</r>
The tags that I am interested in are as follows;
nedn
mts
gp
moid
r
thanks in advance
Regards
Alf