VB.NET Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB.NET Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML to XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Byte Array
VB.NET FTPS
System.IO

Unreleased...
Bzip2
LZW
Bz2
Icon

 

 

 

 

 

 

How to use GetParent and GetParent2

How to use GetParent and GetParent2. This is a snippet of the document used in this example:

Download Chilkat .NET for 2.0 Framework

Download Chilkat .NET for 1.0 / 1.1 Framework

Dim xml0 As New Chilkat.Xml()
Dim xml As Chilkat.Xml

'  The Chilkat XML component is freeware.

'  Load an XML document.  Typically you might call LoadXml
'  to load an XML file.  This example loads an XML file from
'  a URL:
xml = xml0.HttpGet("http://www.chilkatsoft.com/testData/bookstore.xml")

'  The xml object points to the root node of the XML document.

'  Set bookNode equal to the 1st child of the root.
Dim bookNode As Chilkat.Xml
bookNode = xml.GetChild(0)

'  Set titleNode equal to the title child of bookNode:
Dim titleNode As Chilkat.Xml
titleNode = bookNode.GetChildWithTag("title")

'  Call GetParent to return a new object pointing to the parent node:
Dim bookNode2 As Chilkat.Xml
bookNode2 = titleNode.GetParent()

'  bookNode2 and bookNode point to the same node.

'  Call GetParent2 (which returns nothing) to modify the internal
'  pointer within the calling object so that it points to the immediate parent:
titleNode.GetParent2()

'  Now titleNode points to the same node as bookNode2 and bookNode.
'  To prove it, generate the XML sub-tree rooted at the calling
'  node and display each:
Dim str1 As String
Dim str2 As String
Dim str3 As String
str1 = bookNode.GetXml()
str2 = bookNode2.GetXml()
str3 = titleNode.GetXml()

TextBox1.Text = TextBox1.Text & str1 & vbCrLf
TextBox1.Text = TextBox1.Text & str2 & vbCrLf
TextBox1.Text = TextBox1.Text & str3 & vbCrLf

 

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

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

Mail Component · XML Parser