Re: cvc-complex-type.2.4.a: Invalid content was found starting with element 'add'. One of '{add, modify, remove}' is expected.

2012-03-26 Thread Andrew Welch
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 wrote: > Hi, > > I don't understand why the following piece of XML is not valid to Xerces: > > xml

Re: cvc-complex-type.2.4.a: Invalid content was found starting with element 'add'. One of '{add, modify, remove}' is expected.

2012-03-26 Thread Leandro de Oliveira
elementFormDefault="qualified" did it. Thank you again, I'd never figure it out from that error message. 2012/3/26 Andrew Welch : > 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

Re: NPE while playing with CTA in XSD 1.1 branch

2012-03-26 Thread Jorge Williams
Spoke too soon :-( Made the following change to the sample I previously sent (renamed attribute foo to foo2): diff --git a/cta-choose/sample2.xml b/cta-choose/sample2.xml index f257a92..4607184 100644 --- a/cta-choose/sample2.xml +++ b/cta-choose/sample2.xml @@ -1,6 +1,6 @@ http://docs.rackspa

Re: cvc-complex-type.2.4.a: Invalid content was found starting with element 'add'. One of '{add, modify, remove}' is expected.

2012-03-26 Thread Michael Glavassevich
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 wrot