   
parsed
Is a member of:
|
DOMDocument
XMLDOMNode
XMLDOMAttribute
XMLDOMCDATASection
XMLDOMComment
XMLDOMDocumentFragment
XMLDOMDocumentType
XMLDOMElement
XMLDOMEntity
XMLDOMEntityReference
XMLDOMNotation
XMLDOMProcessingInstruction
XMLDOMText
XTLRuntime
|
blnParsed = objDOMDocument.parsed
This property returns True/False, regarding whether the document is parsed, after it is loaded (i.e., indicates whether it is a well-formed document). It will only parse a document if you have set the resolveExternals property of DOMDocument to True. (See the resolveExternals property for more details.)
The following example is the same as found in the length property example, except we use this property to check whether the XML file is parsed.
Dim objDOMDocument As DOMDocument
Dim objNode As IXMLDOMNode
Set objDOMDocument = New DOMDocument
objDOMDocument.async = False
objDOMDocument.Load "http://localhost/xmlcode/people2.dtd"
If objDOMDocument.parsed = True Then
'run rest of code here
End If    
This manuscript is an abridged version of a chapter
from the Manning
Publications book XML
Programming with VB and ASP. This chapter looks at the Microsoft DOM objects. NOTE: Most images have been removed to increase speed and many of the code comments have also been removed for presentation. Please purchase the book to enjoy the full experience of all the chapters with images and code comments!
|