Ciao a tutti, stavo cercando di lavorare un xml di dreamweaver, il file č php_codehints.xml di cui vi stampo la prima parte:
Se provo a utilizzare simpleXML, dom,etc.. di php mi vą in errore dicendomi:codice:<codehints xmlns:MMString="http://www.adobe.com/schemes/data/string/"> <menugroup MMString:name="php/CORE" id="PHP_CORE"> <description> <MMString:loadString id="php/CORE_desc" /> </description> <function pattern="abstract" doctypes="PHP_MySQL" displayrestriction="PHP_Script" caseSensitive="true" icon="shared/mm/images/hintKeyword.png" MMString:source="php/CORE" description="<div class='refentry refnamediv'> <h1 class='refname'>abstract</h1> <p class='verinfo'>(PHP 5)</p> <p class='refpurpose'><span class='refname'>abstract</span> — <span class='dc-title'>Keyword</span></p> </div><div class='copyright-info'>PHP Documentation is licensed under the Creative Commons Attribution 3.0 License. © 2001-2009 the PHP Documentation Group.</div>"/> <function pattern="and" doctypes="PHP_MySQL" displayrestriction="PHP_Script" caseSensitive="true" icon="shared/mm/images/hintKeyword.png" MMString:source="php/CORE" description="<div class='refentry refnamediv'> <h1 class='refname'>and</h1> <p class='refpurpose'><span class='refname'>and</span> — <span class='dc-title'>Keyword</span></p> </div><div class='copyright-info'>PHP Documentation is licensed under the Creative Commons Attribution 3.0 License. © 2001-2009 the PHP Documentation Group.</div>"/> <function pattern="as" doctypes="PHP_MySQL" displayrestriction="PHP_Script" caseSensitive="true" icon="shared/mm/images/hintKeyword.png" MMString:source="php/CORE" description="<div class='refentry refnamediv'> <h1 class='refname'>as</h1> <p class='refpurpose'><span class='refname'>as</span> — <span class='dc-title'>Keyword</span></p> </div><div class='copyright-info'>PHP Documentation is licensed under the Creative Commons Attribution 3.0 License. © 2001-2009 the PHP Documentation Group.</div>"/> <function pattern="break" doctypes="PHP_MySQL" displayrestriction="PHP_Script" caseSensitive="true" icon="shared/mm/images/hintKeyword.png" MMString:source="php/CORE" description="<div class='refentry refnamediv'> <h1 class='refname'>break</h1> <p class='refpurpose'><span class='refname'>break</span> — <span class='dc-title'>Keyword</span></p> </div><div class='copyright-info'>PHP Documentation is licensed under the Creative Commons Attribution 3.0 License. © 2001-2009 the PHP Documentation Group.</div>"/>
la linea 6 a cui fą riferimento č il primo tag "function" del file xml č l'errore si riferisce all'attributo "description" che contiene il carattere < non consentito.Warning: DOMDocument::load() [domdocument.load]: Unescaped '<' not allowed in attributes values in file:///C:/Program%20Files/Adobe/Adobe%20Dreamweaver%20CS5/configuration/CodeHints/php_codehints.xml, line: 6
Come posso fare?Io ho bisogno di avere la gestione dell'xml da script e poter aggiungere nodi...avete suggerimenti?