From f0510d2f90467de8e8f260b47d79a9baaf9bef17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 07:15:29 +0200 Subject: Start tracking XSD with git --- examples/cxx/tree/messaging/dom-parse.hxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/cxx/tree/messaging/dom-parse.hxx (limited to 'examples/cxx/tree/messaging/dom-parse.hxx') diff --git a/examples/cxx/tree/messaging/dom-parse.hxx b/examples/cxx/tree/messaging/dom-parse.hxx new file mode 100644 index 0000000..640b28a --- /dev/null +++ b/examples/cxx/tree/messaging/dom-parse.hxx @@ -0,0 +1,23 @@ +// file : examples/cxx/tree/messaging/dom-parse.hxx +// author : Boris Kolpackov +// copyright : not copyrighted - public domain + +#ifndef DOM_PARSE +#define DOM_PARSE + +#include +#include + +#include +#include + +// 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::cxx::xml::dom::auto_ptr +parse (std::istream& is, + const std::string& id, + bool validate); + +#endif // DOM_PARSE -- cgit v1.1