[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Test for malformed XML


Subject: [xsl] Test for malformed XML
From: "Lee, Betty" <BLee@xxxxxxx>
Date: Sun, 27 Apr 2008 20:54:13 -0400

Hello,



I have the need to parse an XML string into a node tree, and have been
successful in using saxon:parse().



However, it may not be possible that the string I get is well formed XML.  Is
there a way for me to test whether a string is well formed before I parse it?
Or maybe trap the error that saxon returns when the parse attempt fails?



Thank you,



-Betty Lee




The contents of this e-mail message and any attachments may be confidential or
legally privileged or protected information of RWD Technologies, LLC., or its
affiliates. If you are not an intended recipient of the original sender,
please immediately delete this e-mail message and any attachments, including
any copies of same, and inform the sender of the erroneous delivery by return
e-mail. Unintended recipients are prohibited from retaining, copying,
distributing, disclosing or otherwise using any information contained in this
message or its attachments for any purpose and will be held legally
responsible for any improper use. Thank you for your cooperation.


Current Thread
Keywords
xml