.NET Components
Chilkat .NET Components for Email, Zip Compression, Encryption, XML, S/MIME, and Character Encoding Conversion

Back to Xml Class Summary

Xml::SearchForAttribute

Returns the first node having a tag equal to tagName, and an attribute named attrName whose value matches valuePattern, which is a case-sensitive string that can use any number of '*'s to represent 0 or more occurances of any character. The search is breadth-first over the tree, and the previous node returned can be passed to the next call as afterNode to continue the search after that node.

  Declarations  
    [Visual Basic]
Public Function SearchForAttribute(Xml afterNode , ByVal String tagName , ByVal String attributeName , ByVal String attributeValuePattern) As Xml

[C#]
public Xml SearchForAttribute(Xml afterNode , string tagName , string attributeName , string attributeValuePattern);

[C++]
public Xml *SearchForAttribute(Xml *afterNode , String *tagName , String *attributeName , String *attributeValuePattern);

[JScript]
public function SearchForAttribute(Xml afterNode , String tagName , String attributeName , String attributeValuePattern) : Xml
 
  Parameters  
   
afterNode
Return the first match after this node.
tagName
The matched node must have a tag with this exact value.
attributeName
The matched node must have an attribute with this exact name.
attributeValuePattern
The matched node must have the attribute value match this pattern.
 

Copyright 2002, Chilkat Software, Inc. All Rights Reserved.