Generate xml from xsd
Posted: Fri Feb 01, 2008 7:06 pm
Hello,
if I generate a sample xml file from the this xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="eTEIheader">
<xs:complexType>
<xs:sequence>
<xs:element ref="fileDesc"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.eTEIheader"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.eTEIheader">
<xs:attribute name="type" default="text"/>
<xs:attribute name="creator"/>
</xs:attributeGroup>
<xs:element name="fileDesc">
</xs:element>
</xs:schema>
I get the following result:
<?xml version="1.0" encoding="UTF-8"?>
<Incl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:/F:/Studium/SFB441_C2/metadatenschema/eTEI_dtd_2-3/eTEI0.2.3.xsd"></Incl>
Shouldn't there be at least the elements eTEIheader, fileDesc, attlist.eTEIheader? Does Oxygen have problems with following the references?
if I generate a sample xml file from the this xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="eTEIheader">
<xs:complexType>
<xs:sequence>
<xs:element ref="fileDesc"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.eTEIheader"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.eTEIheader">
<xs:attribute name="type" default="text"/>
<xs:attribute name="creator"/>
</xs:attributeGroup>
<xs:element name="fileDesc">
</xs:element>
</xs:schema>
I get the following result:
<?xml version="1.0" encoding="UTF-8"?>
<Incl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:/F:/Studium/SFB441_C2/metadatenschema/eTEI_dtd_2-3/eTEI0.2.3.xsd"></Incl>
Shouldn't there be at least the elements eTEIheader, fileDesc, attlist.eTEIheader? Does Oxygen have problems with following the references?