This is related to my thread in xmlLinguist forum on features.
I imported an xml file which looks like this:
<?xml version="1.0" encoding="utf-8"?><EDI_Info> <HeaderInfo> <DocType>278</DocType> <DocDate>10/18/04</DocDate> <DocTime>3:08 pm</DocTime> </HeaderInfo> <PayerInfo> <ID></ID> </PayerInfo> <RequesterInfo> <ID></ID> </RequesterInfo> <SubscriberInfo> <LastName>JONES II</LastName> <FirstName>Erle</FirstName> <MiddleName></MiddleName> <Suffix></Suffix> <Subscriber-Member>126701759000</Subscriber-Member> <SrcSystem-Plan>WGS2BCC</SrcSystem-Plan> </SubscriberInfo> <DiagnosisInfo> <DiagnosisCodeQualifier>BK</DiagnosisCodeQualifier> <DiagnosisCode>7999</DiagnosisCode> </DiagnosisInfo> <ClaimNotesInfo> <ClaimNotes></ClaimNotes> </ClaimNotesInfo> <ServiceProviderInfo> <LastName>Lewis</LastName> <FirstName>John</FirstName> <MiddleName></MiddleName> <Suffix></Suffix> <ID>123456789</ID> <ProviderID>+LewiJA00106</ProviderID> <SrcSystem>MATRIX</SrcSystem> </ServiceProviderInfo> <ServiceLevelInfo> <TraceTypeCode1></TraceTypeCode1> <ClaimNo1>ClaimNo</ClaimNo1> <OrigCoID1></OrigCoID1> <OrigClaimNo1></OrigClaimNo1> <TraceTypeCode2></TraceTypeCode2> <ClaimNo2></ClaimNo2> <OrigCoID2></OrigCoID2> <OrigClaimNo2></OrigClaimNo2> <TraceTypeCode3></TraceTypeCode3> <ClaimNo3></ClaimNo3> <OrigCoID3></OrigCoID3> <OrigClaimNo3></OrigClaimNo3> <ServiceCode></ServiceCode> </ServiceLevelInfo> <DrugInfo> <Drug> <DrugCode>01698</DrugCode> <BeginDate>3/3/04</BeginDate> <EndDate>6/3/04</EndDate> <Quantity>4</Quantity> </Drug> </DrugInfo></EDI_Info>
With regards to the <DrugInfo> section:
I want to have exactly 12 <Drug> sections in the resulting file. So, I went in and edited the Drug section of the tree area. I don't know what Inline means, but I assume it's related to a complex type. I couldn't figure out how to add a Drug line under the DrugInfo line, so I had to re-design my source xml file and re-import it. Also, there is no available properties area for that inline type line. So I customized the columns and added min & max occurrances columns, and entered 12 in each on the Drug line. This did update the text area below.
So, exporting the file as xml sample didn't really help, I expected it to now have 12 Drug nodes, which it didn't. I'd like to "push" the original xml file through this schema and see what comes out, but I don't exactly know how. Could you explain how to do this? Maybe a vbScript sample, such as the xml-to-850 one that comes with xmlLinguist?
Thanks...
