Jump to content

ChloeJacobs

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ChloeJacobs

  • Rank
    Newbie
  1. Hi,Here's some more detail.So far my schema looks like this <?xml version="1.0" encoding="utf-8"?><xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd" elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd" xmlns:mstns="http://tempuri.org/XMLSchema.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:element name ="FILE"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="ADVERT"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="1" name="ROOT"> <xs:element name="LOADTYPE" t
  2. Hi every1,This my first post, yey! I'm hoping you guys can help me out? I'm writing my first XSD file and all was goin smoothly until I was tryin to set restrictions for an attribute value within an element? For example my XML looks like this:<FILE> <ADVERT> <ROOT LOADTYPE="A"> ...I want my XSD file to say tat the value entered for the loadtype has to be A or B?Can any1 help me with this please?Kind Regards,Chloe ~X~
×
×
  • Create New...