Re: Re: [PEPr] +1 for XML::XML_FastCreate
| From: | Guillaume Lecanu | Date: | Tue, 27 Apr 2004 09:55:06 +0000 |
| Subject: | Re: Re: [PEPr] +1 for XML::XML_FastCreate | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28426@lists.php.net to get a copy of this message | ||
Le mar 27/04/2004 à 11:18, Guillaume Lecanu a écrit :
> Le mar 27/04/2004 à 11:05, Bertrand Mansion a écrit :
> > Why not 'checked'=>'checked' or just 'checked'(just the
> > value, no key). Both
> > forms are supported by html_common BTW.
>
> To make correct XML syntax, you must use 'checked'=>'checked' because
> all attributs in XML needs a value.
>
> But if you use the syntax 'checked'=>true, this will make a single
> attribute, not valid XML.
> This may be use if you want make HTML4 output.
To use single attributes, you must also set the constructor option
'singleAttributes' to true.
I have add a warning in the PHP source about this option :
http://lya.no-ip.com/pear/XML_FastCreate/FastCreate/Text.phps
As this case is very particular, i have removed the paragraph about it
into example1.php.
I have also changed the 'null' to 'true'.