Root of the Node ADT, representing the different types of supported XML
nodes which may appear in an XML fragment. The ADT itself has the following
shape (Haskell syntax):
type Prefix = Maybe Stringtype Scope = MapStringString
data Node = ProcInstr StringString
| Elem Prefix String Attributes Scope (Group Node)
| Text String
| CDATA String
| EntityRef String
For those that don't find Haskell to be the clearest explanation of what's
going on in this type, here is a more natural-language version. The Node
trait is sealed and has exactly four subclasses, each implementing a different
type of XML node. These four classes are as follows:
com.codecommit.antixml.Elem – An XML element consisting of an optional
prefix, a name (or identifier), a set of attributes, a set of namespace mappings
in scope and a sequence of child nodes
com.codecommit.antixml.Text – A node containing a single string, representing
character data in the XML tree
com.codecommit.antixml.CDATA – A node containing a single string, representing
unescaped character data in the XML tree
Root of the
Node
ADT, representing the different types of supported XML nodes which may appear in an XML fragment. The ADT itself has the following shape (Haskell syntax):For those that don't find Haskell to be the clearest explanation of what's going on in this type, here is a more natural-language version. The
Node
trait is sealed and has exactly four subclasses, each implementing a different type of XML node. These four classes are as follows:&
)