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/stream-insertion.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libxsd/xsd/cxx/tree/stream-insertion.hxx') diff --git a/libxsd/xsd/cxx/tree/stream-insertion.hxx b/libxsd/xsd/cxx/tree/stream-insertion.hxx index 7f1f5df..b04846f 100644 --- a/libxsd/xsd/cxx/tree/stream-insertion.hxx +++ b/libxsd/xsd/cxx/tree/stream-insertion.hxx @@ -23,15 +23,19 @@ namespace xsd inline ostream& operator<< (ostream& s, const type&) { + // Not saving DOM content even if it's there. return s; } // simple_type // - template + template inline ostream& - operator<< (ostream& s, const simple_type&) + operator<< (ostream& s, const simple_type& x) { + if (!x.null_content ()) + s << x.text_content (); + return s; } -- cgit v1.1