The problem is that there is a proxy between Xerces and the outside world and I 
need Xerces to perform XML validation
against a schema which includes online references to an external schema 
(e.g <xs:import  > namespace="http://www.w3.org/myspace 
schemaLocation="http://www.w3.org/schema.xsd"/>.

I built Xerces 3.0.1 to use libcurl(--enable-netaccessor-curl). Now, I assume 
Xerces has an API which wraps libcurl's
API to allow Xerces to set the proxy host and port similar to what Xerces-j 
does to set system properties: "http.proxyHost" and "http.proxyPort". Can 
someone point me to the documentation on this API? Otherwise, why compile 
Xerces to use libcurl?  

Here's how Xerces-j handles this use case:
$ java -Dhttp.proxyHost="www-stl-proxy4.MyProxy.com" -Dhttp.proxyPort="8160" 
-classpath SimpleParser.jar;xercesImpl.jar JavaXMLParse filename.xml 
filename.dtd

In a nutshell,how can I do this with Xerces-C++ using libcurl?

Reply via email to