Define a namespace-to-prefix mapping and use this prefix (a) in the XPath expression. xml.xpath("//a:author/a:name", {"a" => "http://www.
確定! 回上一頁