Cory, The local elements bar and baz are in *no* namespace in the definition below. If instead you had written <schema targetName="http://www.foo.com" elementFormDefault="qualified"/> ...
then they would be in the same namespace as foo. Global elements (those defined as children of the <schema> element) are always defined in the target namespace of the schema. Local elements are either in that namespace or in no namespace, depending upon whether their form is listed as "qualified" or not. Jeff ----- Original Message ----- From: "Cory Wilkerson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 02, 2003 7:02 AM Subject: RE: xmlns=" " in the doc\literal SOAP message Anne, When you say "local" elements -- do you mean local to the parent element as defined in the schema? In the following example, would bar and baz be considered local elements? <schema targetName="http://www.foo.com"/> <complexType name="foo> <sequence> <element name="bar" type="xsd:string"/> <element name="baz" type="xsd:string"/> </sequence> <complexType> </schema> I would think when this was serialized to the wire you'd see something like: <foo xmlns="http://www.foo.com"> <bar>cory</bar> <baz>anne</baz> </foo> After all, don't bar and baz technically belong to the foo.com namespace?
