Re: [Simple-support] XML formatting for attribute lists
Brought to you by:
niallg
|
From: <Nia...@ub...> - 2009-02-11 09:51:14
|
Hi, Simplest thing to do would be to implement your own writer to scan for new lines, for each new line extracted decide how long the line should be. Then i-- until you find a space, and replace that space with a newline. For example. LineWriter out = new LineWriter(fileOut); Persiser persister = new Persister(); persister.write(myObject, out); I was intending to do something like this, configurable within the Format object. However, for now you would need to write your own, which should be a simple enough to do. Niall -----Original Message----- From: Rob Griffin [mailto:rob...@qu...] Sent: 10 February 2009 22:13 To: Simple Subject: [Simple-support] XML formatting for attribute lists Hello, Is there any way to control how the XML is written so that the attribute list of an element is wrapped after it reaches a certain length? I often have to look at the XML and find it difficult to read where there are a lot of attributes. Regards, Rob Griffin Quest Software www.quest.com ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England & Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England & Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. |