Hello!

We are writing a chapter for a book on Xerces-J 2.x, and these need to be
fixed before publication (which is -soon-).

Error Message #1:

Using the SAX parser with XML schema validation on this portion of schema:

<xsd:complexType name="businessCustomerType">
    <xsd:sequence>
        <xsd:element name="name" type="xsd:string"/>
        <xsd:element ref="phoneNumber"
                     minOccurs="1"
                     maxOccurs="unbounded"/>

with this portion of XML:

<businessCustomer customerID="SAM132E60"
                  primaryContact="Ellie"
                  sequenceID="88742">
    <name>Ellen Boxer</name>
    <phoneNumber xsi:nil="true"/>

causes this error message:

***Error*** org.xml.sax.SAXParseException: cvc-type.3.1.1: [attributes] of
element 'phoneNumber' must be empty, excepting those whose [namespace name]
is identical to http://www.w3.org/2001/XMLSchema-instance and whose [local
name] is one of type, nil, schemaLocation or noNamespaceSchemaLocation.

The schema namespace is http://www.w3.org/2001/XMLSchema-instance and
phoneNumber is nil, so can we get this error message turned off?  Otherwise
our readers will be frustrated by a "non-problem".  Thanks!!

Error Message #2:

The gentleman who constructed the XML and schemas for our example is certain
that they are correct, so we're puzzled as to this second error message:

***Error*** org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute
'xsi:noNamespaceSchemaLocation' is not allowed to appear in element
'customerList'.

Here is the opening to our XML:

<?xml version="1.0" encoding="UTF-8"?>
<customerList
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:noNamespaceSchemaLocation="http://home.pacifier.com/~binstock/XMLSchemaE
xample/theme/address.xsd"
 source="Oracle">

Are you certain that that error message -should- appear?

I thank you for your time... Sincerely,
Christopher Galtenberg


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

Reply via email to