This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes namespaces in child tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "namespaces in child tags" Watch "namespaces in child tags" New topic
Author

namespaces in child tags

Emily Sit
Greenhorn

Joined: Mar 17, 2005
Posts: 8
Hi,

I am using WebLogic workshop xmlbeans in my application. The XMLs I am creating contain namespaces and it seems that namespaces are being declared multiple times within child tags.

eg.
<ord rderRetrievalResponse xmlns rd="ca/bell/oms/orderretrieval">
<ord:responseHeader>
<oms:receivedDateTime xmlns ms="ca/bell/oms/autotype/omscommonresponse">2007-03-22T10:34:07.218-04:00</oms:receivedDateTime>
<oms:transactionIdentifier xmlns ms="ca/bell/oms/autotype/omscommonresponse">testOr</oms:transactionIdentifier>
<oms rocessedDateTime xmlns ms="ca/bell/oms/autotype/omscommonresponse">2007-03-22T10:34:07.218-04:00</oms rocessedDateTime>
<oms:responseSystem xmlns ms="ca/bell/oms/autotype/omscommonresponse">OmfOrderRetrieve</oms:responseSystem>
<oms:successIndicator xmlns ms="ca/bell/oms/autotype/omscommonresponse">Success</oms:successIndicator>
</ord:responseHeader>

The namespace xmlns ms="ca/bell/oms/autotype/omscommonresponse" is defined within each tag. Is there a way to clean this up so that the namespace is declared once at the root?
 
jQuery in Action, 2nd edition
 
subject: namespaces in child tags
 
Similar Threads
NameSpaces in XML
Namespace Scope
namespace doubt
Tomacat -> Forcing termination of child process
How to identify Auth method NTLMv1 or NTLMv2