[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

namespace and schema



New to the list..

The draft says that the following is legal:

<rpc xmlns="http://ietf.org/xmlconf/1.0/base";>
<get-config><source><running/><source>

         <config xmlns="http://hohoho.com"/>

</get-config>
</rpc>

The schema defines the config element
of type xc:config-inlineType. I've tried parsing
this with SAX2 and JAXB and it doesn't like
the config element from the wrong namespace.

It would be nice if the schemas could be
fed into standard validating parsers.

The above would not work but this is OK:

<rpc xmlns="http://ietf.org/xmlconf/1.0/base";>
<get-config><source><running/><source>

         <config>
         <ho:config xmlns:ho="http://hohoho.com"/>
         </config>

</get-config>
</rpc>

I'm not a schema wizard so I'm not sure what
the right approach is here..

thanks,
-Jim.

--
jtsillas@appledor.net

JWebMail WebMail/Java v0.7.10, built with JDK 1.4.1 WWW to Mail Gateway