For now I have XML Like this:
<root>
<snippet>
<title></title>
<content></content>
</snippet>
<snippet>
<title></title>
<content></content>
</snippet>
<snippet>
<title></title>
<content></content>
</snippet>
.
.
.
</root>
And i wana replace n snippet example:
xml = XML.loadFile(xmlFilePath)
val snippets = xml \\ "root" \\ "snippet"
Now I can refer to each by snippets(1),snippets(2),snippets(3) etc.
And now how to change/replace for example snippets(5)
Aucun commentaire:
Enregistrer un commentaire