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] http

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 000 [/snip] $doc = domxml_new_doc("1.0"); $root = $doc->add_root("Server"); $root->set_attribute("Name", "pxtest01"); $el = $doc->create_element("Serial_Num

[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: 0 0 DL380 8th Floor 2 Customer Upgrade I get the following output: Using the following code: add_root("Server"); $root->set_attribute("Name", "pxtest01"); $el = $doc->create_element("Seria