public class XmlUtils extends Object
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static String |
currentDescription(XMLStreamReader reader) |
Obtains the brief description of the content that is being read during XML parsing.
|
static int |
getLineNumber(XMLStreamReader reader) |
Obtains the current line number of the data that is being read in the XML document.
|
public static int getLineNumber(XMLStreamReader reader)
reader - Indicates the XML reader.-1 if the line number fails to be obtained.public static String currentDescription(XMLStreamReader reader)
You can call this method to obtain the parsing progress and locate the content in XML parsing.
reader - Indicates the XML reader.