I have an xml file called "ResourceData.xml".
<?xml version="1.0" encoding="utf-8" ?>
<root>
<key name="customPageTitle">
<value>Publish Resources to Custom Page</value>
</key>
</root>
Now I want to write a function that takes the key "name"as input and returns the data of the value element, in the above case it will return "Publish Resources to Custom Page", if we pass the key name "customPageTitle", I think the XML file will open, and then it will read.
Please suggest !!
source
share