Programmatic generation of XML instances from Schema
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 14
- Joined: Wed Sep 20, 2006 7:07 pm
Programmatic generation of XML instances from Schema
Post by heavydawson »
I know Oxygen allows GUI based XML instance generation from a schema file, but is there any way to do this programmatically? In other words, could I use this functionality from within a java program?
Does Oxygen use a 3rd party tool to carry out the instance generation behind the scenes, or is it propietary code?
Does Oxygen use a 3rd party tool to carry out the instance generation behind the scenes, or is it propietary code?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
You cannot generate an XML instance from an XML Schema programatically using oXygen code. It is proprietary code and there is no public API for calling that code. It was created only for calling from the oXygen GUI, not from other application.
Regards,
Sorin
You cannot generate an XML instance from an XML Schema programatically using oXygen code. It is proprietary code and there is no public API for calling that code. It was created only for calling from the oXygen GUI, not from other application.
Regards,
Sorin
Re: Programmatic generation of XML instances from Schema
Post by stefan »
Starting with version 10 you can call the XML instance generator tool from command line.
Details: http://www.oxygenxml.com/doc/ug-oxygen/ ... rator.html
Video demonstration: http://www.oxygenxml.com/demo/GenerateS ... Files.html
You can call the XML instance generator from an ANT task using the following example:
Note: The configuration file is generated from the XML instance generator interface using the "Export Settings" option.
Details: http://www.oxygenxml.com/doc/ug-oxygen/ ... rator.html
Video demonstration: http://www.oxygenxml.com/demo/GenerateS ... Files.html
You can call the XML instance generator from an ANT task using the following example:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<project>
<target name="generate">
<java classname="ro.sync.xml.generator.XMLInstanceGenerator">
<classpath>
<pathelement path="lib/log4j.jar"/>
<pathelement path="lib/xercesImpl.jar"/>
<pathelement path="lib/oxygen.jar"/>
<pathelement path="lib/resolver.jar"/>
</classpath>
<arg value="path_to_your_configuration_file.xml"/>
<arg value="-verbose"/>
</java>
</target>
</project>
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service