RE: [PHP-WIN] Problem with DOM

2009-05-12 Thread Bellemo Maurizio
Hi I'm sorry, but I don't understand well what you are trying to tell me. Let's imagine I want to modify an existent XML file called customers.xml I should do this steps $doc = new DOMDocument(); $doc->load('customers.xml'); $root = $doc->getElementsByTagName("customers"); // to take the roo

[PHP-WIN] Problem with DOM

2009-05-12 Thread Bellemo Maurizio
Hi all, I'm trying to create some XML from PHP code to save data about customers, but I found many problem and it doesn't work. The class Customer is quite simple I put it right below name = $name; $this->phone = $phone; } function getName() { re