Return-Path: Delivered-To: apmail-xerces-c-users-archive@www.apache.org Received: (qmail 42943 invoked from network); 24 Sep 2009 18:23:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 18:23:11 -0000 Received: (qmail 71398 invoked by uid 500); 24 Sep 2009 18:23:11 -0000 Delivered-To: apmail-xerces-c-users-archive@xerces.apache.org Received: (qmail 71372 invoked by uid 500); 24 Sep 2009 18:23:11 -0000 Mailing-List: contact c-users-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-users@xerces.apache.org Delivered-To: mailing list c-users@xerces.apache.org Received: (qmail 71362 invoked by uid 99); 24 Sep 2009 18:23:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 18:23:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [131.239.30.131] (HELO ntmamx1.progress.com) (131.239.30.131) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 18:23:00 +0000 Received: from ntmamx1.progress.com (127.0.0.1) by ntmamx1.progress.com (MlfMTA v3.2r9) id hnesgi0171sd for ; Thu, 24 Sep 2009 14:22:44 -0400 (envelope-from ) Received: from progress.com ([172.16.3.168]) by ntmamx1.progress.com (SonicWALL 7.1.1.1995) with ESMTP; Thu, 24 Sep 2009 14:22:44 -0400 Received: from NTEXFE01.bedford.progress.com (ntexfe01 [10.128.10.24]) by progress.com (8.13.8/8.13.8) with ESMTP id n8OIMd9j018610 for ; Thu, 24 Sep 2009 14:22:39 -0400 (EDT) Received: from [127.0.0.1] ([172.16.204.25]) by NTEXFE01.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 24 Sep 2009 14:22:38 -0400 Message-ID: <4ABBB8EB.6090101@datadirect.com> Date: Thu, 24 Sep 2009 20:22:35 +0200 From: Alberto Massari User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: c-users@xerces.apache.org Subject: Re: How to get Xerces to recognize external entity callouts References: <20090903190647.194020@gmx.net> <4AA0EDD6.5090404@datadirect.com> <20090904120048.32620@gmx.net> <4AA1063B.3020206@datadirect.com> <20090904132037.251130@gmx.net> <4AA11922.1070404@datadirect.com> <20090904135237.255740@gmx.net> <4AA12040.7010803@datadirect.com> <20090906160141.25150@gmx.net> <4AA4B58D.2090300@datadirect.com> <20090907080924.92300@gmx.net> <4AA609D0.2070009@datadirect.com> <20090914105919.214950@gmx.net> <4AB91A32.8080104@datadirect.com> <4AB9C897.3020207@datadirect.com> <4ABB0E16.4030305@datadirect.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Sep 2009 18:22:38.0707 (UTC) FILETIME=[FF324C30:01CA3D43] X-Mlf-Version: 7.1.1.1995 X-Mlf-UniqueId: o200909241822440356534 X-Virus-Checked: Checked by ClamAV on apache.org If you want to stay with 2.7, you should recompile Xerces with the libwww NetAccessor; then in your code use the libwww API for registering a proxy (I think it is HTProxy_add) and at that point I think you should be able to load URLs. Alberto Dantzler, DeWayne C wrote: > Alberto > > Do I need to recompile Xerces to support netaccessor and does this require upgrading Xerces from 2.7.0 to 3.0.1? > I have confirmed that my entity resolver is being called. Now, is there away in Xerces to specify the proxy and port like > proxyHost="use-this-proxy" and proxyPort="use-port"? I would rather use Xerces to handle the entity resolution if at all possible. > > Thanks for your assistance > > DeWayne Dantlzer > > > -----Original Message----- > From: Alberto Massari [mailto:amassari@datadirect.com] > Sent: Wednesday, September 23, 2009 11:14 PM > To: c-users@xerces.apache.org > Subject: Re: How to get Xerces to recognize external entity callouts > > Dantlzer, > you are providing your own entity resolver, so Xerces will call you to fetch the external entity; try adding a few debugging traces to verify that you are indeed called and that you are able to resolve the given URL. > In any case, as you are behind a proxy, you should manually retrieve the entity (using whatever feature your platform provides - WinHTTP for Windows, cUrl for Unix..) and wrap it in a MemBufInputSource object. > > Alberto > > Dantzler, DeWayne C wrote: > >> HI Alberto >> >> I ran across a reference(link below) given by you a few years ago on a similar problem which I think is related to mine. >> http://marc.info/?l=xerces-c-users&m=118373267604850&w=2 >> >> I forgot to mention that I'm also behind a firewall and need to access our company's proxy. I don't know if a NetAccessor was compiled in our version of Xerces. How can I verify this? Also, here is how I'm invoking the parser. >> >> Thanks >> >> Code snippet >> ---------------------------------------------------------------- >> _XmlDOMParser->setEntityResolver(resolver); >> _XmlDOMParser->setValidationScheme(_XmlDOMParser->Val_Always); >> _XmlDOMParser->setDoSchema(false); >> _XmlDOMParser->parse(xmlDoc2Parse); >> >> >> DeWayne Dantlzer >> >> >> -----Original Message----- >> From: Alberto Massari [mailto:amassari@datadirect.com] >> Sent: Wednesday, September 23, 2009 12:05 AM >> To: c-users@xerces.apache.org >> Subject: Re: How to get Xerces to recognize external entity callouts >> >> Hi, >> how are you invoking the parsing? Maybe you disabled external enitity resolution, or you didn't compile a NetAccessor inside Xerces. >> >> Alberto >> >> Dantzler, DeWayne C wrote: >> >> >>> Hello guys >>> >>> I'm getting Xerces parse errors and I believe it is because the entity callouts can not be located(see below). How do I get Xerces to follow the URL in the entity callout to resolve this. I'm running Xerces 2.7.0 and not sure if this feature is supported. Do I need to upgrade Xerces? >>> >>> >>> Snippet of the xml file >>> --------------------------------------------------------------------- >>> - >>> ---------------------------------- >>> >> "mpboe03.dtd" [ >> Line Drawing//EN//XML" >>> "http://www.w3.org/2003/entities/2007/isobox.ent" > %isobox; >>> >> Delimiters//EN//XML" >>> "http://www.w3.org/2003/entities/2007/isoamsc.ent" > %isoamsc; >>> >>> >>> DeWayne Dantlzer >>> >>> >>> >>> >>> >> >> > > >