Chapter 7: Using Message Bridge Samples  Sample directory content

Chapter 7: Using Message Bridge Samples

Sample descriptions and locations

Table 7-1 lists the samples and their descriptions. %MB% represents the installation directory of Sybase Message Bridge for Java™.

Table 7-1: Sample descriptions and locations

Name

Description

Location

Any Content

Demonstrates the generated code from a DTD with elements that have type ANY as the content

%MB%\samples\dtd\any_content

Attributes (DTD)

Demonstrates the generated code from a DTD with an element that has attributes. See also the Attributes (XML Schema) example.

%MB%\samples\dtd\attributes

Attributes (XML Schema)

Demonstrates the generated code from an XSD with an element that has attributes. See also the Attributes (DTD) example.

%MB%\samples\xsd\attributes

Bookstore

Demonstrates the following DTD-related features:

  • use of a PUBLIC identifier in a DTD to select generated code for execution

  • a parameter entity

  • INCLUDE and IGNORE directives to add or remove declarations

  • specification of directory paths in which to look for DTD files

%MB%\samples\dtd\bookstore

Build XML

This example uses the generated code associated with a DTD to construct a new XML document instance from scratch.

%MB%\samples\misc\build_xml

Datatypes

This example shows how the generated code represents (and provides access to) primitive data types in XML Schema.

%MB%\samples\xsd\datatypes

Mixed Content

Demonstrates the generated code from a DTD which specifies a sequence of elements and character data.

%MB%\samples\dtd\mixed_content

Recursive

Demonstrates the generated code from a DTD in which an element is nested recursively.

%MB%\samples\dtd\recursive

SOAP Envelope

Demonstrates parsing and navigation of data carried in a SOAP message.

%MB%\samples\xsd\soap

Stock Portfolio

Demonstrates the following XSD-related features:

  • XSD document-level attributes

  • Namespaces

  • INCLUDE and IMPORT directives

  • Data type definition via restriction

%MB%\samples\xsd\stock_portfolio

View

Demonstrates the generated code from a view.

%MB%\samples\dtd\view





Copyright © 2005. Sybase Inc. All rights reserved. Sample directory content