Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java - Creating a Document from a webpage

Name: Anonymous 2010-01-28 9:03

Hai guise.

What's the easiest way, in Java, of reading the HTML content of a webpage at a given URI, and build a org.w3c.dom.Document out of it ?

I have tried some things already but most parsers seem to fail when encountering javascript or CSS.

Name: Anonymous 2010-01-28 9:11

Call your Java code from inside Firefox/Mozilla through the JavaScript/Java bridge (which is called Live <something>, IIRC).

Name: Anonymous 2010-01-28 9:46

Read SICP

Name: Anonymous 2010-01-28 10:10

Name: Anonymous 2010-01-28 10:23

DocumentBuilderFactory

Name: Anonymous 2010-01-28 12:03

Thanks

Name: Anonymous 2010-01-29 2:18

faggotShitterFactory {
        Niggers }

Name: Anonymous 2010-01-29 2:46

>>7
* Male homosexual and * African American

Name: Anonymous 2010-01-29 4:25

>>3
Haha, why am I in it?

Name: Anonymous 2010-01-29 4:45

>>1
If those faggot web developers aren't smart enough to properly use <![CDATA[ sections, they don't even deserve their web pages to be parsed at all.

]]>

Name: Anonymous 2010-01-29 8:18

use a swing JTextPane object

Name: Anonymous 2010-01-29 10:21

>>1
SAX/StAX were here.
DOM is a fat loser.

Name: Anonymous 2010-01-29 10:24

>>12
My name is SAX. I force you to write overly complicated and brittle parsers for simple XML documents because I can!

Name: Anonymous 2010-01-29 10:25

SAX MY ANUS

Name: Anonymous 2010-01-29 18:11

>>13
What's your better API?

Name: Anonymous 2010-01-29 18:51

>>15
C# has a pretty good XML parsing library.

Name: Anonymous 2010-01-29 18:59

just use libxml2 or a wrapper for your language of choice

Name: Anonymous 2010-01-30 2:11

>>14
Sir/Madam/Other, I admire your tenacity.

Name: Anonymous 2013-04-20 17:58

Name: Anonymous 2013-04-20 23:29



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Don't change these.
Name: Email:
Entire Thread Thread List