Return-Path: Delivered-To: apmail-xml-xerces-c-dev-archive@www.apache.org Received: (qmail 91873 invoked from network); 22 Apr 2004 17:18:41 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Apr 2004 17:18:41 -0000 Received: (qmail 20208 invoked by uid 500); 22 Apr 2004 17:18:28 -0000 Delivered-To: apmail-xml-xerces-c-dev-archive@xml.apache.org Received: (qmail 20174 invoked by uid 500); 22 Apr 2004 17:18:28 -0000 Mailing-List: contact xerces-c-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-c-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-c-dev@xml.apache.org Received: (qmail 20108 invoked from network); 22 Apr 2004 17:18:28 -0000 Received: from unknown (HELO uslims57.ca.com) (208.232.182.11) by daedalus.apache.org with SMTP; 22 Apr 2004 17:18:28 -0000 Received: from usilms21.ca.com ([141.202.201.21]) by uslims57.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 22 Apr 2004 12:18:31 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6547.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: DOMInputSource and BinInputStream ??? Date: Thu, 22 Apr 2004 13:18:31 -0400 Message-ID: <8C6B052884783549B5D30C166853A514065A54F5@usilms21.ca.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DOMInputSource and BinInputStream ??? Thread-Index: AcQoUvHpP0A5RdBeQwKAwUjSDzEaBAAOj7Ug From: "Bovy, Stephen J" To: X-OriginalArrivalTime: 22 Apr 2004 17:18:31.0712 (UTC) FILETIME=[D5E2B200:01C4288D] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for the feedback, I realized though that I was doing the wrong thing: Here is the correct approach: MemBufInputSource* memBufIS =3D NULL; =20 Wrapper4InputSource* domBufIS =3D NULL; =20 memBufIS =3D new MemBufInputSource =20 ( =20 (const XMLByte*) sfile.ipc->pbuff =20 , sfile.ipc->leng =20 , gMemBufId =20 , false =20 ); =20 =20 domBufIS =3D new Wrapper4InputSource ( memBufIS ); =20 if ( sfile.ipc ) { =20 doc =3D sstate->doc =3D sstate->parser->parse(*domBufIS); =20 } else { =20 doc =3D sstate->doc =3D sstate->parser->parseURI(xmlFile); =20 } // endif in memory parse =20 delete domBufIS; delete memBufIS; -----Original Message----- From: Gareth Reakes [mailto:gareth@parthenoncomputing.com]=20 Sent: Thursday, April 22, 2004 3:17 AM To: xerces-c-dev@xml.apache.org Subject: Re: DOMInputSource and BinInputStream ??? Hi, without knowing what you are trying to achieve it is hard to know if this is the best way to do it, however, the code looks OK to me. Gareth On Wed, 21 Apr 2004, Bovy, Stephen J wrote: > How can I use DOMInputSource so that it uses a BinInputStream ???? > > Any suggestions would be greatly appreciated > > Can I do the following: > > class myinput : DOMInputSource, BinMemInputStream { > > public: > > myinput ( ) { }; > > ~myinput ( ) { }; > > BinInputStream* makestream ( ) { return this }; > > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org > --=20 Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com --------------------------------------------------------------------- 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