Re: Php.XPath's ExportAsXML
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2001-11-25 00:45:07
|
> Hello, > > I have problem with ExportAsXML. > > Source document: > > <xmp> > <html> > <body> > <b>first</b><i>second></i> > </body> > </html> > </xmp> > > exported by exportasxml looks: > > <xmp> > <html> > <body> > <b>first</b> > <i>second></i> > </body> > </html> > </xmp> > > For (x)html it is serious inteference... > > In my opinion including spaces and \n chars before tag (when document is > exported) should be optional. > > Greetings, > Lukasz Keler The Php.XPath development team are in complete agreement. In the future you'll find three modes of operation that you can select between. 1) Keep whitespace exactly as it was in the input file (the developent version currently does this) 2) "Pretty print" the xml adding \n after close tags (2.1 does this) 3) Trim all unnecessary whitespace. You'd select between the different modes using a SetOption() call after or at construction. Thanks for your interest. Nigel =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath |