Hi All,
I am validating a xml document with Schema,
but getting the following error message
  Message: Error: constraint 3.x.3: Invalid attribute value for 'use' in element
 'attribute': the value 'default' must match (optional | prohibited | required).
org.xml.sax.SAXException: Error encountered
 
My XML File is like this=====
<?xml version="1.0" encoding="UTF-8"?>
<ECTechInfoResponse xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="http://www.w3.org/namespace/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/namespace/ d:\ECTechInfoResponse.xsd">
Schema File is like this=====
<schema targetNamespace="http://www.w3.org/namespace/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:t="http://www.w3.org/namespace/">
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="./xml.xsd" />
 <element name="ECTechInfoResponse">
  <complexType>
   <sequence>
    <element ref="t:CommonProps"/>
    <element ref="t:QdKey" minOccurs="0"/>
..........etc.......................
</<schema>
 
Any help would be appreaiated .
Thanks & Regards
Anoop Singh
-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to