AW: [PEAR-DEV] XML Serializer
| From: | Stephan Schmidt | Date: | Mon, 22 Sep 2003 10:02:14 +0000 |
| Subject: | AW: [PEAR-DEV] XML Serializer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21880@lists.php.net to get a copy of this message | ||
Hi,
> be ok. Also the option value prependAttributes should have a
> different
> name to be more consistent (ie indentArrtibute or
> attributeIndent) with
> the other option.
prependAttributes was meant to add something like "attr_" to all
attributes, this was just added to match the unserializer.
I'll add a new option that allows indentation of attributes in the next
release...
> I have another question since am lazy to browse the
> source, how does the Serializer handle invalid xml in the
> values (like & )
XML_Serializer uses XML_Util to create the tags, that means &, ", ', <
and > are replaced automatically...
Regarding all other chars all you have to do is set the correct
encoding...
Stephan