ClassName

atg.droplet.xml.XMLToDOM

Component

/atg/dynamo/droplet/xml/XMLToDOM

The XMLToDOM servlet bean parses an XML document that is specified by the input parameter. The result of the parse is bound to the document parameter, which can then be manipulated inside the output open parameter.

The XMLToDOM servlet bean does not have any inherent way to output its results. You typically want to nest some other servlet bean or code that can handle the resulting Data Object Model (DOM) component within the output parameter of XMLToDOM.

Input Parameters

input
Specifies the XML document to be parsed. This can be either the absolute or relative URL for an XML document.

validate
Optional: Determines if the parser should validate this document against the DTD specified in the input parameter. Options include:

Note that if the XML document does not have a DTD, you must omit this parameter.

Output Parameters

document
Optional: The parameter to bind to a DOM document if the XML document is successfully retrieved and parsed.

errors
Optional: The parameter to bind to an enumeration of Exceptions if failures occurred when parsing or retrieving the XML document.

Open Parameters

unset
Optional: Specifies the parameter to render if the input parameter is not set.

output
Optional: Specifies the parameter used when the XML document is successfully retrieved and parsed.

failure
Optional: Specifies the parameter used to format output when there is a failure to parse or retrieve the XML document.

Example

See Processing XML in a JSP.

 
loading table of contents...