Beginners Question

Questions about XML that are not covered by the other forums should go here.
Onyx
Posts: 1
Joined: Fri Feb 15, 2013 1:05 am

Beginners Question

Post by Onyx »

Hey there!

thanks for you help in advance!

My Problem: I have an XML maden by myself and I want to use another XML as Schema for it, how to manage that in OxygenXML best?

Cheers,
Onyx!
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Beginners Question

Post by adrian »

Hi,

If you have an XML file and want to model and validate another target XML based on the same structure, you can:
  • generate a DTD or an XML schema from your given XML file. You can do this in Oxygen with Tools > Generate/Convert Schema. From the Input section select XML documents and browse for the input XML file (you can add several files for better accuracy), choose the Output type (XML 1.0 DTD or W3C XML Schema) and choose the output file name.
  • Associate the newly created DTD/schema with your target XML file. Open the XML file and associate the schema: Document > Schema > Associate Schema, browse for the schema and press OK. The XML will be modified to include the association with the schema (DOCTYPE declaration of DTD or schemaLocation attribute for XSD).
After this you will have validation and content completion in the target XML from the generated DTD/schema.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply