Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python 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> |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser