Re: AW: [PEAR-DEV] XML Serializer

From: Date: Mon, 22 Sep 2003 11:52:39 +0000
Subject: Re: AW: [PEAR-DEV] XML Serializer
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21888@lists.php.net to get a copy of this message
The ident feature works like a charm thanks :) Btw I fixed a small typo in the package xml file, rel should be ge and gte (at least so I think) Yavor Stephan Schmidt wrote:
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
-- Yavor Shahpasov yavo@siava.org

« previous php.pear.dev (#21888) next »