July 25, 2002

Tip: Include external information with general entities

Now on IBM developerWorks: Tip: Include external information with general entities -- General entities enable XML authors to conveniently include not only characters that would be difficult to represent directly, but also information that must be repeated. They also enable you to import information from another file, as well as from another location. This tip shows you how to include external information through the use of general entities.

Posted by roadnick at 09:36 AM | Comments () | TrackBack

July 16, 2002

XML Schema validation in Xerces-Java 2

Now on IBM developerWorks: XML Schema validation in Xerces-Java 2 (Tutorial) -- XML Schema provides validation capabilities that weren't available with Document Type Definitions. Xerces-Java 2.0 provides virtually complete support for the W3C's XML Schemas, and beyond. This tutorial guides you through the process of using schema validation with Xerces-Java 2.0.

Posted by roadnick at 12:24 AM | Comments () | TrackBack

July 10, 2002

Tip: Customize a DTD with parameter entities

Now on IBM developerWorks: Tip: Customize a DTD with parameter entities -- Creating a Document Type Definition (DTD) and using it to validate your document is a good way to ensure that the data fits a particular structure. In some cases, however, you want to give users some control over the structure. Parameter entities enable you to create a structure that allows a document author to choose from two or more possible DTD structures without giving that person control over the actual DTD.

Posted by roadnick at 09:34 AM | Comments () | TrackBack

July 09, 2002

JavaScript and the Document Object Model

Now on developerWorks: JavaScript and the Document Object Model: While the Document Object Model (DOM) is perhaps best known in its role as a foundation for working with XML, variations on the theme actually started in browsers with HTML. Now DOM has come full circle as newer browsers implement the W3C Document Object Model through client-side scripting, such as JavaScript. This article looks at the JavaScript approach to DOM and chronicles the building of a Web page to which the user can add notes and edit note content.

Posted by roadnick at 10:56 AM | Comments () | TrackBack

July 03, 2002

Tip: XSL transformations to and from a SAX stream

Now on IBM developerWorks: Tip: XSL transformations to and from a SAX stream -- The Transformation API for XML (TrAX) simplifies the process of performing XSL transformations by creating a situation where you only need to create the source, style, and result objects, then manipulate them using a Transformer object. When sources and results are DOM nodes or files, it's easy. But what if you want to transform to or from a SAX stream? This tip shows you how to use SAX streams as both the source and destination of an XSL transformation.

Posted by roadnick at 09:48 AM | TrackBack