Dear Friends,

Is there a way to convert/transform a text source to directly to XML using
stylesheets and Xalan C++ ? 
* I want to build a cmd line utility that behaves like >transform a.txt to
a.xml using a.xsl

I have input source that looks like:
-----
Dataobj1;instance1;date1;time1;number;type1;val1;val2;val3
Dataobj1;instance1;date2;time2;number;type1;val1;val2;val3
...

-----
and wish to convert this text stream to something like:

<file>
<header>
        <period Date='date1' Time='time1' />
</header>
<mData>
<mValue dn="Dataobj1=instance1" Type="type1">
        <mRes>val1 val2 val3</mRes>
</mVale>
<mValue dn="Dataobj1=instance2" Type="type1">
        <mRes>val1 val2 val3</mRes>
</mData>
...
<footer>
        <period Date='date2' Time='time2' />
</footer>
</file>

Any leads would be helpful.

regards,
Arun

Reply via email to