xml - xsd Complex Types with Mixed Content -



xml - xsd Complex Types with Mixed Content -

i reading this tutorial , states xml this:

<letter> dear mr.<name>john smith</name>. order <orderid>1032</orderid> shipped on <shipdate>2001-07-13</shipdate>. </letter>

you need xml schema definition:

<xs:element name="letter"> <xs:complextype mixed="true"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="orderid" type="xs:positiveinteger"/> <xs:element name="shipdate" type="xs:date"/> </xs:sequence> </xs:complextype> </xs:element>

but see not correct. defines name, orderid, , shiptdate elements didn't define plain text dear mr., your order , will shipped on

the xs:string type has been assigned name element.

could help me understanding please?

many thanks

that's mixed="true" - permits arbitrary text around , between declared elements of complex type. elements must appear in required sequence there can text in between.

xml xsd

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -