XML Validation
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
XML Validation
Post by sebastienlavandier »
Hi,
Is it possible to validate one xml document with an xsd for a part and an DTD for an other part ?
Thanks you in advance for your help.
Sébastien
Is it possible to validate one xml document with an xsd for a part and an DTD for an other part ?
Code: Select all
<field name="schemaDescriptor">
<docTypeSchema>
<field name="type">
<Integer>2</Integer>
</field>
<field name="uri">
<String>${frameworks}/Eurocopter/schema/statut.xsd</String>
</field>
</docTypeSchema>
Sébastien
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XML Validation
Hi Sébastien,
There is a schema language called NVDL supported by Oxygen which allows validating part of the XML elements with one schema and other elements from the same XML with another but it does not support DTDs, so if you had two XML Schemas for validating various parts of the XML, you could use NVDL for this, we have a sample in:
OXYGEN_INSTALL_DIR\samples\nvdl\xhtml-xforms.nvdl
Could you maybe convert the DTD to XML Schema using our Tools->Generate/Convert Schema menu?
Otherwise maybe you could use our Java API ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter to add a custom filter which adds to the validation problems. This filter would allow you to maybe get from the main XML document those fragments which need to be validated with the DTD and validate them with Java code, then create validation problems for them and add them to the list.
Regards,
Radu
There is a schema language called NVDL supported by Oxygen which allows validating part of the XML elements with one schema and other elements from the same XML with another but it does not support DTDs, so if you had two XML Schemas for validating various parts of the XML, you could use NVDL for this, we have a sample in:
OXYGEN_INSTALL_DIR\samples\nvdl\xhtml-xforms.nvdl
Could you maybe convert the DTD to XML Schema using our Tools->Generate/Convert Schema menu?
Otherwise maybe you could use our Java API ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter to add a custom filter which adds to the validation problems. This filter would allow you to maybe get from the main XML document those fragments which need to be validated with the DTD and validate them with Java code, then create validation problems for them and add them to the list.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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