Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
Create XML Child Nodes with AttributesHow to create XML child nodes with attributes. LOCAL loXml LOCAL loXNode0 LOCAL loXChild loXml = CreateObject('Chilkat.Xml') * The Chilkat XML component is freeware. loXml.Tag = "product" loXNode0 = loXml.NewChild("properties","") loXChild = loXNode0.NewChild("price","") loXChild.AddAttribute("SellPrice","11.99") RELEASE loXChild loXChild = loXNode0.NewChild("price","") loXChild.AddAttribute("BasePrice","11.99") RELEASE loXChild RELEASE loXNode0 ? loXml.GetXml() * Prints this: * <product> * <properties> * <price SellPrice="11.99"></price> * <price BasePrice="11.99"></price> * </properties> * </product> |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser