• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wanted: Sample Neko constructors

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic