Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by drfernandez

  1. Hello,I need a XSD schema to validate an XML. It has to define just one element (and the root) call "EL_ONE" which has no elements and its text can be a number between 0 and 7. The lement must have an attribute call 'Id' (a string).I have this schema but it's not correct: <xs:schema > <xs:element name="ELEMENTS"> <xs:complexType> <xs:sequence> <xs:element ref="EL_ONE" /> </xs:sequence> </xs:complexType></xs:element> <xs:element name="EL_ONE"" type="ZERO_SEVEN_Type"/> <xs:complexType name="ZERO_ONE_Type"> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:attribute name="id" type="xs:string" /> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="1"/> </xs:restriction> </xs:extension > </xs:simpleContent></xs:complexType> </xs:schema>
  2. Hello,I need to make a restriction pattern for an integer field. The field must accept numbers from 0 to 511 but musn't accept 1,2,3,9,12,13Can anyone help me?
  • Create New...