[PHP] Help with creating an XML Document

2004-06-23 Thread Eric L. Sammons
Using PHP 4.3.2 I am trying to create an XML file that looks similar to the following: ?xml version=1.0 encoding=UTF-8? Server Name=pxtest01 Serical_Number0/Serical_Number Asset_Tag0/Asset_Tag ModelDL380/Model Location8th Floor/Location Cabinet2/Cabinet

Re: [PHP] Help with creating an XML Document

2004-06-23 Thread Matt Matijevich
[snip] Can someone help me fix my code so that when I add an element I can also set some contents or a value for that element? example serial_number000/serial_number [/snip] $doc = domxml_new_doc(1.0); $root = $doc-add_root(Server); $root-set_attribute(Name, pxtest01); $el =

Re: [PHP] Help with creating an XML Document

2004-06-23 Thread Gabriel Birke
I think you only have to change one line of your php code: $text = $doc-create_text_node(00); instead of $text = $doc-create_text_node($el[00]); With best regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstra├če 5 30175 Hannover Fax: +49 51184 48 98 99 mailto:[EMAIL PROTECTED]