Hashtable of options : 'dtd' : Set the DTD file to check validity [required the XML_DTD package] 'indent' : Enable / disable output indentation 'version' : Set the XML version (default = '1.0') 'encoding' : Set the encoding charset (default = 'UTF-8') 'standalone' : Set the standalone attribute (default = 'no') 'doctype' : DocType string, set manually or use : XML_FASTCREATE_DOCTYPE_XHTML_1_1 XML_FASTCREATE_DOCTYPE_XHTML_1_0_STRICT XML_FASTCREATE_DOCTYPE_XHTML_1_0_FRAMESET XML_FASTCREATE_DOCTYPE_XHTML_1_0_TRANSITIONAL XML_FASTCREATE_DOCTYPE_HTML_4_01_STRICT XML_FASTCREATE_DOCTYPE_HTML_4_01_FRAMESET XML_FASTCREATE_DOCTYPE_HTML_4_01_TRANSITIONAL 'quote' : Auto quote attributes & contents (default = true) 'translate' : Hashtable of tags to translate to anothers : 'translate' => array( 'title' => array('<h1 class="title"><span>', '</span></h1>'), 'date' => array('<span class="date">', '</span>'), ) 'exec' : Use an external tool to valid the document 'file' : Write the validation output to a file 'expand' : Return single tag with the syntax : <tag></tag> rather <tag /> (default = false) ( set to true if you write HTML ) 'apos' : Quote apostrophe to ' (default = true) <! WARNING !> For valid XML, you must let this option to true. If you write XHTML, Microsoft Internet Explorer won't recognize this entitie, so you need to turn this option to false. 'singleAttribute' : Accept single attributes (default = false) ex: $x->input(array('type'=>'checkbox', checked=>true)) => <input type="checkbox" checked /> <! WARNING !> This syntax is not valid XML. For valid XML, don't use this option, use this : ex: $x->input(array('type'=>'checkbox', checked=>'checked')) => <input type="checkbox" checked=>"checked" /> |