How do I select nodes that use a default namespace?
问题 The structure of the XML file is more or less as follows: <?xml version="1.0" encoding="UTF-8"?> <a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="url1" xsi:schemaLocation="url2 url3"> <b> <c></c> <c></c> <c></c> </b> </a> My goal is to select all the "c" elements, but the following xpath expression won't work: "//a/b/c". ie: XmlDocument doc= new XmlDocument(); doc.Load(filepath); XmlNodeList l = doc.SelectNodes("//a/b/c"); // 0 nodes The only xpath expressions I tested that