[Xerces C++] Parsing from an istream (was: [Java|1.0.1] Parsing from StringBuffer...)

2000-02-18 Thread Gilles FILIPPINI
Sorry about a few mistakes into my previous post : You should read : class IStreamBinInputStream : public BinInputStream { istream & mIn; public: IStreamBinInputStream(istream & in) : BinInputStream(), mIn(in) { } ... }; and : class IStreamInputSource : pub

[Xerces C++] Parsing from an istream (was: [Java|1.0.1] Parsing from StringBuffer...)

2000-02-18 Thread Gilles FILIPPINI
Jean Georges PERRIN ([EMAIL PROTECTED]) wrote : > 1/ Any idea about how to make that in C++ ? I've set up a couple of C++ classes in order to be able to parse XML with Xerces C++ from an istream. Is it possible to have them included into the distribution ? - Gilles.

RE: [Java|1.0.1] Parsing from StringBuffer...

2000-02-18 Thread Jean Georges PERRIN
J's Development Tools (www.4js.com) [EMAIL PROTECTED] - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21 -- CAUTION: import com.fourjs.StandardDisclaimer; > -Original Message- > From: Scott Sanders [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2000 18:33 >

Re: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Scott Sanders
Thanks. I'll give it a try ;-) >(in this example doc is the Document for the DOM tree) > > public void print(Writer out,String encoding) { > XMLSerializer xser = new XMLSerializer(); > xser.asDOMSerializer(); > xser.setOutputCharStream(out); > OutputFormat of = new OutputFormat(doc,encoding

RE: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Gregory Krasnow
- From: Scott Sanders [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2000 9:22 AM To: [EMAIL PROTECTED] Subject: Re: [Java|1.0.1] Parsing from StringBuffer... Do you have a quick example? > I've done it by using the serializer classes and serializing to a > java.io.S

Re: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Scott Sanders
Do you have a quick example? > I've done it by using the serializer classes and serializing to a > java.io.StringWriter. > > - Greg > > Is there something like that to do the opposite, ie, given a DOM tree, how > do I get it into a single String or StringBuffer. > > > create a java.io.StringReader

RE: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Gregory Krasnow
I've done it by using the serializer classes and serializing to a java.io.StringWriter. - Greg -Original Message- From: Scott Sanders [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2000 9:15 AM To: [EMAIL PROTECTED] Subject: Re: [Java|1.0.1] Parsing from StringBuffer...

Re: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Scott Sanders
Is there something like that to do the opposite, ie, given a DOM tree, how do I get it into a single String or StringBuffer. Thanks, Scott Sanders > create a java.io.StringReader, then create a org.xml.sax.InputSource from > the StringReader. Pass the input source into the parse() method and yo

RE: [Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Gregory Krasnow
: [EMAIL PROTECTED] Subject: [Java|1.0.1] Parsing from StringBuffer... Hi, I have some data in a StringBuffer. These data are XML. I'd like to parse them. How can I "feed" the DOM parser wo/ writing a file ? TIA Jean Georges PERRIN -- Four J's Development Tools (www.4js.com) [EM

[Java|1.0.1] Parsing from StringBuffer...

2000-02-17 Thread Jean Georges PERRIN
Hi, I have some data in a StringBuffer. These data are XML. I'd like to parse them. How can I "feed" the DOM parser wo/ writing a file ? TIA Jean Georges PERRIN -- Four J's Development Tools (www.4js.com) [EMAIL PROTECTED] - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21 -- CAUTION: import