Chapter 4: Using Views  An example of using a view

Chapter 4: Using Views

The purpose of views

Because XML documents can contain multiple messages and they can have very deep hierarchies, Message Bridge allows developers to create a view into an XML document. The view represents a subset of the XML document and that subset’s schema information. Once a view is created, a developer can use it at runtime to manipulate a subset of a larger document without needing to understand or even to know about the content model of the parent document. A view can also be serialized and passed around as a smaller XML document for future merger with the parent document. Once the XML document and its content model have been divided into views, the work in the original document can be distributed.

NoteThese smaller XML documents have the view root as their root.

Copyright © 2005. Sybase Inc. All rights reserved. An example of using a view