Thanks Radu for the information, i will use the toString() only for debug now. It works if I call the setUseDefaultNamespace() as parameter in my xmlText(). Is there a way to always delete this namespace ? (I try using this option when i create a newInstance of my document but it does not work) Thanks for your help !
From: [email protected]: [email protected]: RE: Message in 1 line and without prefixDate: Wed, 14 Jan 2009 23:30:09 -0500 First of all, let me repeat this: if you care how your XML text looks like, *don't* use toString(), because toString() doesn't accept parameters. Use toString() for debug only. In your case, Ben, you also need XmlOptions.setUseDefaultNamespace() Radu From: Ben roche [mailto:[email protected]] Sent: Wednesday, January 14, 2009 11:07 PMTo: [email protected]: Message in 1 line and without prefix Hi,I want to send my XML message in 1 line, without any prefix.When i use a toString method on my ObjectDocument, I have no prefix but the xml is on several lines:<Object> <Table Ref="57807" Color="blue"> (...) </Table></Object> When i use a xmlText() methodm(with XmlOptions.setSaveOuter) on my ObjectDocument, I have the xml in the same line but I've a prefix:<ent:Object><ent:Table Ref="57807" Color="blue">(...)</ent:Table></ent:Object> How can I combine these 2 requirements ? Thanks for the help Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile ! _________________________________________________________________ Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx

