Hi Muzaffer,
You might be able to do something with XmlCursor
(prefixForNamespace(...) )to add the prefix and then use the XmlOption
(setSave ... ) to get this behavior.

I must ask though, why you need a specific prefix if you are working
with DOM implementations. Requiring a specific prefix will lead to
LOTS of maintenance issues.

Hope this helps,
-Jacob Danner

On 6/12/07, Muzaffer Ozakca <[EMAIL PROTECTED]> 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