2.26 :match()

This method checks whether the current DOM node, to which the XML Cursor points, matches a certain pattern.

Definition

boolean :match
(
  string Pattern input
)

Parameters

string Pattern input

The pattern to compare the DOM node against.

The pattern syntax is described in chapter “Pattern for the Methods :match() and :select()” of manual “XML Interface”.

Return value

The method returns true if the DOM node matches the given pattern, false otherwise.

Please note that an XML Cursor, whose attribute .mapped possesses the value false, will automatically be positioned to the root of the DOM Document.

Objects with this method

doccursor