[Home] [By Thread] [By Date] [Recent Entries]
sa ku schrieb:
I have a task of converting sgml to XML. The XML file has a schema and the SGML file has a DTD<br><br>I downloaded James Clarke's tool. But I am not clear as to how to run it. <br><br>Can anybody please help me with a documentation that I can look at or with examples? Both! The tool you want is sx. See: http://www.jclark.com/sp/ http://www.jclark.com/sp/sx.htm A simple example: # type movie.dtd <!ELEMENT movie - O (name,length,rating)> <!ELEMENT name O O (#PCDATA)> <!ELEMENT length - O (#PCDATA)> <!ELEMENT rating - O (#PCDATA)> <!ATTLIST length units (min|hour) min> # type movie.sgml <!DOCTYPE movie SYSTEM "movie.dtd"> <MOVIE> Gladiator <LENGTH UNITS="min">195 <RATING>MA # sx movie.sgml <?xml version="1.0"?> <MOVIE UNITS="MIN"<NAME Gladiator</NAME><LENGTH 195</LENGTH><RATING MA</RATING></MOVIE>
|

Cart



