Using Caché XML Tools
Contents
 
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

 
Contents

Preface : 
 
 
Chapter 1: 
 
  • 1.1 Representing Object Data in XML
  • 1.2 Creating Arbitrary XML
  • 1.3 Accessing Data
  • 1.4 Modifying XML
  • 1.5 The SAX Parser
  • 1.6 Additional XML Tools
  • 1.7 Considerations When Using the XML Tools
  • 1.7.1 Character Encoding of Input and Output
  • 1.7.2 Choosing a Document Format
  • 1.7.3 Parser Behavior
  • 1.8 Standards Supported in Caché
  • Chapter 2: 
     
  • 2.1 Overview of Creating an XML Writer
  • 2.2 Creating an Output Method
  • 2.2.1 Overall Method Structure
  • 2.2.2 Error Checking
  • 2.2.3 Inserting Comment Lines
  • 2.2.4 Example 1
  • 2.2.5 Example 2
  • 2.2.6 Details on Indent Option
  • 2.3 Specifying the Character Set of the Output
  • 2.4 Writing the Prolog
  • 2.4.1 Properties That Affect the Prolog
  • 2.4.2 Generating a Document Type Declaration
  • 2.4.3 Writing Processing Instructions
  • 2.5 Specifying a Default Namespace
  • 2.5.1 Example
  • 2.6 Adding Namespace Declarations
  • 2.6.1 Default Behavior
  • 2.6.2 Manually Adding the Declarations
  • 2.7 Writing the Root Element
  • 2.8 Generating an XML Element
  • 2.8.1 Generating an Object as an Element
  • 2.8.2 Constructing an Element Manually
  • 2.8.3 Using %XML.Element
  • 2.9 Controlling the Use of Namespaces
  • 2.9.1 Default Handling of Namespaces
  • 2.9.2 Controlling Whether Local Elements Are Qualified
  • 2.9.3 Controlling Whether an Element Is Local to Its Parent
  • 2.9.4 Controlling Whether Attributes Are Qualified
  • 2.9.5 Summary of Namespace Assignment
  • 2.10 Controlling the Appearance of Namespace Assignments
  • 2.10.1 Explicit versus Implicit Namespace Assignment
  • 2.10.2 Specifying Custom Prefixes for Namespaces
  • 2.11 Controlling How Empty Strings ("") Are Exported
  • 2.11.1 Example: RuntimeIgnoreNull Is 0 (Default)
  • 2.11.2 Example: RuntimeIgnoreNull Is 1
  • 2.12 Exporting Type Information
  • 2.13 Generating SOAP-Encoded XML
  • 2.13.1 Creating Inline References
  • 2.14 Controlling Unswizzling After Export
  • 2.15 Controlling the Closing of Elements
  • 2.16 Other Options of the Writer
  • 2.16.1 Canonicalize() Method
  • 2.16.2 Shallow Property
  • 2.16.3 Summary Property
  • 2.16.4 Base64LineBreaks Property
  • 2.16.5 CycleCheck Property
  • 2.17 Additional Example: Writer with Choice of Settings
  • Chapter 3: 
     
  • 3.1 Overview of Serving XML
  • 3.2 Creating a Simple Caché XML Server
  • 3.2.1 How the Example Behaves
  • 3.2.2 Creating the Example with the New Class Wizard
  • 3.3 Serving Objects as XML from CSP
  • 3.3.1 Modifying the XML Server Class
  • Chapter 4: 
     
  • 4.1 Overview of Creating an XML Reader
  • 4.2 Creating an Import Method
  • 4.2.1 Overall Method Structure
  • 4.2.2 Error Checking
  • 4.2.3 Basic Import Example
  • 4.2.4 Accessing a Document at an HTTPS URL
  • 4.3 Checking for Required Elements and Attributes
  • 4.4 Handling Unexpected Elements and Attributes
  • 4.5 Controlling How Empty Elements and Attributes Are Imported
  • 4.5.1 Example: IgnoreNull Is 0 (Default)
  • 4.5.2 Example: IgnoreNull Is 1
  • 4.6 Skipping Earlier Parts of the Input Document
  • 4.7 Other Useful Methods
  • 4.8 Reader Properties
  • 4.9 Redefining How the Reader Handles Correlated Objects
  • 4.9.1 When %XML.Reader Calls XMLNew()
  • 4.9.2 Example 1: Modifying XMLNew() in an XML-Enabled Class
  • 4.9.3 Example 2: Modifying XMLNew() in a Custom XML Adaptor
  • 4.10 Additional Examples
  • 4.10.1 Flexible Reader Class
  • 4.10.2 Reading a String
  • Chapter 5: 
     
  • 5.1 Opening an XML Document as a DOM
  • 5.1.1 Example 1: Converting a File to a DOM
  • 5.1.2 Example 2: Converting an Object to a DOM
  • 5.2 Getting the Namespaces of the DOM
  • 5.3 Navigating Nodes of the DOM
  • 5.3.1 Moving to Child or Sibling Nodes
  • 5.3.2 Moving to the Parent Node
  • 5.3.3 Moving to a Specific Node
  • 5.3.4 Using the id Attribute
  • 5.4 DOM Node Types
  • 5.5 Getting Information about the Current Node
  • 5.5.1 Example
  • 5.6 Basic Methods for Examining Attributes
  • 5.7 Additional Methods for Examining Attributes
  • 5.7.1 Methods That Use Only the Attribute Name
  • 5.7.2 Methods That Use the Attribute Name and Namespace
  • 5.8 Creating or Editing a DOM
  • 5.9 Writing XML Output from a DOM
  • Chapter 6: 
     
  • 6.1 About Encrypted XML Documents
  • 6.2 Creating an Encrypted XML Document
  • 6.2.1 Prerequisites for Encryption
  • 6.2.2 Requirements of the Container Class
  • 6.2.3 Generating an Encrypted XML Document
  • 6.3 Decrypting an Encrypted XML File
  • 6.3.1 Prerequisites for Decryption
  • 6.3.2 Decrypting the Document
  • Chapter 7: 
     
  • 7.1 About Digitally Signed Documents
  • 7.2 Creating a Digitally Signed XML Document
  • 7.2.1 Prerequisites for Signing
  • 7.2.2 Requirements of the XML-Enabled Class
  • 7.2.3 Generating and Adding the Signature
  • 7.3 Validating a Digital Signature
  • 7.3.1 Prerequisites for Validating Signatures
  • 7.3.2 Validating a Signature
  • 7.4 Variation: Digital Signature That References an ID
  • Chapter 8: 
     
  • 8.1 Creating a Text Reader Method
  • 8.1.1 Overall Structure
  • 8.1.2 Example 1
  • 8.1.3 Example 2
  • 8.2 Node Types
  • 8.3 Node Properties
  • 8.4 Argument Lists for the Parse Methods
  • 8.5 Navigating the Document
  • 8.5.1 Navigating to the Next Node
  • 8.5.2 Navigating to the First Occurrence of a Specific Element
  • 8.5.3 Navigating to an Attribute
  • 8.5.4 Navigating to the Next Node with Content
  • 8.5.5 Rewinding
  • 8.6 Performing Validation
  • 8.7 Examples: Namespace Reporting
  • Chapter 9: 
     
  • 9.1 Overview of Evaluating XPath Expressions in Caché
  • 9.2 Argument Lists When Creating an XPATH Document
  • 9.2.1 Adding Prefix Mappings for Default Namespaces
  • 9.3 Evaluating XPath Expressions
  • 9.4 Using the XPath Results
  • 9.4.1 Examining an XML Subtree
  • 9.4.2 Examining a Scalar Result
  • 9.4.3 General Approach
  • 9.5 Examples
  • 9.5.1 Evaluating an XPath Expression That Has a Subtree Result
  • 9.5.2 Evaluating an XPath Expression That Has a Scalar Result
  • Chapter 10: 
     
  • 10.1 Overview of Performing XSLT Transformations in Caché
  • 10.2 Configuring, Starting, and Stopping the XSLT 2.0 Gateway
  • 10.3 Creating a Compiled Style Sheet
  • 10.4 Performing an XSLT Transform
  • 10.5 Examples
  • 10.5.1 Example 1: Simple Substitution
  • 10.5.2 Example 2: Extraction of Contents
  • 10.5.3 Additional Examples
  • 10.6 Customizing the Error Handling
  • 10.7 Specifying Parameters for Use by the Stylesheet
  • 10.8 Adding and Using XSLT Extension Functions
  • 10.8.1 Implementing the evaluate Method
  • 10.8.2 Using evaluate in a Style Sheet
  • 10.9 Using the XSL Transform Wizard
  • Chapter 11: 
     
  • 11.1 About the Caché SAX Parser
  • 11.2 Available Parser Options
  • 11.3 Specifying the Parser Options
  • 11.4 Setting the Parser Flags
  • 11.5 Specifying the Event Mask
  • 11.5.1 Basic Flags
  • 11.5.2 Convenient Combination Flags
  • 11.5.3 Combining Flags into a Single Mask
  • 11.6 Specifying a Schema Document
  • 11.7 Disabling Entity Resolution
  • 11.8 Performing Custom Entity Resolution
  • 11.8.1 Example 1
  • 11.8.2 Example 2
  • 11.9 Creating a Custom Content Handler
  • 11.9.1 Overview of Creating Custom Content Handlers
  • 11.9.2 Customizable Methods of the SAX Content Handler
  • 11.9.3 Argument Lists for the SAX Parsing Methods
  • 11.9.4 A SAX Handler Example
  • 11.10 Using HTTPS
  • Chapter 12: 
     
  • 12.1 Using the Wizard
  • 12.2 Generating the Classes Programmatically
  • 12.3 Default Caché Data Types for Each XSD Type
  • 12.4 Property Keywords for the Generated Properties
  • 12.5 Parameters for the Generated Properties
  • 12.6 Adjusting the Generated Classes for Long Strings
  • Chapter 13: 
     
  • 13.1 Overview
  • 13.2 Building a Schema from Multiple Classes
  • 13.3 Generating Output for the Schema
  • 13.4 Examples
  • 13.4.1 Simple Example
  • 13.4.2 More Complex Schema Example
  • Chapter 14: 
     
     
    Appendix A: