oXygen DTD conversion

This should cover W3C XML Schema, Relax NG and DTD related problems.
gregya
Posts: 2
Joined: Wed Oct 03, 2007 6:18 pm

oXygen DTD conversion

Post by gregya »

Hi,

Fairly new to XML and very new Oxygen-- but I'm loving this program!

My question is why following coversion of an xml doc to DTD does Oxygen add the following ATLIST after every element:

<!ATTLIST personnel
xmlns CDATA #FIXED ''>

Validation appears to work fine if you just sweep through and delete all these. So why does Oxygen supply them?

Thanks so much!

Greg
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Greg,

oXygen use TRANG (http://www.thaiopensource.com/relaxng/trang.html) to perform the conversion between different schema languages. The xmlns attribute that you noticed represents in fact a namespace declaration and in your example it specifies that the declared elements belong to no namespace.
oXygen has an additional action that you can use to get a DTD from an XML document. This is the DTD that oXygen uses when it learns automatically the document strcuture when you do not have a schema or a DTD associated. See the Document->XML Document->Save structure action. That will give you a simpler but more relaxed DTD than the "Convert to" action.

Best Regards,
George
George Cristian Bina
gregya
Posts: 2
Joined: Wed Oct 03, 2007 6:18 pm

Post by gregya »

Thanks for clearing that up, George!
johnvarenda
Posts: 1
Joined: Sat Jan 02, 2010 1:16 pm

Re: oXygen DTD conversion

Post by johnvarenda »

hi...
I too experience the problem.So,Thanks for clarifying the doubts....
Can you explain about Java to XML conversion.
Thanks...
...............
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: oXygen DTD conversion

Post by Radu »

Hi,

Oxygen does not have support for Java to XML conversion.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: oXygen DTD conversion

Post by george »

Can you please clarify?
There is no such thing like Java to XML conversion... What you would like that to do?

Regards,
George
George Cristian Bina
Post Reply