   
namespaceURI
Is a member of:
|
DOMDocument
XMLDOMNode
XMLDOMAttribute
XMLDOMCDATASection
XMLDOMComment
XMLDOMDocumentFragment
XMLDOMDocumentType
XMLDOMElement
XMLDOMEntity
XMLDOMEntityReference
XMLDOMNotation
XMLDOMProcessingInstruction
XMLDOMText
XTLRuntime
|
Syntax
strValue = objDOMDocument.namespaceURI
Remark
This property is read-only. If a namespace has been specified in the XML
document, this property returns a string of the location of the URI. As this
property is read-only, you cannot add a namespaceURI to a DOMDocument.
Example
In the following example, we checking if the
namespaceURI has been set for the DOMDocument.
Dim objDOMDocument As DOMDocument
Set objDOMDocument = New DOMDocument
objDOMDocument.async = False
objDOMDocument.Load "http://localhost/xmlcode/people2.dtd"
If objDOMDocument.namespaceURI <> "" then
`run some 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!
|