VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB.NET Examples

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

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

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

Find XML Records

Download Chilkat .NET for 4.0 Framework

Download Chilkat .NET for 64-bit 4.0 Framework (x64)

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 64-bit 2.0 / 3.5 Framework (x64)

Download Chilkat .NET for 1.0 / 1.1 Framework

VB.NET sample code showing how to find / search for XML records in an XML document.

    ' Find all companies located in California
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click

        Dim xml As New Chilkat.Xml()
        xml.LoadXmlFile("companies.xml")

        ' Navigate to the first company record.
        xml.FirstChild2()

        ' Find the next XML node where there is a child node having tag "name"
        ' with a value that matches the wildcarded pattern "Microsoft*"
        ListBox1.Items.Clear()
        ListBox1.Items.Add("Companies in California")

        While Not (xml Is Nothing)
            ' FindNextRecord *will* return the current record if it
            ' matches the criteria. 
            xml = xml.FindNextRecord("state", "CA")

            If Not (xml Is Nothing) Then
                ' Add the company name to the listbox.
                ListBox1.Items.Add(xml.GetChildContent("name"))

                ' Advance past this record.
                xml = xml.NextSibling()
            End If

        End While


    End Sub

The companies.xml file should contain this XML:
<?xml version="1.0" encoding="iso-8859-1" ?>
<companies>
    <company>
        <name>Chilkat Software, Inc.</name>
        <address>1719 E Forest Ave</address>
        <city>Wheaton</city>
        <state>IL</state>
        <zip>60187</zip>
        <website>http://www.chilkatsoft.com</website>
        <phone>630-784-9670</phone>
    </company>
    <company>
        <name>Microsoft Corporation</name>
        <address>One Microsoft Way</address>
        <city>Redmond</city>
        <state>WA</state>
        <zip>98052</zip>
        <website>http://www.microsoft.com</website>
        <phone>555-882-8080</phone>
    </company>
    <company>
        <name>Intel Corporation</name>
        <address>2200 Mission College Blvd.</address>
        <city>Santa Clara</city>
        <state>CA</state>
        <zip>95052</zip>
        <website>http://www.intel.com</website>
        <phone>555-765-8080</phone>
    </company>
    <company>
        <name>Adobe Systems Incorporated</name>
        <address>345 Park Avenue</address>
        <city>San Jose</city>
        <state>CA</state>
        <zip>95110</zip>
        <website>http://www.adobe.com</website>
        <phone>555-536-6000</phone>
    </company>
</companies>

 

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

Mail Component · XML Parser