How can i parse xml file type of svg? [duplicate]
问题 This question already has answers here : How do I read and parse an XML file in C#? (11 answers) Closed 1 year ago . using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml; public class XmlReader : MonoBehaviour { XmlDocument doc = new XmlDocument(); // Use this for initialization void Start () { doc.Load(@"C:\Users\myxml\Documents\mysvg.svg"); XmlNode node = doc.DocumentElement.SelectSingleNode("/g"); foreach (XmlNode nodes in doc.DocumentElement