| java.lang.Object com.ibatis.common.xml.NodeletParser
NodeletParser | public class NodeletParser (Code) | | The NodeletParser is a callback based parser similar to SAX. The big
difference is that rather than having a single callback for all nodes,
the NodeletParser has a number of callbacks mapped to
various nodes. The callback is called a Nodelet and it is registered
with the NodeletParser against a specific XPath.
|
addNodelet | public void addNodelet(String xpath, Nodelet nodelet)(Code) | | Registers a nodelet for the specified XPath. Current XPaths supported
are:
- Text Path - /rootElement/childElement/text()
- Attribute Path - /rootElement/childElement/@theAttribute
- Element Path - /rootElement/childElement/theElement
- All Elements Named - //theElement
|
parse | public void parse(Node node)(Code) | | Begins parsing from the provided Node.
|
setValidation | public void setValidation(boolean validation)(Code) | | |
|
|