You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Leandro de Oliveira <le...@gmail.com> on 2012/03/26 17:03:45 UTC
cvc-complex-type.2.4.a: Invalid content was found starting with
element 'add'. One of '{add, modify, remove}' is expected.
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-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: cvc-complex-type.2.4.a: Invalid content was found starting with element
'add'. One of '{add, modify, remove}' is expected.
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
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: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
Leandro de Oliveira <le...@gmail.com> wrote on 26/03/2012 12:41:37 PM:
> From: Leandro de Oliveira <le...@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 <an...@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 <le...@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-unsubscribe@xerces.apache.org
> >> For additional commands, e-mail: j-users-help@xerces.apache.org
> >>
> >
> >
> >
> > --
> > Andrew Welch
> > http://andrewjwelch.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> > For additional commands, e-mail: j-users-help@xerces.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
Re: cvc-complex-type.2.4.a: Invalid content was found starting with
element 'add'. One of '{add, modify, remove}' is expected.
Posted by Leandro de Oliveira <le...@gmail.com>.
elementFormDefault="qualified" did it. Thank you again, I'd never
figure it out from that error message.
2012/3/26 Andrew Welch <an...@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 <le...@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-unsubscribe@xerces.apache.org
>> For additional commands, e-mail: j-users-help@xerces.apache.org
>>
>
>
>
> --
> Andrew Welch
> http://andrewjwelch.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: cvc-complex-type.2.4.a: Invalid content was found starting with
element 'add'. One of '{add, modify, remove}' is expected.
Posted by Andrew Welch <an...@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 <le...@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-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
--
Andrew Welch
http://andrewjwelch.com
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org