65.9K
CodeProject is changing. Read more.
Home

Dynamically append an XML document

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.67/5 (3 votes)

Mar 23, 2010

CPOL
viewsIcon

13733

This code demonstrates how to append an XML document. We will add a new element and some inner text. Call the function, provide arguments for the path to the file, the name of the child node, the element name, and the text to add. The file is opened, appended, and saved. The function returns a...