ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
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
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar
ASP Upload
XML
XMP
Zip Compression

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

 

 

 

 

 

 

ASP Script to Add XML Attribute

Download Chilkat XML ActiveX

ASP script showing how to add an attribute to an XML node.

<%@ LANGUAGE="VBSCRIPT" %>

<%
    response.ContentType = "text/xml"
	
    ' Create an 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")

    ' Update our internal reference to be 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*"
    set microsoft = xml.FindNextRecord("name", "Microsoft*")
    If Not (microsoft Is Nothing) Then
        microsoft.AddAttribute "symbol", "MSFT"
    End If

    ' Update our internal reference to be the XML document root.
    xml.GetRoot2
	
    response.write xml.GetXml()
%>


 

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

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