AW: [PEAR-DEV] XML Serializer
| From: | Stephan Schmidt | Date: | Mon, 22 Sep 2003 11:23:58 +0000 |
| Subject: | AW: [PEAR-DEV] XML Serializer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21886@lists.php.net to get a copy of this message | ||
Hi,
> I've made a patch, to append the ident of the indent of the
> element to
> the prependAttributes parameter. Basically the idea is that
> if you want
> to indent the
> xml attributes you probably want them to be indented after the xml
> element. Example
Could you please test the new CVS revision of XML_Serilaizer? You will
have to use the current CVS version of XML_Util, too.
I added indent and multiline support to the createTag*() methods in
XML_Util. As these are used to create the tags in XML_Serilaizer,
support for this could be easily added. XML_Serializer now has a new
option called indentAttributes.
Set it to any string to define the indentation (starting from the tag in
the current depth) or to "_auto" to indent it with the length of the
current tag.
If everything works out fine, I'll release a new version later this week
so you can officially use this feature...
Stephan
---
Stephan Schmidt
schst@php-tools.net
http://www.php-tools.net