ASP Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

ASP Examples

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

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

 

 

 

 

 

 

ASP Script to Search XML

Download Chilkat XML ActiveX

ASP script showing how to search / find records in an XML document.

<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>ASP Script to Search XML</TITLE>
</HEAD>
<BODY>

<%
	
    ' Create an ASP XML parser object
    set xml0 = Server.CreateObject("Chilkat.Xml")

    ' Returns the XML page as a Variant
    set xml = xml0.HttpGet("http://www.xml-parser.com/companies.xml")

    ' Find all companies located in California
    ' 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*"
    Response.write "<h2>Companies with Headquarters in California</h2>"

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

        If Not (xml Is Nothing) Then
            ' Add the company name to the listbox.
            Response.write(xml.GetChildContent("name") + "<br>") 

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

    Wend
	
%>


</BODY>
</HTML>


 

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