aboutsummaryrefslogtreecommitdiff
path: root/xsd-frontend/schema-dom-parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd-frontend/schema-dom-parser.hxx')
-rw-r--r--xsd-frontend/schema-dom-parser.hxx81
1 files changed, 0 insertions, 81 deletions
diff --git a/xsd-frontend/schema-dom-parser.hxx b/xsd-frontend/schema-dom-parser.hxx
deleted file mode 100644
index 9e6a349..0000000
--- a/xsd-frontend/schema-dom-parser.hxx
+++ /dev/null
@@ -1,81 +0,0 @@
-// file : xsd-frontend/schema-dom-parser.hxx
-// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
-
-#ifndef XSD_FRONTEND_SCHEMA_DOM_PARSER_HXX
-#define XSD_FRONTEND_SCHEMA_DOM_PARSER_HXX
-
-#include <xercesc/parsers/XercesDOMParser.hpp>
-
-#include <xercesc/dom/DOMElement.hpp>
-
-#include <xercesc/validators/schema/XSDLocator.hpp>
-#include <xercesc/validators/schema/XSDErrorReporter.hpp>
-
-#include <xsd-frontend/version.hxx> // Check Xerces-C++ version.
-
-namespace XSDFrontend
-{
- namespace XML
- {
- namespace Xerces = xercesc;
-
- extern const XMLCh line_key[2];
- extern const XMLCh column_key[2];
-
- class SchemaDOMParser: public Xerces::XercesDOMParser
- {
- public :
- SchemaDOMParser (
- Xerces::MemoryManager* = Xerces::XMLPlatformUtils::fgMemoryManager);
-
- // Callbacks.
- //
- virtual void
- startElement (const Xerces::XMLElementDecl&,
- const unsigned int url_id,
- const XMLCh* const prefix,
- const Xerces::RefVectorOf<Xerces::XMLAttr>& attributes,
- const XMLSize_t attribute_count,
- const bool empty,
- const bool root);
-
- virtual void
- endElement (const Xerces::XMLElementDecl&,
- const unsigned int url_id,
- const bool root,
- const XMLCh* const prefix);
-
- virtual void
- docCharacters (const XMLCh* const,
- const XMLSize_t length,
- const bool cdata);
-
- virtual void
- docComment (const XMLCh* const);
-
- virtual void
- startEntityReference (const Xerces::XMLEntityDecl&);
-
- virtual void
- endEntityReference (const Xerces::XMLEntityDecl&);
-
- virtual void
- ignorableWhitespace (const XMLCh* const,
- const XMLSize_t length,
- const bool cdata);
- private:
- SchemaDOMParser (SchemaDOMParser const&);
- SchemaDOMParser&
- operator=(SchemaDOMParser const&);
-
- private:
- int depth_;
- int ann_depth_;
- int inner_ann_depth_;
- Xerces::XSDLocator locator_;
- Xerces::XSDErrorReporter error_reporter_;
- };
- }
-}
-
-#endif // XSD_FRONTEND_SCHEMA_DOM_PARSER_HXX