DTD to XSD

4 views
Skip to first unread message

mikea_59

unread,
Mar 4, 2008, 7:13:25 PM3/4/08
to XML Schema
Extracted from DTD:
<!ELEMENT aaa (#PCDATA)>

Why does the conversion using XmlSpy or some other tools turn out to
be:
<xsd:element name="aaa">
<xs:complexType mixed="true"/>
</xsd:element>

When we expect the following:
<xsd:element name="aaa" type="xsd:string"/>

or maybe

<xs:complexType mixed="true">
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>


Anyone know of a tool that will convert as we would expect?

Jerry Sheehan

unread,
Mar 20, 2008, 9:39:41 AM3/20/08
to XML Schema
You wont find any tools that will do that for you, unless you want to
write your own stylesheet. I already looked for you.

You'll need to change the element content by hand in all instances.

msbalaji

unread,
Apr 15, 2008, 8:04:54 AM4/15/08
to XML Schema
Hi,

Try with some other tools,

http://www.w3.org/XML/Schema
http://www.w3.org/2000/04/schema_hack/#usa


Regards,
Balaji. M
Reply all
Reply to author
Forward
0 new messages