Jacob Danner schrieb:
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.

I gave both a try, but none of them worked for me :(

Here is the code how I save the file:

---------------------

XmlOptions opts = new XmlOptions();
opts.setUseDefaultNamespace();
opts.setSaveAggressiveNamespaces();
RssDocument rssDocument = RssDocument.Factory.newInstance(opts);

/* adding the content ... */

rssDocument.save(new File(filename)); // exceptionhandling removed

---------------------

I also tried setSaveSuggestedPrefixes, but this method doesn't work, I also would like to say that the whole XmlOptions-Object doesn't work in my case, it changes nothing :(

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]

Reply via email to