I have not yet written a schema for the xml output files. It should
be possible to write XSLT from the maps that would validate
properly.
It probably is not obvious, but there are two strategies for
converting an X12 docuemtn to a xml document:
x12xml_idtag:
<L2400>
<LX>
<LX01>1</LX01>
</LX>
<SV1>
<SV1>
<SV101-01>HC</SV101-01>
<SV101-02>T1017</SV101-02>
</SV1>
<SV102>262.80</SV102>
<SV103>UN</SV103>
<SV104>1</SV104>
<SV1>
<SV107-01>1</SV107-01>
</SV1>
</SV1>
x12xml_simple:
<loop id='2400'>
<seg id='LX'>
<ele id='LX01'>1</ele>
</seg>
<seg id='SV1'>
<comp id='SV1'>
<subele id='SV101-01'>HC</subele>
<subele id='SV101-02'>T1017</subele>
</comp>
<ele id='SV102'>262.80</ele>
<ele id='SV103'>UN</ele>
<ele id='SV104'>1</ele>
<comp id='SV1'>
<subele id='SV107-01'>1</subele>
</comp>
They are controlled in x12n_document.py. I'll add a command line
switch for it in the next release.
On Mon, Apr 19, 2004 at 11:49:49AM -0400, Darren Hartford wrote:
> Hey all,
> I don't suppose anyone has some .XSD schema files for XML generated from pyx12 for the 835 series do they?
--
John Holland
jo...@zo...
http://www.zoner.org
|