From 6f395f9f769866a04f6949cb7ed14f93d90cf728 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Oct 2010 15:38:11 +0200 Subject: Map anySimpleType to a string --- documentation/cxx/parser/guide/index.xhtml | 7 ++++++- documentation/cxx/serializer/guide/index.xhtml | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/cxx/parser/guide/index.xhtml b/documentation/cxx/parser/guide/index.xhtml index 90da54a..9dc9764 100644 --- a/documentation/cxx/parser/guide/index.xhtml +++ b/documentation/cxx/parser/guide/index.xhtml @@ -1712,6 +1712,8 @@ namespace http://www.w3.org/2001/XMLSchema { include <string>; + anySimpleType std::string; + string std::string; normalizedString std::string; token std::string; @@ -1732,6 +1734,8 @@ namespace http://www.w3.org/2001/XMLSchema
 namespace http://www.w3.org/2001/XMLSchema
 {
+  anySimpleType char*;
+
   string char*;
   normalizedString char*;
   token char*;
@@ -3169,7 +3173,8 @@ main (int argc, char* argv[])
     
       anySimpleType
       any_simple_type_pimpl
-      void
+      std::string or char*
+ Section 5.1, "Standard Template Library" diff --git a/documentation/cxx/serializer/guide/index.xhtml b/documentation/cxx/serializer/guide/index.xhtml index 5e1dca1..e04667f 100644 --- a/documentation/cxx/serializer/guide/index.xhtml +++ b/documentation/cxx/serializer/guide/index.xhtml @@ -1789,6 +1789,8 @@ namespace http://www.w3.org/2001/XMLSchema { include <string>; + anySimpleType std::string; + string std::string; normalizedString std::string; token std::string; @@ -1809,6 +1811,8 @@ namespace http://www.w3.org/2001/XMLSchema
 namespace http://www.w3.org/2001/XMLSchema
 {
+  anySimpleType "const char*";
+
   string "const char*";
   normalizedString "const char*";
   token "const char*";
@@ -4057,7 +4061,8 @@ main ()
     
       anySimpleType
       any_simple_type_simpl
-      void
+      const std::string& or
const char*
+ Section 7.2, "String-Based Type Serializers" @@ -4428,7 +4433,8 @@ namespace xml_schema normalizedString, token, Name, NMTOKEN, NCName, ID, IDREF, language, - and anyURI built-in XML Schema types is + anyURI, and anySimpleType built-in XML Schema + types is const std::string&. When STL is disabled, the value is passed as a constant C-string: const char*. In this case, you can also instruct the serializer -- cgit v1.1