W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Getting the attributes type information through a Java API

From: COLINET,OLIVIER (HP-France,ex1) <olivier_colinet@hp.com>
Date: Mon, 25 Jun 2001 03:57:26 -0400 (EDT)
Message-ID: <D00C96E68738D511941F0090276D8F0BC94C09@prevert.grenoble.hp.com>
To: xmlschema-dev@w3.org
Hello,
 
I have an XML document that is contrained by its own XML schema (XSV file).
The XML file has been validated correctly.
 
My problem is that when parsing with SAX my XML file I would like to
retrieve the type of the attributes of my elements. Potentially, I would
like to check the type of my elements later too.
 
When parsing, I would like to call sth like org.xml.sax.Atributes
myAttributes(i).getType() and get sth like 'xsd:string'. So far, the only
thing that it returns is CDATA which is useless to me.
 
I don't know if there are any available API around but I guess that this is
typically what an XML schema validator does. As I'm new at creating XML
schemas, I would really appreciate some help on this point. Pls. feel free
to point me to any relevant XML schema resource.
 
Thanks in advance.
Olivier Colinet
 
Received on Monday, 25 June 2001 05:45:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:21 GMT