XML : What is an xs:Name type and when should it be used and what special characters allowed to this?

whenever i am giving any special characters to an attribute , its throwing error that "is not a valid value of the atomic type 'xs:Name'"

below is the schema;

  <element name="Type"                                 minOccurs="0" maxOccurs="unbounded">                          <complexType>                            <simpleContent>                              <extension base="Name">                                <attribute name="p"                                           type="positiveInteger" use="required"/>                              </extension>                            </simpleContent>                          </complexType>                        </element>    

The content of Type only takes 1 character .

Can any one explains , what is the significance of "Name"..is the error because of that.

If so , then how to resolve it.

No comments:

Post a Comment