Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ASK] XML Schema
12-12-2011, 08:51 PM,
Post: #1
[ASK] XML Schema
Salam TBDian..
Ada sapa2 tak yang tau XML programming?
Aku baru blaja basic je..
Ni under XML schema..

Macamana nak restrickan value kat <complexType>?
ni contoh schema aku..

<xs:element name="plants" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="fruits" type="xs:string" minOccurs="0" maxOccurs="5">
<xs:restriction base="xs:string">
<xs:pattern value="rambutan|mango|papaya"/>
</xs:restriction>
</xs:element>
<xs:element name="vegetables" type="xs:string" minOccurs="0" maxOccurs="5">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>


* aku buat yg atas ni dia cakap The content of an element information item does not match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)

kena restrickan value fruits = rambutan|mango|papaya..

MY ACCOUNT PASSWORD IS SEVEN ASTERISK *******

LIFE FOR LEARN
GayFace
Reply


Forum Jump: