Is there a standard way (or any way) for embedding
an XML document into a data stream that contains other
documents such as EDI documents.

As mentioned before, we have a "raw message" which may contain
multiple
EDI documents. Think of this as one long string. It is not too
difficult to parse this raw message and extract each EDI message.
Now,
we want to also include XML document in the same raw message. The
problem is that XML has so much potential for being mal-formed. The
slightest malformation may cause my parser process (not a full blown
parser) to fail to recognize the end of the XML document! For
example,
unmatched quotes or a <![CDATA without a corresponding ]]> will cause
the parser to just keep on going until it finds the end of the
physical file. 

I was thinking that maybe there is some Processing Instruction like:
<?EXCHANGE END_OF_DOC?>
that would be a directive to my program (The exchange) that this is
definitely the end of the current XML document.

I need to clearly be able to identify this embedded XML document,
even if the document is mal-formed garbage.

Thanks,
Mike
> 
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> 

=====
("\''/").__..-''"`-. .         
  `9_ 9  )   `-. (    ).`-._.`)  Meow!
  (_Y_.)' ._   ) `._`.  " -.-'   
   _..`-'_..-_/ /-'_.'           
 (l)-'' ((i).' ((!.'__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

==========================================
XML/EDI Group members-only discussion list
Homepage =  http://www.xmledi.org

Brought to you by: Online Technologies Corporation
                  Home of BizServe - www.bizserve.com

TO UNSUBSCRIBE: Send email to <[EMAIL PROTECTED]>
               Leave the subject blank, and
               In the body of the message, enter ONLY: unsubscribe

Questions/requests should be sent to: [EMAIL PROTECTED]
To join the XML/EDI Group complete the form located at:
http://www.geocities.com/WallStreet/Floor/5815/mail1.htm

Reply via email to