When it comes to XML, you have to remember that it is like most every other computer "language" out there (like HTML, basic, etc.) in the syntax and structure.
For each "open" tag you have to have a "close" tag. In HTML, you could have <B>BOLD</B> or something similar to create a BOLD typefont. XML is the same - you have an OPEN TAG and a CLOSE TAG: <Name>EDI-L GROUP</Name> and you'd see EDI-L GROUP. And the tags MUST be the same... For example, if you OPEN with <TRACKINGNUMBER> you cannot "close" with <TRACKNO.> - it won't work. Consequently, you must have the same TAGS as your trading partners - again, no deviations in spelling or TAG names. Even a slight mis-spelling could create problems <TRACKINGNUMBER> vs <TRAKCINGNUMBER>.... I'd written a blog about EDI vs XML a while back at the ETITalk site (http://editalk.com/edi-news/2008/03/25/edi-vs-xml-how-readable-is- xml/) Craig Dunham EDI Coordinator http://editalk.com --- In [email protected], "vanirams05" <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for your suggestions. > I am able to read the data something like this > <TRACKINGNUMBER></TRACKINGNUMBER>. > But coming to <TRACKINGNUMBER/>,even is use emptyelement,i am > getting the same error. > I am not using any XML parser/XML Plug-ins. > > Regards, > Vani > > > --- In [email protected], Francis Upton <francisu@> wrote: > > > > It's possible that the XML parser used by GXS does not recognize > the > > empty element optimization (though that seems so odd that an XML > parser > > would be that broken). You might want to try the tracking number > as > > <TRACKINGNUMBER></TRACKINGNUMBER> to see if that works. Oh dear, > as I > > look further at the message it's clear that you are not using an > XML > > parser, but some way of configuring GXS to handle XML. You are > missing > > the rules to allow for the empty element optimization, though I > don't > > know how you would specify them. > > > > The original XML is fine, the TRACKINGNUMBER element is empty, > which is > > represented by <TRACKINGNUMBER/> (note the slash at the end of the > > tag). This is an optimization allowing an empty element to be > expressed > > with a single tag. Note that a tag is the thing between angle > brackets, > > and than an element is everything including the start and end tag > and > > its data. > > > > Art, the XML examples you present are incorrect, in both examples, > the > > last tag should be </TRACKINGNUMBER>. > > > > Francis > > > > Art Douglas wrote: > > > > > > Vani, > > > > > > Your XML, as presented, is malformed. That is why you cannot read > it. It > > > should be something like this: > > > > > > <SHIPDATE>08/08/2008</SHIPDATE> > > > <TRACKINGID>74186</TRACKINGID> > > > <TRACKINGNUMBER>1234567890<TRACKINGNUMBER/> > > > > > > or this: > > > > > > <TRACKINGNUMBER> > > > <SHIPDATE>08/08/2008</SHIPDATE> > > > <TRACKINGID>74186</TRACKINGID> > > > <TRACKINGNUMBER/> > > > > > > In the first case, the tracking number would be a discreet data > > > element, in > > > the second case, the tracking number would be made up of shipdate > and > > > trackingid. > > > > > > Art Douglas > > > Lead Consultant > > > Blackwater Network > > > (877) 464-8915 > > > > > > -----Original Message----- > > > From: [email protected] <mailto:EDI-L%40yahoogroups.com> > > > [mailto:[email protected] <mailto:EDI-L% 40yahoogroups.com>] > On > > > Behalf Of > > > vanirams05 > > > Sent: Saturday, October 18, 2008 4:45 AM > > > To: [email protected] <mailto:EDI-L%40yahoogroups.com> > > > Subject: [EDI-L] Unable to read XML file in GXS > > > > > > Hi, > > > > > > I am trying to map XML data to EDI using GXS AI server 5.0.But i > > > am unable to read whole input. > > > The input data looks like <SHIPDATE>08/08/2008</SHIPDATE> > > > <TRACKINGID>74186</TRACKINGID> > > > <TRACKINGNUMBER/> > > > > > > I am unable to read only <TRACKINGNUMBER/>.The error i am getting > > > is Missing Post delimeter. > > > > > > I have used the following delimeters and used OTXMLS.acc as the > > > source access model and also included OTXML.inc. > > > > > > SET_FIRST_DELIM(62) ; > > > > SET_SECOND_DELIM(60) ; < > > > SET_THIRD_DELIM(47) ; / > > > SET_FOURTH_DELIM(34) ; " > > > SET_FIFTH_DELIM(39) ; , > > > SET_RELEASE(92) ; \ > > > SET_RELEASE(47) ; / > > > > > > Please help me out where i am going wrong. > > > > > > Thanks in advance. > > > Vani > > > > > > > > > > > > ------------------------------------ > > > > > > ... > > > Please use the following Message Identifiers as your subject > prefix: > > > <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> > > > > > > Job postings are welcome, but for job postings or requests for > work: > > > <JOBS> > > > IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links > > > > > > > > > > > > -- > > You have brains in your head. > > You have feet in your shoes. > > - Dr Seuss, Oh the Places You'll Go > > > > Francis Upton IV > > francis@ > > Tel 510 835 3123 > > Fax 510 779 5226 > > Cell 510 432 1589 > > Skype francisupton > > > > > > > > [Non-text portions of this message have been removed] > > > ------------------------------------ ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
