Jump to content

stribor40

Members
  • Posts

    1
  • Joined

  • Last visited

stribor40's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I am trying to create xml schema for this element... <shoesize country="yes">35</shoesize> based on w3 schools this is solution.... <?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="shoesize"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:attribute name="country" type="xs:string" /> </xs:extension> </xs:simpleContent> </xs:complexType></xs:element></xs:schema> what I am trying to restrict is that attribute can only be "yes" or "no" and content can only be integer less than 50. Can anyone give me some pointers how to do this please.
×
×
  • Create New...