public class XmlDomParserWithLineNumbers extends Object
Modifier and Type | Method and Description |
---|---|
static Document |
parse(InputSource xml)
Constructs a document builder, parses xml, then returns a document with a new DocumentLocation
object stored as userData in each node
|
static Document |
parse(InputStream xml) |
public static Document parse(InputStream xml) throws IOException, SAXException
IOException
SAXException
public static Document parse(InputSource xml) throws IOException, SAXException
xml
- the input source of xmlIOException
SAXException