Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB& crash on loadxml with msxml4

Status
Not open for further replies.

DrHeadgear

Programmer
Oct 12, 2001
14
0
0
DK
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=&quot;instance&quot; xsi:schemaLocation=&quot;xmlns=&quot;><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 &quot;attribute schemaLocation has an
invalid value according to the schema/dtd&quot;.

Is this an msxml4 bug or am I doing something wrong, if
so, what?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top