- From: Benjamin C. Chang <Ben.Chang@oracle.com>
- Date: Tue, 02 Jan 2001 10:32:56 -0800
- To: Michael Grazebrook <michaelg@cre.canon.co.uk>
- CC: DOM-List <www-dom@w3.org>
Take a look at http://technet.oracle.com/tech/xml/classgen/index.htm -- you'll need to register first, but this class generator can take as input an XML Schema, and generate Java code that you can use to construct, etc., an XML document that is conformant to this XML Schema. A C++ class generator that does the same thing ia also available but needs to be staged on technet. Email me directly if you need further details. Ben Michael Grazebrook wrote: > Are there tools which will read a complex XML Schema specification, and > generate a class library which can convert a DOM document into > representations of the schema objects? > > We had a pretty good search of the Web, but the nearest we could come up > with was some interesting looking vaporware from Sun for Java (no news > since > August): http://java.sun.com/aboutJava/communityprocess/jsr/jsr_031_xmld.html. > There are lots of great tools to help parse, write and check XML, but > nothing I could find to create usable, efficient data structures from > DOM nodes. > > The DOM is an effective way to get a document into memory. But the > in-memory form is not ideal for application development - the developer > must know both XML Schema and how to use the DOM. Also the application > code becomes bulky. So I've been asked to write a class library which > converts DOM nodes into C++ objects (though there's talk of C and Java > too). Something like (simplified): > > class Name { > string title; > string familyName; > list<string> personalName; > public: > Name( DOM_Node ); > void writeToXml(); > / / etc. > }; > > Does anyone know of any such tools?
Received on Tuesday, 2 January 2001 13:33:00 UTC