Hi Ishan, On Tue, Feb 23, 2010 at 5:40 PM, Ishan Jayawardena <[email protected]> wrote: > For an example can't we build a Schema DOM with the DOM implementation > available for XML?
By Schema DOM, I meant the DOM object constructed from the XSD schema grammar as input. > Can you please tell me the exact usage of XSModel? The > only thing I know is that it's an object model for schema. But what really > makes it different from DOM? DOM is a vendor neutral generic XML object model, with an API that is defined by W3C. Whereas, XSModel is a Schema object model which is specific to Xerces. But Xerces XSModel, also implements the following XML Schema API (ref, http://www.w3.org/Submission/2004/SUBM-xmlschema-api-20040309/). > you've said that it's possible to create a Schema DOM with > XSSerializer utility. Is that the only way that one can build a DOM for a > schema? The XSSerializer utility, builds a DOM representation of the schema, taking XSModel as an input. Ofcourse, one could build a DOM object directly from a Schema file (or a schema URI), using say: DocumentBuilder.parse .... > Are there any serious implementation differences of the DOM for a > schema from that of an XML? DOM for a XML could be for any XML vocabulary. Whereas, DOM for a schema is for a specific XML Schema document. -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
