
October 22nd, 2003, 02:32 AM
|
|
Junior Member
|
|
Join Date: Oct 2003
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
modify xml and save to text file
hi pls help. here's what i want to do.
i have an xml file and i want to remove the tags, place them in a columnar format (tab delimited) and save them to a text file. how will i code it?
example:
xml file
<?xml version ="1.0"?><MEMBER><ABC><TYPE>PERSON</TYPE><NUM>89</NUM><AGE>35</AGE><STATCODE>M</STATCODE><DESC>Married</DESC></ABC><HEADER SEGMENT="1"><NAME>PIA</NAME><TEL>4550095</TEL><HEIGHT>58</HEIGHT><SURNAME>BRIGHT</SURNAME><DETAIL SEGMENT="1"><CITY>NY City</CITY><SALARY>300000</SALARY><COMPANY>POINTBLANK</COMPANY></DETAIL></HEADER></MEMBER>
output text file:
PERSON 89 35 M Married
PIA 4550095 58 BRIGHT
NY City 300000 POINTBLANK
kindly help. thanks!
|