How to Append new Child in XML.

oracle

New Member
Messages
430
Reaction score
0
Points
0
Hello frnds,

I m quite new to xml and it really frustrates me. I have following xml file:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Mozart</title>
<location>Mozart.MP3</location>
</track>
</trackList>
</playlist>

Now I want to make it look like:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Mozart</title>
<location>Mozart.MP3</location>
</track>
<track>
<title>Beethoven</title>
<location>Beethovan.MP3</location>
</track>
</trackList>
</playlist>

Kindly help me out on this.

Thanking in advance.
 
Top