<student><name>name</name><age>10</age></student>
<student><name>name1</name><age>11</age></student>
This is a sample. I want to add another node called student using php. I tried $XML->addChild("student"). But it doesnot create a new node since the name already exists. Please help.
And I need the solution in simple xml.
<student><name>name1</name><age>11</age></student>
This is a sample. I want to add another node called student using php. I tried $XML->addChild("student"). But it doesnot create a new node since the name already exists. Please help.
And I need the solution in simple xml.