[jdom-interest] Problem or developer stupidity?
efortin at originalsim.com
Fri Dec 22 09:13:23 PST 2000
It has been done. It's a well formed document but I just saw that I use an
output format without any newline or indentation. I think it generate a too
long string and that's what cause my problem. I'll have to go onsite and
modify the servlet to send formatted XML. It should fix the problem but
I'll only be sure when I'll retry an update from the slave.
I'll keep you informed about this as others developers can have the same
----- Original Message -----
From: "Mike Jennings" <mjenning at islandnet.com>
To: "Etienne-Hugues Fortin" <efortin at originalsim.com>
Sent: Friday, December 22, 2000 12:09 PM
Subject: Re: [jdom-interest] Problem or developer stupidity?
> > Now, here's the code I use on the master side:
> > ==========
> > Url = new URL(SUrl);
> > unet = Url.openConnection();
> > unet.setDoOutput(true);
> > unet.setRequestProperty("Cookie", cookie);
> > unet.setRequestProperty("content-type",
> > "application/x-www-form-urlencoded");
> > out = new DataOutputStream(unet.getOutputStream());
> > out.writeBytes(
> > "Action=getupdate&last=" + LastUpdated + "&tablename=" + tableName);
> > out.flush();
> > out.close();
> > SAXBuilder jdom = new SAXBuilder();
> > Document doc = jdom.build(unet.getInputStream());
> I would modify the above code to write the servlet output to a file, then
> check to
> see if the file is a well-formed XML document.
> -Mike Jennings
> > ==========
> > It create an exception while creating the document doc. As you can see,
> > receive the InputStream from the http server directly into the
> > method and it work fine except for bigger documents. Right now, as I
> > I have about 1150 records sent in the XML document. In size, it's
> > 350-500 Kb.
> > Is there any problem related to size with jdom? Is there a solution
> > available directly in jdom classes or do I have to implement some code
> > will receive the document in a file and then, open this file with jdom?
> > Thanks.
> > Etienne Fortin
> > efortin at originalsim.com
> > _______________________________________________
> > To control your jdom-interest membership:
More information about the jdom-interest