diff options
Diffstat (limited to 'tests/cxx/tree/dom-association/dom-parse.hxx')
-rw-r--r-- | tests/cxx/tree/dom-association/dom-parse.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/cxx/tree/dom-association/dom-parse.hxx b/tests/cxx/tree/dom-association/dom-parse.hxx new file mode 100644 index 0000000..75a5e8b --- /dev/null +++ b/tests/cxx/tree/dom-association/dom-parse.hxx @@ -0,0 +1,25 @@ +// file : tests/cxx/tree/dom-association/dom-parse.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2006-2011 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef DOM_PARSE +#define DOM_PARSE + +#include <string> +#include <iosfwd> + +#include <xercesc/dom/DOMDocument.hpp> + +#include <xsd/cxx/xml/dom/auto-ptr.hxx> + +// Parse an XML document from the standard input stream with an +// optional resource id. Resource id is used in diagnostics as +// well as to locate schemas referenced from inside the document. +// +XSD_DOM_AUTO_PTR<xercesc::DOMDocument> +parse (std::istream& is, + const std::string& id, + bool validate); + +#endif // DOM_PARSE |