diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-09-05 16:51:42 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-09-05 16:51:42 +0000 |
commit | 5bd935a2458aea5d92462057989eae8bb05eed61 (patch) | |
tree | fd27b23c9a470d794523b80f220ad367d5d94a42 /cpp/include/XMLTransform/XMLTransform.h | |
parent | Xerces 2.1.0 does not accept scoped names in id attributes (diff) | |
download | ice-5bd935a2458aea5d92462057989eae8bb05eed61.tar.bz2 ice-5bd935a2458aea5d92462057989eae8bb05eed61.tar.xz ice-5bd935a2458aea5d92462057989eae8bb05eed61.zip |
Xerces 2.1.0 port
Diffstat (limited to 'cpp/include/XMLTransform/XMLTransform.h')
-rw-r--r-- | cpp/include/XMLTransform/XMLTransform.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cpp/include/XMLTransform/XMLTransform.h b/cpp/include/XMLTransform/XMLTransform.h index 7df034e7249..17ea6c75b09 100644 --- a/cpp/include/XMLTransform/XMLTransform.h +++ b/cpp/include/XMLTransform/XMLTransform.h @@ -14,7 +14,7 @@ #include <Freeze/DB.h> #include <IceUtil/OutputUtil.h> -#include <dom/DOM.hpp> +#include <xercesc/dom/DOM.hpp> #ifdef WIN32 # ifdef XML_TRANSFORM_API_EXPORTS @@ -127,15 +127,17 @@ class XML_TRANSFORM_API DocumentInfo : public ::IceUtil::Shared { public: - DocumentInfo(const DOM_Document& document, const DOM_Node& root, const ::std::string& targetNamespace = ""); + DocumentInfo(DOMDocument*, bool, DOMNode*, const ::std::string& = ""); + ~DocumentInfo(); - DOM_Document getDocument() const; + DOMDocument* getDocument() const; ::std::string findURI(const ::std::string& prefix) const; ::std::string getTargetNamespace() const; private: - DOM_Document _document; + DOMDocument* _document; + bool _releaseDocument; PrefixURIMap _nsMap; ::std::string _targetNamespace; }; @@ -152,7 +154,7 @@ public: Transform(); virtual ~Transform(); - virtual void transform(::IceUtil::XMLOutput&, const DocumentInfoPtr&, const ::std::string&, const DOM_Node&) = 0; + virtual void transform(::IceUtil::XMLOutput&, const DocumentInfoPtr&, const ::std::string&, DOMNode*) = 0; virtual ::std::ostream& print(::std::ostream&) = 0; }; @@ -171,10 +173,10 @@ class XML_TRANSFORM_API Transformer { public: - Transformer(const Ice::StringSeq&, const DOM_Document&, const DOM_Document&); + Transformer(const Ice::StringSeq&, DOMDocument*, DOMDocument*); ~Transformer(); - void transform(::IceUtil::XMLOutput&, const DOM_Document&, bool = true); + void transform(::IceUtil::XMLOutput&, DOMDocument*, bool = true); private: |