Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

  

  

  Chilkat ActiveX Components

  Chilkat .NET Components

  Chilkat C++ Libraries

  

  

  

  

 

FAQ

XML Indent Tool   Back to Online Tools

This page should be viewed in Internet Explorer. It uses the Chilkat XML ActiveX component, which is a digitally signed and safe-for-scripting client-side component.

Cut-and-Paste XML Document Here:

Javascript for Formatting XML with Indentation

<script type="text/javascript" language="javascript">

function xmlIndent()
{
	// The HTML OBJECT tag (above) is only present for the purpose
	// of downloading the XML ActiveX from the cab.
	// All Chilkat XML object must be dynamically created like this:
	var xmlDoc = new ActiveXObject("ChilkatXml.ChilkatXml");
	
	// Simply setting and getting the XML text provides formatting.
	xmlDoc.LoadXml(document.form1.etx.value);
	document.form1.etx.value = xmlDoc.GetXml();
}

</script>


Privacy Statement. Copyright 2000-2010 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows 7, Vista, XP, 2000, 2003 Server, and Windows 95/98/NT4.