Hi
I've a xml file, and i just want to unformat the whole file to something like data file(single line).
I used
xyz=`cat myfile.xml`;echo $xyz>trout. It does pretty good job, but it change few patterns to control characters.. like /00 & /e to some control characters...
below is a sample xml like file.
eg:
<?xml version="1.0" encoding="utf-8"?>
<test>
<money>$200</money>
<path>/usr/sdear/00123/efb001.txt</path>
</test>
Is there any way to get a output like the one shown below..(all in a line)
<?xml version="1.0" encoding="utf-8"?> <test> <money>$200</money> <path>/usr/sdear/00123/efb001.txt</path> </test>
Thanks.
I've a xml file, and i just want to unformat the whole file to something like data file(single line).
I used
xyz=`cat myfile.xml`;echo $xyz>trout. It does pretty good job, but it change few patterns to control characters.. like /00 & /e to some control characters...
below is a sample xml like file.
eg:
<?xml version="1.0" encoding="utf-8"?>
<test>
<money>$200</money>
<path>/usr/sdear/00123/efb001.txt</path>
</test>
Is there any way to get a output like the one shown below..(all in a line)
<?xml version="1.0" encoding="utf-8"?> <test> <money>$200</money> <path>/usr/sdear/00123/efb001.txt</path> </test>
Thanks.