Using Caché XML Tools
- About This Book
- Introduction to Caché XML Tools
- Representing Object Data in XML
- Creating Arbitrary XML
- Accessing Data
- Modifying XML
- The SAX Parser
- Additional XML Tools
- Considerations When Using the XML Tools
- Standards Supported in Caché
- Writing XML Output from Caché Objects
- Overview of Creating an XML Writer
- Creating an Output Method
- Specifying the Character Set of the Output
- Writing the Prolog
- Specifying a Default Namespace
- Adding Namespace Declarations
- Writing the Root Element
- Generating an XML Element
- Controlling the Use of Namespaces
- Controlling the Appearance of Namespace Assignments
- Controlling How Empty Strings ("") Are Exported
- Exporting Type Information
- Generating SOAP-Encoded XML
- Controlling Unswizzling After Export
- Controlling the Closing of Elements
- Other Options of the Writer
- Additional Example: Writer with Choice of Settings
- Serving XML from Caché
- Importing XML into Caché Objects
- Overview of Creating an XML Reader
- Creating an Import Method
- Checking for Required Elements and Attributes
- Handling Unexpected Elements and Attributes
- Controlling How Empty Elements and Attributes Are Imported
- Other Useful Methods
- Reader Properties
- Redefining How the Reader Handles Correlated Objects
- Additional Examples
- Representing an XML Document as a DOM
- Opening an XML Document as a DOM
- Getting the Namespaces of the DOM
- Navigating Nodes of the DOM
- DOM Node Types
- Getting Information about the Current Node
- Basic Methods for Examining Attributes
- Additional Methods for Examining Attributes
- Creating or Editing a DOM
- Writing XML Output from a DOM
- Encrypting XML Documents
- Signing XML Documents
- About Digitally Signed Documents
- Creating a Digitally Signed XML Document
- Validating a Digital Signature
- Variation: Digital Signature That References an ID
- Using %XML.TextReader
- Creating a Text Reader Method
- Node Types
- Node Properties
- Argument Lists for the Parse Methods
- Navigating the Document
- Performing Validation
- Examples: Namespace Reporting
- Evaluating XPath Expressions
- Overview of Evaluating XPath Expressions in Caché
- Argument Lists When Creating an XPATH Document
- Evaluating XPath Expressions
- Using the XPath Results
- Examples
- Performing XSLT Transformations
- Overview of Performing XSLT Transformations in Caché
- Configuring, Starting, and Stopping the XSLT 2.0 Gateway
- Reusing an XSLT Gateway Server Connection (XSLT 2.0)
- Troubleshooting an XSLT 2.0 Gateway Server Connection
- Creating a Compiled Stylesheet
- Performing an XSLT Transform
- Examples
- Customizing the Error Handling
- Specifying Parameters for Use by the Stylesheet
- Adding and Using XSLT Extension Functions
- Using the XSL Transform Wizard
- Customizing How the Caché SAX Parser Is Used
- About the Caché SAX Parser
- Available Parser Options
- Specifying the Parser Options
- Setting the Parser Flags
- Specifying the Event Mask
- Specifying a Schema Document
- Disabling Entity Resolution
- Performing Custom Entity Resolution
- Creating a Custom Content Handler
- Using HTTPS
- Generating Classes from XML Schemas
- Using the Wizard
- Generating the Classes Programmatically
- Default Caché Data Types for Each XSD Type
- Property Keywords for the Generated Properties
- Parameters for the Generated Properties
- Adjusting the Generated Classes for Long Strings
- Generating XML Schemas from Classes
- Examining Namespaces and Classes
- XML Background