ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "FrontPage/Axis/OnlyTopLevelElementHasNamespace" by ChrisEbert
Date Thu, 03 Nov 2005 23:34:48 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by ChrisEbert:
http://wiki.apache.org/ws/FrontPage/Axis/OnlyTopLevelElementHasNamespace

The comment on the change is:
Made the short answer a little clearer.

------------------------------------------------------------------------------
  == Q. The elements immediately under the top level element in XML serialized by Axis all
have an attribute 'xmlns=""'. Why are they there? ==
  
  From Anne Thomas Manes (posting on the axis-user list):
+ 
  xmlns="" is the proper way to declare no default namespace, and its
  the only way to override a previously declared default namespace.
  
@@ -57, +58 @@

  For the curious, the relevant bit of the 2001 RFC is: http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#declare-element
  
  == Q. Uh, what's the short answer? ==
- Put attribute elementFormDefault="qualified" on your <schema> tag. The sub elements
of the elements you declare aren't in the namespace you think they're in.
+ Put attribute elementFormDefault="qualified" on your <schema> tag. The sub elements
of the elements you declare aren't in any namespace unless you force them to be.
  

Mime
View raw message