From: <sie...@he...> - 2008-01-21 22:40:26
|
Can someone give me an example of parsing the contents of a string instead of reading from a file? I've studied the source code for neko and xerces and I cannot figure out how to create pass an input stream to the DOMParser.parse function. Apparently I can pass an XMLInputStream but the XMLInputStream constructor requires 5 constructor arguements to specify the publicid, systemid, basesystemid and encoding. What the heck do I pass as these values? Anyway, my attempts don't work: Neko complains that <HTML> is not a valid protocol (apparently it is looking for a URL). Thanks, Siegfried |