[xml] Error with xmlSchemaParse



Title: Error with xmlSchemaParse

Hi,

When trying to parse an xml schema file using "xmlSchemaParse" function, following errors are
displayed "Unable to load an external entity....." for both the urls given below :

"http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"

and

"http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"


Here is the part of schema which gives the above error :

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:roap="urn:oma:bac:dldrm:roap-1.0" xmlns:o-ex="http://odrl.net/1.1/ODRL-EX" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" targetNamespace="urn:oma:bac:dldrm:roap-1.0" elementFormDefault="unqualified" attributeFormDefault="unqualified">

        <!-- Would import the OMA profile of ODRL if such a schema existed -->
        <!--import namespace="http://odrl.net/1.1/ODRL-EX"/-->
        <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>

        <import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/>

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Both of the urls are working fine when opened in the internet explorer. I am not able to
understand as where the problem lies, as the urls are perfect.

Please help me in finding out the problem. I am using the libxml2(2.6.13.win32) version.

Thanks in advance. Waiting for your reply.

Regards,
Jyothi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]