WebLogic Server XML Streaming API

You can also parse XML documents using WebLogic Server's implementation known as the Streaming API. This API is based on SAX, but gives you more control than SAX while parsing your document. This API enables you to be proactive rather than reactive. In other words, you request events from the parser and process them, rather than waiting for events from the parser as you do with SAX. For this reason, this kind of parsing is known as pull parsing. You can parse not only XML documents using the Streaming API, but also DOM trees and SAX events.

Parsing an XML Document

You can parse any XML source by using the Streaming API. Parsing an XML document typically involves the following steps.

Creating an XML Input Stream ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.