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 » Wed Oct 03, 2007 6:21 pm

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: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Thu Oct 04, 2007 10:56 am

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 » Fri Oct 05, 2007 12:01 am

Thanks for clearing that up, George!

johnvarenda
Posts: 1
Joined: Sat Jan 02, 2010 1:16 pm

Re: oXygen DTD conversion

Post by johnvarenda » Sat Jan 02, 2010 1:19 pm

hi...
I too experience the problem.So,Thanks for clarifying the doubts....
Can you explain about Java to XML conversion.
Thanks...
...............

Radu
Posts: 6500
Joined: Fri Jul 09, 2004 5:18 pm

Re: oXygen DTD conversion

Post by Radu » Wed Jan 06, 2010 4:20 pm

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: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Re: oXygen DTD conversion

Post by george » Wed Jan 06, 2010 4:35 pm

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