Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

SearchForAttribute - Search XML Document for Attribute

Download Chilkat XML ActiveX

Demonstrates how to use Chilkat XML's SearchForAttribute method.

' XML Example: Load this document and access the count for Total:
' <?xml version="1.0" encoding="utf-8" ?>
' <TSBsCountResponse>
'     <ErrorCode>0</ErrorCode>
'     <ErrorMessage>No Error</ErrorMessage>
'     <TSBType name="Campaign or Recall" count="2"/>
'     <TSBType name="DTC Related" count="6"/>
'     <TSBType name="Service Bulletin" count="16"/>
'     <TSBType name="Others" count="110"/>
'     <TSBType name="Total" count="132"/>
' </TSBsCountResponse>

    Dim xml As New ChilkatXml
    xml.LoadXmlFile "sample.xml"
    
    Dim xTotal As ChilkatXml
    Set xTotal = xml.SearchForAttribute(Nothing, "TSBType", "name", "Total")
    MsgBox "Total = " + xTotal.GetAttrValue("count")

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.