diff options
author | csharptest <roger@csharptest.net> | 2011-06-10 14:41:47 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-10 14:41:47 -0500 |
commit | 2b86884659413efb1cbbcf7ebe22ef46a565b13d (patch) | |
tree | e35e2776944153fbcad1a146b4b37ae9ed691a41 /src/ProtocolBuffers/Serialization/XmlWriterOptions.cs | |
parent | b00ea13eb1b8055a0cde89d01bbde6d95e5cd1a5 (diff) | |
download | protobuf-2b86884659413efb1cbbcf7ebe22ef46a565b13d.tar.gz protobuf-2b86884659413efb1cbbcf7ebe22ef46a565b13d.tar.bz2 protobuf-2b86884659413efb1cbbcf7ebe22ef46a565b13d.zip |
Added the XmlFormatWriter/Reader
Diffstat (limited to 'src/ProtocolBuffers/Serialization/XmlWriterOptions.cs')
-rw-r--r-- | src/ProtocolBuffers/Serialization/XmlWriterOptions.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/Serialization/XmlWriterOptions.cs b/src/ProtocolBuffers/Serialization/XmlWriterOptions.cs new file mode 100644 index 00000000..2d91c742 --- /dev/null +++ b/src/ProtocolBuffers/Serialization/XmlWriterOptions.cs @@ -0,0 +1,21 @@ +using System;
+
+namespace Google.ProtocolBuffers.Serialization
+{
+ /// <summary>
+ /// Options available for the xml writer output
+ /// </summary>
+ [Flags]
+ public enum XmlWriterOptions
+ {
+ /// <summary> Simple xml formatting with no attributes </summary>
+ None,
+ /// <summary> Writes the 'value' attribute on all enumerations with the numeric identifier </summary>
+ OutputEnumValues = 0x1,
+ /// <summary> Embeds array items into child <item> elements </summary>
+ OutputNestedArrays = 0x4,
+ /// <summary> Outputs the 'type' attribute for compatibility with the <see cref="System.Runtime.Serialization.Json.JsonReaderWriterFactory">JsonReaderWriterFactory</see> </summary>
+ /// <remarks> This option must, by nessessity, also enable NestedArrayItems </remarks>
+ OutputJsonTypes = 0x8,
+ }
+}
\ No newline at end of file |