Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VB 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
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA


VB Strings
VB Byte Array

Unreleased...
Bzip2
LZW
Bz2
Icon

 

 

 

 

 

 

 

Using rdf:parseType="Resource"

VB6 code showing how to add or replace structure property values using rdf:parseType="Resource"

    ' Create an instance of the XMP ActiveX and unlock it.
    Dim xmp As New ChilkatXmp
    success = xmp.UnlockComponent("anything for 30 day trial")
    If (success = 0) Then
        MsgBox "Failed to unlock"
        Exit Sub
    End If
    
    ' Create a new XML document that looks like this:
    '
    ' <x:xmpmeta xmlns:x="adobe:ns:meta/">
    ' <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    ' </rdf:RDF>
    ' </x:xmpmeta>
    Dim xml As ChilkatXml
    Set xml = xmp.NewXmp()
    
    ' Use rdf:parseType="Resource" for structures instead of inner description nodes.
    xmp.StructInnerDescrip = 0

    ' Add a new structure property, creating the rdf:Description for the schema.
    xmp.AddStructProp xml, "Iptc4xmpCore:CreatorContactInfo", "Iptc4xmpCore:CiAdrCity", "Wheaton"
    xml.SaveXml "newStructA.xml"
    
    ' Add a new structure property to an already-existing structure in the XMP.
    xmp.AddStructProp xml, "Iptc4xmpCore:CreatorContactInfo", "Iptc4xmpCore:CiAdrRegion", "Illinois"
    xml.SaveXml "newStructB.xml"
    
    ' Replace an existing structure property's value.
    xmp.AddStructProp xml, "Iptc4xmpCore:CreatorContactInfo", "Iptc4xmpCore:CiAdrRegion", "Nevada"
    xml.SaveXml "newStructC.xml"
    


 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.