D
Dhurandhar Bhatvadekar
I am not sure if this is a naive question. But I have an arbitrarily
long document where I know that a DOCTYPE
declaration exists. I am not interested in "parsing" the document. All
I am interested is in finding out what the
System id and Public id of the document is.
A way I can think of is to write an entity resolver and somehow
arrange for the implementation of resolveEntity()
return an appropriate InputSource and preserve the system ID because
System/Public ID are passed to the method.
If that's the only way to achieve it, my question is:
- will this have performance impact and overhead of doing it this way,
because I have to give a call to the parse() method?
If there are other ways of achieving this (again, noting that I am
only interested in the declaration part), please
let me know.
Thank you!
long document where I know that a DOCTYPE
declaration exists. I am not interested in "parsing" the document. All
I am interested is in finding out what the
System id and Public id of the document is.
A way I can think of is to write an entity resolver and somehow
arrange for the implementation of resolveEntity()
return an appropriate InputSource and preserve the system ID because
System/Public ID are passed to the method.
If that's the only way to achieve it, my question is:
- will this have performance impact and overhead of doing it this way,
because I have to give a call to the parse() method?
If there are other ways of achieving this (again, noting that I am
only interested in the declaration part), please
let me know.
Thank you!