Portlet Factory, Version 6.1.2
Overview: working with XML
When you develop J2EE applications with IBM® WebSphere Portlet Factory, much of the underlying technology relies on XML.
For example, models are XML files; much of the data accessed with service calls is XML; and builder definitions are XML files. Typically, you do not need to directly deal with this XML code. WebSphere Portlet Factory Designer provides for interaction with the XML of the model, including the service call results and builders.
WebSphere Portlet Factory Designer prevents you from dealing directly with much of the underlying XML of a model. However, there are many tasks that require you to interact with XML structures, for example, processing form inputs, examining elements in an XML variable, and programmatically processing XML documents.
WebSphere Portlet Factory includes an interface, IXml, used to interact with all WebSphere Portlet Factory XML objects.
It is possible to use alternative XML representations such as DOM and JDOM. You can also implement your own representations.
Parent topic: Developing Web applications
- About creating XML structures
To create XML structures, use the XMLUtil class methods create(), parseXml(), and parseHtml().
- About alternative XML representations
IBM WebSphere Portlet Factory provides support for other XML object models and APIs with functionality called Alternative XML Representation (AXR).
- About processing XML with IXml
Most objects that you work with in IBM WebSphere Portlet Factory represent, or interact with, an XML structure.
- About creating your own XML objects and APIs
You can create your own XML representations for any XML document that you want to be able to create and process in your web application models.
- The Model XML panel
The Model XML panel in the model editor displays the XML for the model as it is saved on disk.
- Displaying the contents of an XML variable
You can create a "View Only" form that displays the contents of an XML variable.
- WebSphere Portlet Factory API documentation
Library | Support |