You should use this class where you previously passed around a string that looked like a URL, but was only intended to describe the URL — not to be used as one.
在您先前传递看上去象url的字符串(但这仅为了描述url而非使用它)的地方,您应当使用该类。
In a scenario where you only need to extract a single value from a response document, it can be more convenient to "cheat," treating the XML as a string of text rather than a structured document.
在只需要从响应文档中提取单一值的场景中,“欺骗性”地把XML当作文本字符串,而不把它当作结构化的文档对待,会更方便。
Note that even in cases where a absolute file name is provided, this API still returns only that string that directly forms part of the file name, as shown in Listing 10.
之前的字符串。请注意,即使提供了绝对文件名,此api仍然仅会返回属于文件名的直接部分,如清单10中所示。
应用推荐