[jdom-interest] Trying to send doc via socket

Sean & Katie Stallbaum csbaum at cox.net
Sun Aug 24 18:15:43 PDT 2003


Hi,

 

I am trying to send a little XML doc via a socket, which I set up the
stream-reader/writer to use UTF8, keeps giving me the following exception on
the receiving end, which is not making much sense to me.   Granted I am new
to the whole XML thing, so I apologize if the problem is something silly.

 

JDOM Exception : org.jdom.input.JDOMParseException: Error on line 3: Content
is not allowed in trailing section.

 

Using the following,

 

XMLOutputter outputter = new XMLOutputter("  ", true);

 

I get this.

<?xml version="1.0" encoding="UTF-8"?>

<OpenMind_ICS_Request>

  <timestamp>13:31:02 08252003</timestamp>

  <requestIP>192.168.20.101</requestIP>

  <Type>1</Type>

</OpenMind_ICS_Request>

 

When I actually send it though I use XMLOutputter outp = new XMLOutputter();

 

I was wondering if anyone has run into the problem before?

 

Thanks,

 

Sean Stallbaum

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030824/44665c1e/attachment.htm


More information about the jdom-interest mailing list