Re: [PHP-WIN] Problem with DOM

2009-05-12 Thread Niel Archer
Hi Got it working as expected. Try the following modified class class customer { $name; $phone; function customer($name, $phone) { $this->name = $name; $this->phone = $phone; } function getName() { return $n

Re: [PHP-WIN] Problem with DOM

2009-05-12 Thread Niel Archer
> > 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->getElementsBy

Re: [PHP-WIN] Problem with DOM

2009-05-12 Thread Niel Archer
> 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")

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

Re: [PHP-WIN] Problem with DOM

2009-05-12 Thread Niel Archer
> 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 > > > class customer { > var $name; > var $phone; > > function customer(

[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