v2.6 always tell me "Could not connect to the socket for URL
'http://www.w3.org/2001/xml.xsd'" when I wanna parse a xml file with target
namespace.
---------------------------------------------------------------------------------------------------------------------------------------------------
Key: XERCESC-1495
URL: http://issues.apache.org/jira/browse/XERCESC-1495
Project: Xerces-C++
Type: Bug
Components: Validating Parser (Schema) (Xerces 1.5 or up only)
Versions: 2.6.0
Environment: Win2000, VC++, STLPORT
Reporter: Savorjava
Priority: Blocker
Xerces-C++ has not prepared for industry developing and application. I was
trying to parse a xml file with target namespace and I indicated to check the
schema, DOMBuilder is really slow and finally tell me:
-----------------------------------------------------------------------
Fatal Error at file , line 0, char 0
Message: An exception occurred! Type:NetAccessorException, Message:Could not c
onnect to the socket for URL 'http://www.w3.org/2001/xml.xsd'
Fatal Error at file E:\works\IMS\PS\XML\Release/resource_lists.xsd, line 7, char
55
Message: Fatal error encountered during schema scan
Errors occurred, no output available
------------------------------------------------------------------------
by the way, I use DOMCount in samples of Xerces-C++2.6 to handle a xml and a
xsd file(indicate 2 xsd file in a xml is same too). here is my command:
DOMCount -n -s -v=always b.xml
partial content of b.xml:
<?xml version="1.0" encoding="UTF-8"?>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:resource-lists resource_lists.xsd">
<list name="friends">
<entry uri="sip:[EMAIL PROTECTED]">
<display-name>Bill Doe</display-name>
</entry>
<entry-ref ref="resource-lists/users/bill/mylist/~~/resource-lists/l
[EMAIL PROTECTED]/[EMAIL PROTECTED]:[EMAIL PROTECTED]"/>
<list name="close-friends">
<display-name>Close Friends</display-name>
<entry uri="sip:[EMAIL PROTECTED]">
<display-name>Joe Smith</display-name>
</entry>
<entry uri="sip:[EMAIL PROTECTED]">
<display-name>Nancy Gross</display-name>
</entry>
<external anchor="http://www.example.org/xcap/resource-lists/users/a
/foo/~~/resource-lists/[EMAIL PROTECTED]">
<display-name>Marketing</display-name>
</external>
</list>
</list>
</resource-lists>
partial content of resource_lists.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
xmlns="urn:ietf:params:xml:ns:resource-lists"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:complexType name="listType">
<xs:sequence>
...
it doesn't work well, I think Xerces-C++ is too young to handle complex Schema,
I hope it will be strong soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]