Re: Create a new xml document based on a schema

2008-12-01 Thread Kris Wolff
Hi, is there any other way you may know to do that trick? Maybe a other api. thanx, kris. Michael Glavassevich schrieb: Hi, There is no API in Xerces which exposes this information. There may be some creative way to get to it by digging deep into the internals but that's not supported an

Re: Create a new xml document based on a schema

2008-11-30 Thread Michael Glavassevich
Hi, There is no API in Xerces which exposes this information. There may be some creative way to get to it by digging deep into the internals but that's not supported and you may find your code doesn't work (or compile) with future releases. Thanks. Michael Glavassevich XML Parser Development IBM

Re: Create a new xml document based on a schema

2008-11-30 Thread chodnik
Ok, there is no implementation for DOM Level 3 Validation. But when I parse a document and there is an error the message tels me exactly what element, attribute or value is expected at this point of a document. The only thing I want is to get this info before an validation exception is thrown. Is

Re: Create a new xml document based on a schema

2008-11-19 Thread Michael Glavassevich
Yes, we're aware of this API. It has come up in discussion at least a few times on this list. There's been very little interest in having an implementation in Xerces. There are no plans to implement it. I have not heard of alternatives or any implementations of DOM Level 3 Validation that are gene

Re: Create a new xml document based on a schema

2008-11-19 Thread chodnik
I've been searching for something helpful and I've found DOM Level 3 Validation: http://www.w3.org/TR/DOM-Level-3-Val/validation.html I think it is very useful feature and it is exactly what I want. But there is no implementation in Xerces for this interfaces. Does anyone know something similar to

Re: Create a new xml document based on a schema

2008-11-18 Thread Dick Deneer
One possible raw approach is using the org.apache.xerces.parsers.XMLGrammarPreparser for parsing the schema. You can will get a XSGrammar. Then use the toXSModel() to get a XSmodel. Now find the possible root elements from the global element declarations: XSNamedMap elementDeclarations = xsMo