xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samar Buchala <samarb...@yahoo.com>
Subject importing schema location form URI
Date Mon, 21 Jul 2008 14:29:32 GMT

I am new to both xerces and XML.  I have gone through the mailing list archives and it didn't
help me solve this strange problem I am experiencing.

I am using XercesDOMParser and trying to loadGrammar from a local schema file.  This local
shema also imports  "xml.xsd" schema file from its URL.  A snippet of the local shema is as

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs=........................">

  <xs:import namespace="http://www.w3.org/XML/1998/namespace"

The problem is the loadGrammar function is successful when the "http://" is removed from the
schemaLocation, or for that matter if schemaLocation is just "xml.xsd".  Otherwise, it takes
a long time in that function and returns a null pointer.  I don't know if I need to set something
before I loadGrammar.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message