Re: How to get exact location of schema validation errors?

2008-10-27 Thread Michael Glavassevich
Hi Joe, [EMAIL PROTECTED] wrote on 10/27/2008 05:25:25 PM: > > Thanks for your response, but I'm not looking for column and row > > numbers in the XML document. I might have been a little ambiguous > > in using the word "location". What I need is the reference to the > > Node object in the DOM

Re: How to get exact location of schema validation errors?

2008-10-27 Thread Alex Talis
Thank you very much, Michael.  This is exactly what I was looking for. - Original Message From: Michael Glavassevich <[EMAIL PROTECTED]> To: j-users@xerces.apache.org Cc: [EMAIL PROTECTED] Sent: Monday, October 27, 2008 1:59:06 PM Subject: Re: How to get exact location of schema valida

Re: Xerces2 vs Xerces1 Element Text Parsing Implementation

2008-10-27 Thread Fuzzo
Hi! Many many thanks for answer! Problem solved with a StringBuffer! :jumping: Michael Glavassevich-3 wrote: > > > Hi, > > Fuzzo <[EMAIL PROTECTED]> wrote on 10/22/2008 03:54:18 AM: > >> Hi all! >> >> Let me explain the problem with an example. >> I have to parse an XML in this form: >> >>

Re: How to get exact location of schema validation errors?

2008-10-27 Thread keshlam
> Thanks for your response, but I'm not looking for column and row > numbers in the XML document. I might have been a little ambiguous > in using the word "location". What I need is the reference to the > Node object in the DOM tree that caused the validation error. The > perfect solution wo

Re: How to get exact location of schema validation errors?

2008-10-27 Thread Michael Glavassevich
Hi Alex, The current element node being visited by the Validator can be queried [1] from your error handler by calling back into it with getProperty() [2]. Thanks. [1] http://xerces.apache.org/xerces2-j/properties.html#dom.current-element-node [2] http://xerces.apache.org/xerces2-j/javadocs/api

Re: Xerces2 vs Xerces1 Element Text Parsing Implementation

2008-10-27 Thread Michael Glavassevich
Hi, Fuzzo <[EMAIL PROTECTED]> wrote on 10/22/2008 03:54:18 AM: > Hi all! > > Let me explain the problem with an example. > I have to parse an XML in this form: > > some_text_with_%_symbol > > With Xerces1 SAX parser, the element text (some_text_with_%A7_symbol) is > parsed in one solution with f

Re: How to get exact location of schema validation errors?

2008-10-27 Thread Alex Talis
Hi, Mukul Thanks for your response, but I'm not looking for column and row numbers in the XML document.  I might have been a little ambiguous in using the word "location".  What I need is the reference to the Node object in the DOM tree that caused the validation error.  The perfect solution wo