Type information is exposed as part of the PSVI. There are several FAQs [1] on the website which show how to access it in Xerces through the XML Schema API. If you only need basic type information (like the name of the type) you can also access it through DOM Level 3 [2] and JAXP 1.3+ [3].
Thanks. [1] http://xerces.apache.org/xerces2-j/faq-xs.html [2] http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/TypeInfo.html [3] http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/TypeInfoProvider.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Mukul Gandhi" <[EMAIL PROTECTED]> wrote on 07/17/2008 12:21:21 PM: > Though, I have not used this, but I think it might be possible with Xerces. > > Please read about, XML Schema API. Here are the Javadocs, > http://xerces.apache.org/xerces2-j/javadocs/xs/index.html. > > On Thu, Jul 17, 2008 at 7:36 PM, Luis Silva <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm parsing a xml file and I need the xsd element type when parsing each > > element of the xml. The validation is easy but not accessing the xsd type > > when parsing the element. Is it possible to get that information? > > > > Regards and many thanks, > > Luis > > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]