Visual Basic 6.0
XML Examples for Visual Basic 6.0
Concepts
- Benefit of XML Methods Having Names Ending in "2"
- Xml TagPath Property Explained
- XML Document References
- Demonstrate the XML "I" Property
- Demonstrate the XML I, J, and K Properties
- XML Path Performance Optimizations
- XML Tree Traversal Order for Search* Methods
Navigating and Accessing Nodes
- Traverse the XML Tree
- Find Direct Child with Specific Tag
- GetChild* methods
- Iterate over Direct Child Nodes by Index
- Iterate over Direct Children with a Specific Tag
- Traverse Direct Children via FirstChild / NextSibling, or LastChild / PreviousSibling
- XML GetChildWithAttr
- Access an Inner Node of an XML Document
- Parsing XML Children Having Identical Tags
Attributes
- Methods for Getting Attributes
- Get XML Attribute Value by Path
- Update an XML Attribute
- Find XML Element where Attribute = Value
- Find and Update an XML Attribute Value
Searching
- SearchAllForContent
- XML SearchForAttribute Method
- XML SearchForTag Method
- Demonstrate the XML FindNextRecord Method
- XML Accumulate Tag Content
Creating XML
- Creating a New Child Node
- Setting XML Tag and Content
- XML NewChild2 using a Tag Path
- Demonstrate the XML NewChildInt2 Method
- Create XML using Tag Paths
- Create XML with Multiple Same-Tag Children
- Insert after Node with Tag
- Insert XML into existing XML by calling InsertChildTreeAfter
Updating and Removing Nodes
- Demonstrate the XML UpdateAt Method
- Demonstrate the XML UpdateAttrAt Method
- UpdateChildContent using a Tag Path
- Removing / Deleting Child Nodes from XML
- Remove an XML Subtree
Sorting
- XML Sort by Content
- XML Sort by Tag
- XML Sort Records by Content
Loading, Formatting and Content
- Using CDATA in XML
- Handling Namespaces in XML Tags
- Setting the XML DOCTYPE
- Auto-Trim XML Content when Loading
- Load ucs2 XML File (utf-16)
- XML EmitCompact
- Scrub Xml
- Efficiently Process a Huge XML File
Compression and Encryption
- Compress XML Content
- Compress XML Tree
- Encrypting and Decrypting Content
Real-World Examples: SOAP, Embedded PDFs, Excel
- SOAP WS-Security UsernameToken
- SOAP WS-Security Username Authentication
- Extract and Save PDF from SOAP XML
- Insert PDF as Base64 into XML, then Extract back to PDF File
- Extract PDF Invoice from FatturaElettronica XML
- Parse the XML of an Excel (XLS) Spreadsheet