Hi, Martin, Sorry I don't know the answer to your question. I'm querying the experts in the Apache xercesc group for suggestions.
Thanks, Lihong -----Original Message----- From: Martin Sinclair Sent: Friday, April 11, 2008 9:24 AM To: Lihong Pei Subject: Xerces-C and http: access Hi; I've been doing some work using the Xerces-C library, and I was wondering if you could help me. I've been using XercesDOMParser to parse xml files; and I would like to implement schema validation. I can validate my xml files against a schema, if that schema is a local file. But when I try to validate my xml files against a web URL (in this case http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.4/index.xsd) the XercesDOMParser::parse operation throws an exception. The Xerces-C FAQ suggests that I use XMLNetAccessor, but it only says "Xerces-C++ provides the NetAccessor interface. The header file is src/xercesc/util/XMLNetAccessor.hpp. This interface allows you to plug in your own implementation of URL networking code into the Xerces-C++ parser". It doesn't give any examples, or say how to plug things in. Have you got, or do you know where I could find, a piece of example code where Xerces reads something from outside the Xilinx firewall? Thanks very much, Martin _ / /\/ Martin Sinclair \ \ Solutions Development Group / / Xilinx Scotland \_\/\ Tel: +44 (0)131 312 5049 or (826) 5049 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
