Search:

Type: Posts; User: yingzhao; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,727

    add a new node to an existing xml

    Hi,

    I need to add a new xml node to a exisiting xml. The xml is like this,



    $xmlTmpl = '<template><item><id>0</id><name>pipe</name><description>blah,...
  2. loadXML throws "Only one top level element is allowed in an XML document"

    Hi all,

    I have just started experimenting with php & xml.

    Followed the samples came with the DOM API section on this site. I was able to load the book.xml from the file system with the code...
Results 1 to 2 of 2