Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial
Getting Started
Configuration
Topics
JSP
XTP/XSL
JavaScript
JS Library
Core Library
File Library
Servlet Library
Database Library
XML Library
Parser
Document
Node
Element
Text
Comment
EntityRef
CData
PI
XML Library
XML Library | Resin 1.0
The XML library provided with Resin implements the W3C DOM level 1. That page is the definitive documentation.
### XmlParser | ### Resin 1.0
The XmlParser parses XML.
### XML Query Language | ### Resin 1.0
The XML Query Language describes node patterns, so scripts can select nodes from XML trees.
for (var image in node.select(".//img")) { write("Image ", image.attribute.href, " width=", image.attribute.width, " height=", image.attribute.height); }
### Document
The Document contains all of an XML file. XML documents must have a single top level element. The `<?xml?>' header is optional.
<?xml version='1.0'?> <notes> This is an XML page for some random notes. <list> <item>apple</item> <item>orange</item> </list> </notes>
### Node
The Node is the prototype for all XML objects. It defines the tree structure underlying XML.
### Element
The Element is the central XML datatype. It corresponds to an HTML tag. In XML, all open tags must have a close tag.
<shopping-list due='July 4, 1776'> <item name='Declaration of Independence'/> <item name='Pens'/> <item name='Fireworks'/> </shopping-list>
### Text
Text provides character data.
### Comment
Comments document XML. They have most of the text manipulation of Text.
<!-- An example comment -->
### Entity Reference
Entity References are XML macros, like &amp;, &lt; and &copyright;. Generally the XML parser will expand these. If it cannot, it will create an entity Reference Node.
&copyright;
### CData
CData sections are like Text nodes, but they don't need to escape the XML special characters. So they are useful for scripts or encoded images.
<![CDATA[ unescaped `<' and `&' can appear here ]]>
### Processing Instructions
Processing Instructions are commands to the program processing the XML. They might turn on debugging or open logs.
<?caucho:log /var/log/warning?>
ResultSet |  | Parser
Copyright © 1998-2000 Caucho Technology. All rights reserved. Last modified: Thu, 16 Sep 1999 14:56:49 -0700 (PDT)