[oXygen-user] Schema and code generation in Oxygen/xml
Sorin Ristache
Wed May 25 05:38:51 CDT 2005
Hello,
Pierre Mareschal wrote:
> Hello,
>
> I'm a new Oxygen user and I apologize in advance if I
> haven't read enought. I went throught samples codes
> and exemples and skimmed throught the manual but I
> have found the following two features (I'm a switcher
> from XML Spy):
>
> Is it possible to generate a (approximative but valid)
> schema from a sample XML document? And on the
The are two possibilities:
- use the integrated Trang converter to generate a schema of type XML
Schema, Relax NG (full or compact syntax), DTD:
http://www.oxygenxml.com/doc/ug-standalone-en/editing-xml-documents.html#converting-between-schema-languages
- learn a DTD from the edited document:
http://www.oxygenxml.com/doc/ug-standalone-en/editing-xml-documents.html#learning-document-structure
> opposite, give a schema, is it possible to generate a
> valid XML document with random data in it? (XML Spy
> has this nice feature ;-) )
In the latest version (6.0) it is possible only to set user preferences
for inserting automatically required tags, optional tags, required
attributes, fixed attributes, first choice particles when a new document
is created. See
http://www.oxygenxml.com/doc/ug-standalone-en/opening-and-closing-documents.html#creating-new-documents
http://www.oxygenxml.com/doc/ug-standalone-en/configuring-the-editor.html#tag-insight-features
Filling the document with random data is on our TODO list.
>
> Is it possible to generate Java classes (+helper
> functions) from a schema to process a XML document
> that is schema-valid?
Also on our TODO list :-)
>
> Many thanks for your help.
>
> Pierre
>
Best regards,
Sorin
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com/
More information about the oXygen-user
mailing list