You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Andreas Karlsson <an...@yahoo.se> on 2004/08/23 10:18:17 UTC

Parsing character streams

Hi,

is there a way to directly parse a character string
into a dom tree with xerces? I am writing an
application that gets its xml code via UDP and I would
want it to parse directly from the file descriptor or
a characer string.

regards 

  Andreas

Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


AW: Parsing character streams

Posted by Tobias Schütte <ts...@edvwl.de>.
just build a InputSource/BinInputStream pair for your udp data stream
and pass an instance of that inputsource to a dom/sax/sax2 parser, take
a look at LocalFileInputSource/BinFileInputStream in
xercesc/(util|framework).

mfg/regards
Tobias

-----Ursprüngliche Nachricht-----
Von: Andreas Karlsson [mailto:andreasjkarlsson@yahoo.se] 
Gesendet: Montag, 23. August 2004 10:18
An: xerces-c-dev@xml.apache.org
Betreff: Parsing character streams

Hi,

is there a way to directly parse a character string
into a dom tree with xerces? I am writing an
application that gets its xml code via UDP and I would
want it to parse directly from the file descriptor or
a characer string.

regards 

  Andreas

Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på
adressen http://se.docs.yahoo.com/travel/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org