 |
 |
 |
You will have to import a schema for the =
urn:schemas-microsoft-com:datatypes namespace in your parent schema, and =
then add a reference to the 'dt' attribute on the element PDFFILE.
-----Original Message-----
From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...] =
On Behalf Of Francis Lang
Sent: Thursday, August 12, 2004 5:41 AM
To: xmlschema-dev@w...
Subject: BinaryBase64 Schema Validation Problem
Hello,
I'm not sure if you'll be able to help me/maybe you know someone who =
can?
Basically I have written a schema to validate a response from a web =
service. It works well except I cannot get the BinaryBase64 tag to =
validate.
Part of the schema goes like this:
<xsd:complexType name="tyDocument">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <xsd:sequence>
=A0=A0 =
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0<xsd:element name="DocumentType" minOccurs="1" maxOccurs="1" =
type="xsd:string" />
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 <xsd:element name="DocumentStatus" minOccurs="1" =
maxOccurs="1" type="xsd:string" />
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 <xsd:element name="PDFFILE" minOccurs="0" =
maxOccurs="1" type="xsd:base64Binary" />
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
</xsd:sequence>
=A0=A0=A0=A0=A0=A0=A0=A0=A0 </xsd:complexType>
Part of the xml that I'm trying to validate goes like this:
<Document>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<DocumentType>PDF</DocumentType>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<DocumentStatus>Document Produced</DocumentStatus>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<PDFFILE xmlns:dt="urn:schemas-microsoft-com:datatypes" =
dt:dt="bin.base64"></PDFFILE>
</Document>
The error message I get says, "Error: (-2147467259) The attribute =
'{urn:schemas-microsoft-com:datatypes}dt' on this element is not defined =
in the DTD/Schema.
at line=A0 41, column=A0 79"
Any idea how I get it to validate this XML? The problem is that the =
attribute in the XML cannot change. It has to be: =
xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64"
Can I add this attribute to the schema easily so that it will validate =
it?
I'd appreciate anything you may know about it.
Many thanks,
Francis Lang
francislang@r...
From nobody@w... Thu Aug 12 19:34:43 2004
Received: from wiggum.w3.org ([128.30.52.23])
by
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |