Hi all,
When an exception of this type is thrown the error information available
(getSystemId, getLineNumber, getColumnNumber, getMessage) does not contain a
dump of the line which caused the parsing error - only a description.
This is ok if parsing from the a file as I can get at the line number and
column number, but when parsing from memory (xml over TCP/IP in my case) I
cannot issolate the offending line and I do not want to dump the entire xml
to a log (it could be huge). Specifically I am finding this a problem if an
element contains an attribute which applies to > 1 elements. An example of
the type of message I have seen is:
Error at file XMLName, line 12, char 17 Message: Required attribute
'ReferenceType' was not provided
*******Does anyone know how to get at the element, parent element name and
actual xml that caused the parsing error?********
Thanks in advance,
Chris
___________________________________________________
Email Disclaimer
This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice. All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]