I have an XML file in which there is a particular string needs to be updated
Below in XML File I have “@@key@@”
<?xml version="1.0"?>
<Movies>
<Movie name="Ready">
<Director>John</Director>
<Download>http://www.youtube.com/watch?v=**@@Key@@**=relatedreadypart6</Download>
<Price>$40</Price>
</Movie>
</Movies>
I want to update @@key@@ with some valid Data.
Load the file as string. Do a simple
.Replaceand then parse it as XML.new_markupis astringrepresentation of the XML.docis an XML representation of the XML.