aboutsummaryrefslogtreecommitdiff
path: root/cutl/xml/qname.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-08 17:41:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-03-08 17:41:00 +0200
commit2ac86dfdafb9bf4d4e9252260a431755b56d8ebe (patch)
tree30a19391906b913b8a0773c7fe5a4b046c0703c4 /cutl/xml/qname.cxx
parentdf1e7318da3320cfcfaee7f3c1f00a9eee7c9d25 (diff)
Add support for XML parsing and serialization
Diffstat (limited to 'cutl/xml/qname.cxx')
-rw-r--r--cutl/xml/qname.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/cutl/xml/qname.cxx b/cutl/xml/qname.cxx
new file mode 100644
index 0000000..ce7cca1
--- /dev/null
+++ b/cutl/xml/qname.cxx
@@ -0,0 +1,22 @@
+// file : cutl/xml/qname.cxx
+// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include <ostream>
+
+#include <cutl/xml/qname.hxx>
+
+using namespace std;
+
+namespace cutl
+{
+ namespace xml
+ {
+ ostream&
+ operator<< (ostream& os, const qname& qn)
+ {
+ const string& ns (qn.namespace_ ());
+ return os << ns << (ns.empty () ? "" : "#") << qn.name ();
+ }
+ }
+}