G
Gary V
I am trying to build a Java client which will read a never ending XML
data stream from a socket. Here is a simplified example of the XML
document:
<?xml version='1.0' encoding='us-ascii'?>
<NeverendingDataStream>
<Data>1.0</Data>
<Data>2.0</Data>
followed by a continuous stream of <Data> elements from a server
application that may not send the closing </NeverendingDataStream> tag
for several hours or days.
The DocumentBuilderFactory and DocumentBuilder parser for building a
DOM object tree fails because of a missing end tag.
Is there a way to force partial document parsing? I have turned
validating off but it continues to throw a fatal error.
Thanks,
Gary V
data stream from a socket. Here is a simplified example of the XML
document:
<?xml version='1.0' encoding='us-ascii'?>
<NeverendingDataStream>
<Data>1.0</Data>
<Data>2.0</Data>
followed by a continuous stream of <Data> elements from a server
application that may not send the closing </NeverendingDataStream> tag
for several hours or days.
The DocumentBuilderFactory and DocumentBuilder parser for building a
DOM object tree fails because of a missing end tag.
Is there a way to force partial document parsing? I have turned
validating off but it continues to throw a fatal error.
Thanks,
Gary V