<item identifier="INTRO" identifierref="RESOURCE_INTRO"> <title>Introduction</title> </item>The treeview looks something like this:
+Node: Item INTRO + Node: Title Introduction + Attrib: identifierref RESOURCE INTRO +Node #text IntroductionI have code to filter the #text (node) out - but it is a nusiance. Is there a DOM function I can use to prohibit "#text" node types from showing up. Where do they come from, anyway?:)
>Dim xmlDoc As New Msxml2.DOMDocument30 >xmlDoc.async = False >xmlDoc.validateOnParse = True >xmlDoc.Load "books.xml" >If (xmlDoc.parseError.errorCode <> 0) Then > Dim myErr > Set myErr = xmlDoc.parseError > MsgBox("You have error " & myErr.reason) >End If >>
>Dim xmlDoc As New Msxml2.DOMDocument30 >xmlDoc.async = False >xmlDoc.Load "books.xml" >xmlDoc.Validate >If (xmlDoc.parseError.errorCode <> 0) Then > Dim myErr > Set myErr = xmlDoc.parseError > MsgBox("You have error " & myErr.reason) >End If >>