Re: Expecting no namespace, but the schema document has a target
namespace 2003-01-13 - By Jesus M. Salvo Jr.
sandygao@(protected) wrote:
> > >>1a) I did _NOT_ see any attempt to retrieve the SOAP schema, as >>specified by the root element attribute: >>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >> >> > >Schema locations are specified using one of the xsi schema location >attributes, like what you did for the MM7 schema. A namespace declaration >like the above doesn't mean the parser needs to retrieve a schema for that >namespace, not to mention that the parser doesn't know where to retrieve >such schema. > >To fix it, add an xsi:schemaLocation attribute for this namespace. So the >result would something like: >xsi:schemaLocation="mm7_namespace mm7.xsd soap_namespace soap.xsd" > >This is also the reason why you are seeing the cvc-elt error. You didn't >provide a location for the soap namespace, so Xerces couldn't find a >declaration for your root element. > > > Ah! And I thought I understood XML Namespace. Definitely not.
I actually thought that the fact that the namespace is a URI would mean that the XML processor / parser would fetch that URI. Thanks for clearing that up!
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|