D
Dominik Stadler
Hi,
We have a file that contains multiple XML-Messages in the form of:
<FIRSTMESSAGE>...</FIRSTMESSAGE><SECONDMESSAGE>...</SECONDMESSAGE>
I know this looks broken from the beginning, but we cannot change the
application that generates these kind of data, so we need a way to cope
with it.
How would I go about reading/splitting this? I don't think there is
functionality available to do this with Xerces, right?
I thought about using SAX to try to parse the complete text (we should get
an error at the second message) and then read the char/line information
from the errormessage, but this sounds like a hack to me, is there some
other way?
Thanks... Dominik.
We have a file that contains multiple XML-Messages in the form of:
<FIRSTMESSAGE>...</FIRSTMESSAGE><SECONDMESSAGE>...</SECONDMESSAGE>
I know this looks broken from the beginning, but we cannot change the
application that generates these kind of data, so we need a way to cope
with it.
How would I go about reading/splitting this? I don't think there is
functionality available to do this with Xerces, right?
I thought about using SAX to try to parse the complete text (we should get
an error at the second message) and then read the char/line information
from the errormessage, but this sounds like a hack to me, is there some
other way?
Thanks... Dominik.