Java Code Examples for org.xmlpull.v1.XmlPullParser#getLineNumber()
The following examples show how to use
org.xmlpull.v1.XmlPullParser#getLineNumber() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PullReader.java From simplexml with Apache License 2.0 | 4 votes |
public Start(XmlPullParser parser) { this.reference = parser.getNamespace(); this.line = parser.getLineNumber(); this.prefix = parser.getPrefix(); this.name = parser.getName(); }
Example 2
Source File: Backup.java From AppOpsXposed with GNU General Public License v3.0 | 4 votes |
ParseException(XmlPullParser xml, String message) { super("XML:" + xml.getLineNumber() + ":" + xml.getColumnNumber() + ": " + message); }
Example 3
Source File: PullReader.java From simplexml with Apache License 2.0 | 3 votes |
/** * Constructor for the <code>Start</code> object. This will * wrap the provided node and expose the required details such * as the name, namespace prefix and namespace reference. The * provided element node can be acquired for debugging purposes. * * @param source this is the parser being wrapped by this */ public Start(XmlPullParser source) { this.reference = source.getNamespace(); this.line = source.getLineNumber(); this.prefix = source.getPrefix(); this.name = source.getName(); this.source = source; }