Hi Stefan,
Have you tried using the
XmlOptions API to set this. I believe the following methods are relevant.
XmlOptions      setUseDefaultNamespace()
         If this option is set, the saver will try to use the default
namespace for the most commonly used URI.

XmlOptions      setSaveAggressiveNamespaces()
         Causes the saver to reduce the number of namespace prefix
declarations.

Hope this helps,
-Jacob Danner

On 4/24/07, Stefan Offermann <[EMAIL PROTECTED]> wrote:
Hallo,

how can I remove the prefix when saving a xml-document?

My current output looks like this:

<xid:rss xmlns:xid="http://lehre.ifgi.de/xidisplays2";>
        <xid:channel>
                <xid:title>iDisplays2 RSS Feed</xid:title>
                <xid:link>http://www.idisplays.info</xid:link>
    [...]

as you can see I am creating an rss-feed. My desired output would look
like this:

<rss xmlns="http://lehre.ifgi.de/xidisplays2";>
        <channel>
                <title>iDisplays2 RSS Feed</title>
                <link>http://www.idisplays.info</link>
    [...]

Is this possible with xmlbeans? Do I have to change something in the
xml-schema or in the code (when saving the document)?

Best regards, Stefan Offermann


--
Stefan Offermann
Institut für Geoinformatik
Westfälische Wilhelms-Universität
Robert-Koch-Str. 26-28
D-48149 Münster

Fon:  +49 (0)251 83-31961
Mail: [EMAIL PROTECTED]
Web:  http://www.ifgi.de
       http://ifgi.uni-muenster.de/~offermann/

---------------------------------------------------------------------
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