users@jaxb.java.net

can someone show me a working xsd:any example?

From: <dev_at_samizdatdigital.org>
Date: Wed, 23 Jun 2004 13:19:22 -0700

i'm trying to use xsd:any and xjc (via ant) is complaining that xsd:any
isn't part of the namespace (i'm using the standard xmlns:xsd="blah" on
the schema element), and suggesting that i use an import. i actually
tried this and did an xsd:import with
schemaLocation="http://www.w3.org/2001/XMLSchema.xsd", but nada. also,
i tried redefining the namespace on all inner elements, but this didn't
work either. i also tried <xjc extension="true" ... > to no avail.

i'm pretty sure it's something trivial, but it seems that this error
isn't really with the lack of import but with the xsd:any somehow not
being supported. if i replace with xsd:string things are fine.

i'll try using the vendor extensions (perhaps that's the only way to do
it) but if i'm missing something stupid, could someone post a snippet
(including namespace decls) of how to get xsd:any to work. i'd like to
not tie myself to vendor extensions.

most of the examples i've seen on this list and the discussion of them
seem to be based on other problems which are happily more advanced than
at least getting the compiler to work, such as

https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgId=91435
https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=2825 (may
be relevant, hard to tell without schema headers)

jon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net