Try this:

   http://www.xfront.com/BestPracticesHomepage.html

Either sections "Hide (Localize) Versus Expose Namespaces" or "Global versus Local".

Or just read them all, they're all well worth reading.


Muzaffer Ozakca wrote:
Hi all,

I'm using XMLBeans to create a document. Then I'm importing the generated document into another DOM tree using the DOM API (by calling getType.getDomMode() first to get the dom node from the XMLBeans generated document and then calling importNode())

This is working. I'm now trying to force namespace prefixes on all nodes. In other words, instead of:
<a>
   <b/>
   <c/>
</a>

I want:
<t:a>
   <t:b/>
   <t:c/>
</t:a>

where t is the namespace prefix. Is there a way to enable that? I played with a few settings in XmlOptions but none worked so far.

I'm pretty new to XML processing with Java, I am hoping XMLBeans is going to make it easier.

Thanks.

m

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to