• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

namespaces in child tags

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic