Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

namespaces in child tags

 
Emily Sit
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic