Re: [libxml++] bad style



On Tue, 2004-05-25 at 22:11 +0700, Akbar wrote:
[snip]
>     document.write_to_file(filepath);
> }

You probably want Document::write_to_file_formatted():
http://libxmlplusplus.sourceforge.net/reference/2.6/html/classxmlpp_1_1Document.html#a10

> And my xml file will be like this:
> <?xml version="1.0"?>
> <!DOCTYPE wallpaper>
> <wallpaper><file>/home/knight/wallpaper/eowyn2.jpg
> </file><file>/home/knight/wallpaper/eowyn2.jpg
> </file><file>/home/knight/wallpaper/eowyn2.jpg
> </file><file>/home/knight/wallpaper/eowyn2.jpg
> </file><file>/home/knight/wallpaper/eowyn2.jpg
> </file></wallpaper>
> 
> 
> How can I make it like this:
> <?xml version="1.0"?>
> <!DOCTYPE wallpaper>
> <wallpaper>
> <file>/home/knight/wallpaper/eowyn2.jpg</file>
> <file>/home/knight/wallpaper/eowyn2.jpg</file>
> <file>/home/knight/wallpaper/eowyn2.jpg</file>
> <file>/home/knight/wallpaper/eowyn2.jpg</file>
> <file>/home/knight/wallpaper/eowyn2.jpg</file>
> </wallpaper>
> 
> Thank you.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g. 
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Libxmlplusplus-general mailing list
> Libxmlplusplus-general lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]