psSelectionNamespaces - cXMLDOMDocument

Sets or gets a list of namespaces that can then be used by XPath related methods such as FindNode

Type: Property

Access: Read/Write

Data Type: String

Parameters: None

Syntax
 Property String psSelectionNamespaces

Read Access: Get psSelectionNamespaces to StringVariable
Write Access: Set psSelectionNamespaces to StringVariable/Value


Description

Sets or gets a list of namespaces that can then be used by XPath related methods such as FindNode. This is required because the MSXML6 parser has a different (and now standard) way of identifying namespaces.

psSelectionNamespaces allows XPath queries to work properly with namespaces. See FindNode for a complete description of this issue.

Sample

Set psSelectionNamespaces of hoXSLDoc to "xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:xhtml='http://www.w3.org/1999/xhtml'"              

Move ("xsl:template/xhtml:html/xhtml:head") to sQueryString
Get FindNode of hoRoot sQueryString to hoHead

If (hoHead <> 0) Begin
    Move ("xhtml:link[@href='css/StartCenter.css']") to sQueryString

          :