Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ Delphi FoxPro Java Perl Python Ruby SQL Server VBScript
|
ASP Script for Unzipping XML Sub-Trees, Unzip XMLASP script showing how to unzip compressed sub-trees within an XML document. <%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Unzip XML Records On-The-Fly</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/zipped.xml")
b = xml.FirstChild2()
While (b)
' Unzip the sub-tree.
xml.DecompressSubtree
Response.write xml.GetChildContent("name") + "<br>"
Response.write xml.GetChildContent("address") + "<br><br>"
b = xml.NextSibling2()
Wend
%>
</BODY>
</HTML>
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.