You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Enrico Paolo Lelli <bc...@bca72.it> on 2001/12/04 10:54:21 UTC

Need help

Hi all, I'm looking for advices about Xerces Parser.
In my code I have a client sending xml string: the server write down this 
string in a file and then give it to Xerces parser to process it.
I would like to know if I might directly parse the string, without writing 
the file.
Here is my actual code:

dis.receive();
command = dis.readUTF();
byte [] nextBuf = command.getBytes();
String fileName = "message.xml";
FileOutputStream fos = new FileOutputStream(fileName );
fos.write(nextBuf);
SaxParser sp = new SaxParser(this);
sp.performDemo(fileName );

I would like something like this:

dis.receive();
command = dis.readUTF();
SaxParser sp = new SaxParser(this);
sp.performDemo(command );

Please help!!! :))

Tnx, Enrico.


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