Processing XML

Domino Designer includes the XML4J parser and LotusXSL processor in the product so you can parse and transform XML data without a separate download. You can access XML representations of objects, parse and transform the XML data, and generate XML representations of a document through the following properties and methods in the Java backend classes:

Class

Properties

Methods

Document

none

generateXML

EmbeddedObject

InputSource ,InputStream , and Reader

parseXML and transformXML

Item

InputSource ,InputStream, and Reader

parseXML and transformXML

MIMEEntity

InputSource ,InputStream, and Reader

parseXML and transformXML

RichTextItem

InputSource ,InputStream, and Reader

parseXML and transformXML

In addition, the XSLTResultTarget class is a wrapper class in the com.lotus.xsl package that contains the result of a transformation made using the LotusXSL processor. An instance of this class serves as a container for the XSLT Result tree.

For standalone applications, you should include the NCSO.jar or Notes.jar file in the classpath for the lotus.domino classes. You should also include the XML4j.jar file in your classpath to use the XML parser, and the LotusXSL.jar file to use the XSL processor.

Note: You must include the XML4j.jar file in your classpath even if you only need to use the transformXML methods.

For applets that run in a browser, you should include the XML4j.jar and/or XML4j.cab file with the applet itself, to use the XML parser. To use the LotusXSL processor, you should include the XML4j.jar and/or XML4j.cab file as well as the LotusXSL.jar and/or LotusXSL.cab file with the applet.

For further details on the XML4j parser and LotusXSL processor, visit the AlphaWorks Web site at www.alphaworks.ibm.com.