Re: Can't access annotation in this case

2007-03-29 Thread Michael Glavassevich
It doesn't look like your traversal code walks to the complex type definition with that annotation. It's global so you can easily get to it from the XSModel. XSModel model = ...; ... XSNamedMap map = model.getComponents(XSTypeDefinition.COMPLEX_TYPE); ... Thanks. Michael Glavassevich XML Parse

Re: Xerces Validation: No Namespaces

2007-03-29 Thread Michael Glavassevich
Hi, XML schema validation requires namespace support. You need to set namespace awareness to true on the SAXParserFactory otherwise it won't work. And based on the error message you're getting, the schema document you've specified does have a target namespace so you should be setting the exter

Can't access annotation in this case

2007-03-29 Thread Jing Yang
Use schema API to query annotation. But failed to obtain it in the case B(see below, search keyword case B): How to get the annotation in the case B? Enclosed the test program and testc.xsd. The working environment is java 6 and xerces-j-9 http://www.w3.org/2001/XMLSchema"; targetNamespace