David (60)
Usenet Archive
- Joined
- Aug 13, 2003
- Messages
- 7
- Reaction score
- 0
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="xs
ositiveInteger"/> <xs:element name="Reps" type="xs
ositiveInteger"/> </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!
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="xs
<!DOCTYPE training [
<!ELEMENT training (bodypart, excercise, sets, reps)>
<!ELEMENT bodypart (#PCDATA)>
<!ELEMENT excercise (#PCDATA)>
<!ELEMENT sets (#PCDATA)>
<!ELEMENT reps (#PCDATA)>
]>
cheers!