add new record in XML
in
Core Library Questions
•
11 months ago
I have an XML and I would like to add a new entry
- <?xml version="1.0"?>
- <data>
- <result id="0" steps="1">name1</result>
- <result id="1" steps="2">name2</result>
- <result id="2" steps="3">name3</result>
- <result id="3" steps="4">name4</result>
- </data>
- <?xml version="1.0"?>
- <data>
- <result id="0" steps="1">name1</result>
- <result id="1" steps="2">name2</result>
- <result id="2" steps="3">name3</result>
- <result id="3" steps="4">name4</result>
- //this new record
- <result id="4" steps="2">name5</result>
- </data>
1