any7_0.xml 531 B

12345678910111213141516171819
  1. <?xml version="1.0"?>
  2. <!--
  3. No error reported.
  4. Seems like <moo> is accepted, but should not, since "##other" rules out
  5. elements in no namespace.
  6. Xerces reports:
  7. any-err-2.xml:18,8: (Error) cvc-complex-type.2.4.a: Invalid content starting
  8. with element 'moo'.
  9. One of '{"urn:test:foo":bar, WC[##other:"urn:test:foo"]}' is expected.
  10. -->
  11. <foo:foo xmlns:foo="urn:test:foo" xmlns:moo="urn:test:moo"
  12. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:schemaLocation="urn:test:foo any-2_1.xsd">
  14. <foo:bar/>
  15. <moo/>
  16. </foo:foo>