DrHeadgear
Programmer
Using msxml4 and VB6 with DomDocument40 on Windows2000 I
get a "VB6 has generated internal errors and will shut
down" message on loading xml (loadXML).
Here is the string I'm sending:
<RootTag xmlns:xsi="instance" xsi:schemaLocation="xmlns="><childNode2><subNode1>content</subNode1></childNode2></Ro
otTag>
here is the code to process it (objDom is a previously
dimensioned new DomDocument40):
objDom.async = False
objDom.validateOnParse = True
objDom.resolveExternals = True
If Not objDom.loadXML(strHRXML) Then
MsgBox objDom.parseError.reason
GoTo ErrorHandler
End If
The problem occurs whether the location of the xsd file is
specifeid correctly or not, i.e. it's not a problem with
my XSD schema.
Just for fun I removed the first part of the
schemaLocation attribute (the namespace uri). This gave an
error informing me that "attribute schemaLocation has an
invalid value according to the schema/dtd".
Is this an msxml4 bug or am I doing something wrong, if
so, what?
get a "VB6 has generated internal errors and will shut
down" message on loading xml (loadXML).
Here is the string I'm sending:
<RootTag xmlns:xsi="instance" xsi:schemaLocation="xmlns="><childNode2><subNode1>content</subNode1></childNode2></Ro
otTag>
here is the code to process it (objDom is a previously
dimensioned new DomDocument40):
objDom.async = False
objDom.validateOnParse = True
objDom.resolveExternals = True
If Not objDom.loadXML(strHRXML) Then
MsgBox objDom.parseError.reason
GoTo ErrorHandler
End If
The problem occurs whether the location of the xsd file is
specifeid correctly or not, i.e. it's not a problem with
my XSD schema.
Just for fun I removed the first part of the
schemaLocation attribute (the namespace uri). This gave an
error informing me that "attribute schemaLocation has an
invalid value according to the schema/dtd".
Is this an msxml4 bug or am I doing something wrong, if
so, what?