I have the following schema. I need to know how to make an xml document
based from it. The main worry I have is the DateTime field.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDe fault="unqualif ied" elementFormDefa ult="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="NewsArtic le">
<xs:complexType >
<xs:sequence>
<xs:element name="Descripti on" type="xs:string " />
<xs:element name="Body" type="xs:string " />
</xs:sequence>
<xs:attribute name="title" type="xs:string " use="required" />
<xs:attribute name="Date" type="xs:dateTi me" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>
based from it. The main worry I have is the DateTime field.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDe fault="unqualif ied" elementFormDefa ult="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="NewsArtic le">
<xs:complexType >
<xs:sequence>
<xs:element name="Descripti on" type="xs:string " />
<xs:element name="Body" type="xs:string " />
</xs:sequence>
<xs:attribute name="title" type="xs:string " use="required" />
<xs:attribute name="Date" type="xs:dateTi me" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>
Comment