2
Reply

Add a new book to an existing xml file.

Phuong Pham

Phuong Pham

Mar 19 2011 11:04 AM
1.5k
I have a xml with books that looks like this:

<Books>

  <Book1>
    <Title>title1</Title>
    <Author>author1</Author>
    <Price>20</Price>
  </Book1>

  <Book2>
    <Title>title2</Title>
    <Author>author2</Author>
    <Price>15</Price>
  </Book2>

</Books>

And i want to add a new book to the list.
What is the proper way to do that?
Thx

Answers (2)
Next Recommended Forum