Eswar Bala wrote:
I was wondering is there a way (in Xerces API), given an xml and the xsd, get the type of an attribute (integer,string,...)
You can get at the full PSVI (post-schema validation infoset) by using the XSModel class. You will need to know the type of the enclosing element if the attribute's type is not global.

Take a look at the SCMPrint example for more details regarding XSModel. You might also try using the PSVIHandler interface, if you don't need detailed information regarding the full PSVI, and you're using SAX2 parsing.

Dave

Reply via email to