Hello,
Welcome to our Microsoft Q&A platform!
If you xml file put in the Assets folder, you can use this way to edit the xml at the runtime,
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(Assets.Open("MyVictor.xml"));
XmlNodeList tagList = xmlDocument.GetElementsByTagName("path");
foreach (XmlElement xmlElement in tagList)
{
XmlAttribute name = xmlElement.GetAttributeNode("android:pathData");
name.Value = @"M15.5,14h-0.79l-0.28,-0.27C15.41,12.59";
//if (name.Equals("pathData"))
//{
// xmlElement.InnerText = @"M15.5,14h-0.79l-0.28,-0.27C15.41,12.59";
//}
}
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.