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

Back to Xml Class Summary

Xml::ExtractChildByName

Removes and returns the first child node having a tag equal to the tagName. The attributeName and attrValue may be empty or NULL, in which case the first child matching the tag is removed and returned. If attributeName is specified, then the first child having a tag equal to tagName, and an attribute with attributeName is returned. If attrValue is also specified, then only a child having a tag equal to tagName, and an attribute named attributeName, with a value equal to attrValue is returned.

  Declarations  
    [Visual Basic]
Public Function ExtractChildByName(ByVal String tagName , ByVal String attributeName , ByVal String attributeValue) As Xml

[C#]
public Xml ExtractChildByName(string tagName , string attributeName , string attributeValue);

[C++]
public Xml *ExtractChildByName(String *tagName , String *attributeName , String *attributeValue);

[JScript]
public function ExtractChildByName(String tagName , String attributeName , String attributeValue) : Xml
 
  Parameters  
   
tagName
Search for a child node matching this tag name.
attributeName
Can be NULL or empty, but if provided then the child node must have an attribute with this name.
attributeValue
Can be NULL or empty, but if provided then the child node must have an attribute with this value.
 

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