jjzjj

SelectorParseException

全部标签

java - Jsoup : SelectorParseException when colon in xml tag

当xml标签有冒号时抛出异常,异常:org.jsoup.select.Selector$SelectorParseException:无法解析查询“w:r”:“:r”处的意外标记XML:ANJava代码:org.jsoup.nodes.Documentdoc=Jsoup.parse(documentXmlString);这里的documentXmlString有上面指定的xml 最佳答案 只需将“:”替换为“|”doc.select("w|r");我正在使用Jsoup1.5.2。 关于j