FoxPro Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Bz2
Icon

 

Non-Chilkat Links
Text and String Handling

Create XML Child Nodes with Attributes

How 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