XML ParserXML ParserDownload XML ParserContact XML Parser








Chilkat Zip
.NET & ActiveX
Component


Chilkat XML Object Model

There is only one object in the Chilkat XML object model.

Visual Basic* Dim xml as ChilkatXml
ASP Set xml = Server.CreateObject("AspXml.AspXml")
C# Chilkat.Xml *xml = new Chilkat.Xml();
VB.NET Dim xml As Chilkat.Xml
Visual C++ CkXml *xml = new CkXml;
Delphi var
xml: IChilkatXml;
begin
xml := CoChilkatXml.Create();
Visual FoxPro LOCAL objXml
objXml = CreateObject('ChilkatXml.ChilkatXml')

A Chilkat XML object represents a single node in an XML document. As long as one node exists referencing the document, the entire document remains in memory. When the last node referencing a document is deleted (or garbage collected) the entire document is removed from memory.

The root node is always accessible from any document node with the GetRoot method. GetParent returns the parent node, unless the node is a root of an entire tree, in which case it returns NULL. Siblings are available using the NextSibling and PreviousSibling methods. The TreeId property contains an auto-assigned (non-persistent) integer value that is the same for all nodes belonging to the same XML document.

The XML declaration:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

can be accessed and modified from any node in the document via the Encoding and Standalone properties.

Methods that end in "2", such as GetParent2, NextSibling2, etc. update the internal reference of the calling node. These methods allow an XML document to be navigated without the continual creation of new objects. (Your .NET garbage collector might not need to run as often...)

 

Copyright 2004 Chilkat Software, Inc. · All Rights Reserved

FREE XML Parser for
Microsoft Windows Applications and ASP Websites
.NET XML Parser / ActiveX XML Parser / C++ XML Parser / ASP XML Parser