![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/xom/dtd.h>
Inheritance diagram for Content:Public Member Functions | |
| virtual | ~Content (void) |
| virtual void | reset ()=0 |
Protected Member Functions | |
| bool | doParse (Content &content, Parser &parser) |
| virtual bool | parse (Parser &parser)=0 |
This abstract class represents the contents of an XML element. It provides basically two function: parse() to parse an XML element content and reset() to reset the attributes used in the content.
For internal use only.
References Content::parse().
Referenced by Optional::parse(), Alt::parse(), Seq::parse(), and Repeat::parse().
Parse the content of the current element in the parser.
| parser | Parser to parse with. |
Implemented in AnyContent, PCDATAContent, IgnoredContent, EmptyContent, Repeat, Seq, Alt, Optional, and Element.
Referenced by Content::doParse(), and Element::parse().
Called to reset the state of the content internals.
Implemented in AnyContent, PCDATAContent, IgnoredContent, EmptyContent, Repeat, Seq, Alt, Optional, and Element.
Referenced by Element::reset(), Optional::reset(), Alt::reset(), Seq::reset(), and Repeat::reset().