HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_XMLDomParser.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_XMLDomParser.h ( Library, C++)
7  *
8  * COMMENTS:
9  * The DOM parser uses the libxml2 API documented at:
10  * http://xmlsoft.org/html/libxml-parser.html
11  * http://xmlsoft.org/html/libxml-tree.html
12  *
13  */
14 
15 #ifndef __UT_XMLDomParser__
16 #define __UT_XMLDomParser__
17 
18 #include "UT_API.h"
19 #include "UT_XMLParser.h"
20 #include "UT_ValArray.h"
21 
22 class UT_XMLNode;
23 
25 {
26 public:
27  /// Standard constructor.
29 
30  /// Standard destructor.
31  virtual ~UT_XMLDomParser();
32 
33  /// Return the root node of the document that was parsed.
34  /// Return NULL if the parse failed and no document was created
35  /// or if no parse has taken place.
36  UT_XMLNode *getRootNode() const;
37 
38 protected:
39  /// Parse XML using the current context.
40  /// Return true on a successful parse. Return false otherwise.
41  bool parseContextSubclass();
42 
43 private:
44  void clean();
45  UT_XMLNode *myRootNode;
46 };
47 
48 #endif
49 
#define UT_API
Definition: UT_API.h:13
virtual bool parseContextSubclass()=0