Re: missing element name in validation result

2010-08-20 Thread Mukul Gandhi
On Fri, Aug 20, 2010 at 5:54 PM, Michael Glavassevich wrote: > "ElementPSVImpl" is an internal class. Developers should be using the API > (i.e. ElementPSVI) [1]. Thanks, Michael. And also for useful observations about SAXParseException, which I think would solve the problem of OP in a SAX way.

Re: missing element name in validation result

2010-08-20 Thread Michael Glavassevich
"ElementPSVImpl" is an internal class. Developers should be using the API (i.e. ElementPSVI) [1]. Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/ElementPSVI.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla

Re: missing element name in validation result

2010-08-20 Thread Michael Glavassevich
.getPublicId()); > System.out.println("systemId: " + arg0.getSystemId()); > System.out.println("line number: " + arg0.getLineNumber()); > System.out.println("column number: " + arg0.getColumnNumber()); > System.out.println("localized message: " + arg0

Re: missing element name in validation result

2010-08-20 Thread Mukul Gandhi
Hi Lars, I think it is possible with Xerces to get validation details you are seeking via PSVI objects. If you look at, http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/ElementPSVImpl.html you may for example use the getValidity() method of "ElementPSVImpl" to kno

Re: missing element name in validation result

2010-08-20 Thread ZagZig
y isn't valid. But if there is no way to get the element name by the sax exception i'll maybe parse the element by the line and column number out of the xml and send this and the exception back as the result. Best regards, Lars. -- View this message in context: http://old.n

Re: missing element name in validation result

2010-08-20 Thread Mukul Gandhi
On Fri, Aug 20, 2010 at 1:50 PM, ZagZig wrote: > cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'. > > which is correct, but i would like to print out the name of the element with > the invalid value. > line number: 33 > column number: 22 you are using SAXParseException [1] class

missing element name in validation result

2010-08-20 Thread ZagZig
System.out.println("message: " + arg0.getMessage()); throw arg0; } } The element definition in the xsd is Has somebody an idea how i can solve my problem? Thanking you in advance for any help you can g