|
Hi David
Brian is right. In fact dom4j cannot determine by
itself when the end of a document occurs since an XML document can contain other
stuff after the end tag, e.g. comments or processing instructions.
<!-- this is a valid XML document
-->
<something>
hello
</something>
<!-- this is a comment -->
<?stylesheet file="foo.xslt"?>
As Brian says, using some kind of protocol is
required to determine the length of the XML file - such as using a content
length in the HTTP protocol. This simple mechanism can be implemented on top of
sockets using streams.
If in doubt though, use HTTP (or Servlets) to do
all this for you.
James
|
Title: Message
- [dom4j-user] Help reading xml from socket David Hooker
- Re: [dom4j-user] Help reading xml from socket Brian Young
- RE: [dom4j-user] Help reading xml from socket David Hooker
- James Strachan
