Another note with SimpleXML [closed]

mathan

New Member
\[quote\] Possible Duplicate:
A simple program to CRUD node and node values of xml file \[/quote\]This is an example XML file: \[code\]<?xml version="1.0" encoding="ISO-8859-1"?><notes> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note></notes>\[/code\]How to add another \[code\]note\[/code\] (with all its elements) using \[code\]SimpleXML\[/code\]?
addChild() adds only a child to an existing tree, as far as I know.
 
Back
Top