Skip to main contentSkip to search
Powered by Zoomin Software. For more details please contactZoomin
Progress DocumentationProgress Documentation
Progress Documentation
  • Home
  • Home
  • EnglishČeštinaDeutsch (Germany)Español (Spain)FrançaisItaliano (Italy)Português (Brasil)日本語Русский (Russia)中文 (简体) (China)中文 (繁體, 台灣) (Taiwan)ar-AR
  • Login

Use XML with ABL Applications

Retrieve names and phone numbers example

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
Table of Contents
  • Develop with XML in OpenEdge
    • About XML
      • Role of XML
      • Benefits of XML
      • Benefits of ABL XML development in OpenEdge
      • Benefits of SOA XML development in OpenEdge
      • Recommended resources for learning XML basics
    • Develop XML-enabled ABL applications with DOM
      • DOM advantages
      • DOM limits
      • ABL support
      • More information
    • Develop XML-enabled ABL applications with SAX
      • SAX advantages
      • SAX limits
      • ABL support
      • More information
    • Serialize ABL temp-tables and ProDataSets to and from XML
      • Features
      • Use cases
      • ABL support
      • More information
  • Read and Write XML with the Document Object Model (DOM)
    • XML terminology
      • XML document structure
        • XML prolog
        • XML body
        • DTDs and XML Schema documents
        • XML elements
        • XML attributes
        • XML empty elements
        • XML entities
        • XML namespaces
    • The ABL DOM interface
      • Prerequisites
      • Represent an XML document in ABL DOM
      • Represent a DOM node in ABL
    • Create XML output from ABL
      • The root node reference object
      • Create and append a node
      • Set node attributes and values
      • Example of creating an output XML file
        • Insert a document fragment into an XML file
        • Write an XML file to a MEMPTR, a stream, or a LONGCHAR
    • Read XML input into ABL
      • Load an XML file
        • Load an XML file from a LONGCHAR
        • Load an XML file from a MEMPTR
      • Access the child nodes
        • Use node attributes and values
      • Examples of reading an input XML file
    • Namespaces
    • Internationalization
    • Error handling
    • Validation
    • Method and attribute summary
  • Read XML Documents with the Simple API for XML (SAX)
    • Explore ABL SAX
      • SAX-reader object
      • ABL SAX callbacks
      • SAX-attributes object
        • Retrieve data from a SAX-attributes object
        • Create a SAX-attributes object
      • Validate an XML document
      • Namespace processing
        • Namespace declarations
        • Effects of namespace processing
      • Parse an XML document
      • Monitor the state of the parse
      • Error handling
    • Develop ABL SAX applications
      • Basic tasks of an OpenEdge SAX application
      • Retrieve names and phone numbers example
        • Without namespace processing
        • With namespace processing
      • Read customer data and write to a TEMP-TABLE example
    • ABL SAX and WebSpeed
      • Read XML data with WebSpeed example
      • SAX and the AppBuilder
        • Store and recall context information
        • Context management example
      • Read an XML file using methods as callback
    • SAX API reference
      • SAX error message reference
      • SAX callback reference
        • Characters
        • EndDocument
        • EndElement
        • EndPrefixMapping
        • Error
        • FatalError
        • IgnorableWhitespace
        • NotationDecl
        • ProcessingInstruction
        • ResolveEntity
        • StartDocument
        • StartElement
        • StartPrefixMapping
        • UnparsedEntityDecl
        • Warning
  • Write XML Documents with the Simple API for XML (SAX)
    • SAX-writer overview
    • Create a SAX-writer
    • Configure a SAX-writer
    • Write an XML document
    • Examples
      • Create an XML document from database data
      • Envelope information example
      • Concurrently read and write XML documents
    • Use namespaces
    • Error handling
      • How errors are handled when STRICT is FALSE
      • How errors are handled when STRICT is TRUE
      • Errors raised by invalid method calls during SAX-writer states
      • Change values in the WRITER-STATUS attribute example
      • Handle codepage conversions
  • Read and Write XML Data from Temp-Tables and ProDataSets
    • Introduction
      • Use cases
      • Other XML features
    • Methods and attributes
      • Attribute interactions
        • NAMESPACE-URI and NAMESPACE-PREFIX
        • XML-NODE-NAME and SERIALIZE-NAME
        • XML-NODE-TYPE and SERIALIZE-HIDDEN
      • ABL-specific attributes in XML Schema
    • Read XML Schema into a temp-table, temp-table buffer, or ProDataSet
      • Create a dynamic temp-table with XML Schema
      • Verify a static temp-table against XML Schema
      • Create a dynamic ProDataSet with XML Schema
    • Read XML into a temp-table, temp-table buffer, or ProDataSet
      • Schema locations
      • Read XML data into temp-tables
      • Add XML data to a populated temp-table
      • Read XML into a ProDataSet
      • Read before-image data for ProDataSet temp-table buffers from XML
    • Write XML Schema from a temp-table, temp-table buffer, or ProDataSet
      • Write a temp-table definition to XML Schema
      • Write a ProDataSet definition to XML Schema files
    • Write XML from a temp-table, temp-table buffers, or a ProDataSet
      • Write temp-table data to XML
      • Write XML from a temp-table buffer's current row
      • Write a ProDataSet to XML
      • Minimize XML document size
      • Omit foreign key fields in nested child records
      • Omit fields with initial values
    • ProDataSet to XML round-trip example
      • Map ABL names to different XML element or attribute names
    • Use XML Schema
      • Create dynamic ABL objects from XML Schema
      • Verify XML Schema against ABL definitions
      • Infer definitions from XML data
        • Infer schema for a temp-table
        • Infer schema for a ProDataSet
      • Infer data-relations from nested XML and XML Schema
      • Additional XML support examples
        • Simple example of a PARENT-ID-RELATION
        • XML schema with root element mapping to a temp-table
        • XML schema with no explicit field definition for a parent table
        • XML schema with parent table fields after nested child tables
        • XML schema with parent table fields interspersed among child tables
      • ABL representation of temp-tables and ProDataSets as XML Schema
        • Namespaces
      • ABL-specific attributes on temp-table and ProDataSet definitions
      • Represent temp-tables in XML Schema
      • Represent indexes in XML Schema
      • Represent data-relations in XML Schema
  • XML Schema and ABL Data Type Mappings
    • Default mappings between ABL data types and XML Schema data types
    • Default mappings from other XML Schema data types to ABL data types
  • ABL to IANA Mappings
    • ABL to IANA code page mappings
  • Command and Utility Reference
    • bproxsdto4gl utility
Table of Contents

Retrieve names and phone numbers example

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
  • Last Updated: October 17, 2024
  • 1 minute read
    • OpenEdge
    • Version 13.0
    • Documentation

This example retrieves names and phone numbers. It is presented in two versions in the following topics.

Contents
  • Without namespace processing
  • With namespace processing
TitleResults for “How to create a CRG?”Also Available inAlert