From 1a4099b78717b16f632b0e7e0980a27811221e52 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Jul 2014 09:57:09 +0200 Subject: Implement anyType and anySimpleType content representation anyType as a DOM fragment, similar to wildcards. anySimpleType as a text string. --- libxsd/xsd/cxx/tree/std-ostream-operators.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libxsd/xsd/cxx/tree/std-ostream-operators.hxx') 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& operator<< (std::basic_ostream& os, const type&) { + // Not printing DOM content even if it's there. return os; } @@ -32,8 +33,11 @@ namespace xsd // template inline std::basic_ostream& - operator<< (std::basic_ostream& os, const simple_type&) + operator<< (std::basic_ostream& os, const simple_type& x) { + if (!x.null_content ()) + os << x.text_content (); + return os; } -- cgit v1.1