diff options
Diffstat (limited to 'libxsd/xsd/cxx/tree/std-ostream-operators.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/std-ostream-operators.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libxsd/xsd/cxx/tree/std-ostream-operators.hxx b/libxsd/xsd/cxx/tree/std-ostream-operators.hxx index 071d186..9a8f976 100644 --- a/libxsd/xsd/cxx/tree/std-ostream-operators.hxx +++ b/libxsd/xsd/cxx/tree/std-ostream-operators.hxx @@ -24,6 +24,7 @@ namespace xsd inline std::basic_ostream<C>& operator<< (std::basic_ostream<C>& os, const type&) { + // Not printing DOM content even if it's there. return os; } @@ -32,8 +33,11 @@ namespace xsd // template <typename C, typename B> inline std::basic_ostream<C>& - operator<< (std::basic_ostream<C>& os, const simple_type<B>&) + operator<< (std::basic_ostream<C>& os, const simple_type<C, B>& x) { + if (!x.null_content ()) + os << x.text_content (); + return os; } |