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 lehph...@gmail.com wrote: Hi, I don't understand why the following piece of XML is not valid to

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 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

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 @@ usage