D
David
Sorry this might sound like a dumb question but what the difference
between the two? Are they just two different ways of doing the same
thing?
I mean are the following two equilavent?
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Day">
<xs:complexType>
<xs:sequence>
<xs:element name="Bodypart" type="xs:string"/>
<xs:element name="Excercise" type="xs:string"/>
<xs:element name="Sets"type="xsositiveInteger"/>
<xs:element name="Reps" type="xsositiveInteger"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<!DOCTYPE training [
<!ELEMENT training (bodypart, excercise, sets, reps)>
<!ELEMENT bodypart (#PCDATA)>
<!ELEMENT excercise (#PCDATA)>
<!ELEMENT sets (#PCDATA)>
<!ELEMENT reps (#PCDATA)>
]>
cheers!
between the two? Are they just two different ways of doing the same
thing?
I mean are the following two equilavent?
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Day">
<xs:complexType>
<xs:sequence>
<xs:element name="Bodypart" type="xs:string"/>
<xs:element name="Excercise" type="xs:string"/>
<xs:element name="Sets"type="xsositiveInteger"/>
<xs:element name="Reps" type="xsositiveInteger"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<!DOCTYPE training [
<!ELEMENT training (bodypart, excercise, sets, reps)>
<!ELEMENT bodypart (#PCDATA)>
<!ELEMENT excercise (#PCDATA)>
<!ELEMENT sets (#PCDATA)>
<!ELEMENT reps (#PCDATA)>
]>
cheers!