![]() |
|
|
+ Search |
![]()
|
Apr 8th, 2005 03:34
Martin Honnen,
You can use appendChild to append a new child at the end of this XML
object's properties, the changed XML object is then returned:
var xmlObject = <gods><god>Kibo</god></gods>;
alert(xmlObject.appendChild(<god>Xibo</god>));
/* shows
'<gods>
<god>Kibo</god>
<god>Xibo</god>
</gods>'
*/