[jdom-interest] SAXBuilder.build(URL) connects twice?

Mike Hogarth mike at hogarth.org
Sun Jan 20 11:19:27 PST 2002

I have the following code in a program:

        SAXBuilder builder = new SAXBuilder(false);
        Document doc = builder.build(host.toString());
        XMLOutputter xml_out = new XMLOutputter();
//get the raw text.

The host.toString() =
If you click that link with Internet Explorer, you get a
single XML document... 

I also used a socket reading program and the results are
attached as raw_socket_data.xml --- verifying that it
returns one document.

Yet, what is printed in the through the XMLOutputter is two
instances of <PubMedArticle> entries, each the same as the

I can't figure out why I am getting two XML records with
JDOM connections when doing it with a browser or other
software results in a single XML document. 

Help... It is totally screwing up a piece of software that
expects a single record.

--Mike H
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pubmed2.xml
Type: text/xml
Size: 6382 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020120/b602b3e1/pubmed2.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw_socket_data.xml
Type: text/xml
Size: 3267 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020120/b602b3e1/raw_socket_data.xml

More information about the jdom-interest mailing list