aboutsummaryrefslogtreecommitdiff
path: root/cutl/xml/qname.cxx
blob: ce7cca1c8e9380b1a520c7b306d5064f03131737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 ();
    }
  }
}