none
Defining length RRS feed

  • Question

  • i have an XSD File that was converted from a an XML file (Document Type), i need to specify lengths for each element, how can i do that?

     

    ex: <xs:element name="EmployeeName" maxOccurs='1' type="xsTongue Tiedtring"/>

     

     

    Wednesday, January 9, 2008 8:59 PM

All replies

  • <xs:element name=...>
    <xsd:restriction base="xsdTongue Tiedtring">
    <xsd:maxLength value="256"/>
    </xsd:restriction>
    </xsd:element>
     
    Hope it helps
    Friday, January 11, 2008 9:21 PM
  •  Emad Gharaibeh wrote:

    i have an XSD File that was converted from a an XML file (Document Type), i need to specify lengths for each element, how can i do that?

     

    ex: <xs:element name="EmployeeName" maxOccurs='1' type="xstring"/>

     

     




    This forum is not the best for that question.

    Please keep to architecture posts which are independant of API and general implementation questions
    Friday, January 11, 2008 11:10 PM
  • thank you, it worked fine, but what is the available datatypes that could be used with maxLength? because it gave me that you can't use decimal or integer with it?

     

    Sunday, January 13, 2008 2:25 PM