Yeah, that is one of our poorer error messages. We've been improving [1] 
it.

Thanks.

[1] http://issues.apache.org/jira/browse/XERCESJ-1486

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Leandro de Oliveira <lehph...@gmail.com> wrote on 26/03/2012 12:41:37 PM:

> From: Leandro de Oliveira <lehph...@gmail.com>
> To: j-users@xerces.apache.org, 
> Date: 26/03/2012 12:43 PM
> Subject: Re: cvc-complex-type.2.4.a: Invalid content was found 
> starting with element 'add'. One of '{add, modify, remove}' is expected.
> 
> elementFormDefault="qualified" did it. Thank you again, I'd never
> figure it out from that error message.
> 
> 2012/3/26 Andrew Welch <andrew.j.we...@gmail.com>:
> > It's a namespace issue, in the XSD either set
> > elementFormDefault="qualified", or give the element names a prefix
> > (and map that prefix to the namespace)
> >
> >
> >
> > On 26 March 2012 16:03, Leandro de Oliveira <lehph...@gmail.com> 
wrote:
> >> Hi,
> >>
> >> I don't understand why the following piece of XML is not valid to 
Xerces:
> >>
> >> <processor xmlns="http://maven-config-processor-
> plugin.googlecode.com/schema/transformation"
> >>                   xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
> >>                   xsi:schemaLocation="http://maven-config-
> processor-plugin.googlecode.com/schema/transformation
> >> http://maven-config-processor-plugin.appspot.com/schema/
> transformation-2.1.xsd">
> >>        <add>
> >>        </add>
> >> </processor>
> >>
> >> It's valid on http://validator.w3.org so is this a Xerces bug? Is
> >> there any known workaround? I can change the schema file if 
necessary.
> >> I'm using Eclipse Indigo to edit XML files.
> >>
> >> Thank you very much
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> >> For additional commands, e-mail: j-users-h...@xerces.apache.org
> >>
> >
> >
> >
> > --
> > Andrew Welch
> > http://andrewjwelch.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> > For additional commands, e-mail: j-users-h...@xerces.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to