I'm trying to use the org.cyberneko.html.parsers.DOMParser class and I am having trouble understanding the javadoc at
http://www.docjar.com/docs/api/org/apache/xerces/xni/parser/XMLInputSource.html#XMLInputSource(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.io.InputStream,%20java.lang.String) I looked in the examples and found "Minimal.java" where (I think, it is not obvious) the author is reading from a file.
I'm trying to Create a neko DOMParser from html stored in a
string and I don't understand why I need 5 constructor arguments to XMLInputsource. I don't know what the publicid, systemid, basesystemid and encoding arguments are and the javadoc for the above URL does explain them!
I google searched for some examples and could not find any. Perhaps I was searching with the wrong keywords.
Can someone provide a simple example?
Thanks,
Siegfried