From 1ca6396a3dd284241de11bcaa210ad5836e8e5a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Dec 2009 16:18:01 +0200 Subject: Multiple object model character encodings support Also add support for ISO-8859-1. --- documentation/xsd.xhtml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'documentation/xsd.xhtml') diff --git a/documentation/xsd.xhtml b/documentation/xsd.xhtml index 49d6503..da2b52c 100644 --- a/documentation/xsd.xhtml +++ b/documentation/xsd.xhtml @@ -125,6 +125,21 @@ instead of the default char. Valid values are char and wchar_t. +
--char-encoding enc
+
Specify the character encoding that should be used in the object + model. Valid values for the char character type + are utf8 (default), iso8859-1, + lcp (Xerces-C++ local code page), and + custom. If you pass custom as + the value then you will need to include the transcoder implementation + header for your encoding at the beginning of the generated header + files (see the --hxx-prologue option). + +

For the wchar_t character type the only valid + value is auto and the encoding is automatically + selected between UTF-16 and UTF-32/UCS-4, depending on the + wchar_t type size.

+
--output-dir dir
Write generated files to dir instead of the current directory.
@@ -393,6 +408,18 @@ generated file for which there is no file-specific epilogue file. +
--custom-literals file
+
Load custom XML string to C++ literal mappings from + file. This mechanism can be useful if you + are using a custom character encoding and some of the strings + in your schemas, for example element/attribute names or enumeration + values, contain non-ASCII characters. In this case you will need + to provide a custom mapping to C++ literals for such + strings. The format of this file is specified in the + custom-literals.xsd XML Schema file that + can be found in the documentation directory. +
+
--export-symbol symbol
Insert symbol in places where DLL export/import control statements -- cgit v1.1