blob: 7d740ee3263dc789c4e8de36cfbb1fbdea87e3a6 [file] [log] [blame]
csharptest2b868842011-06-10 14:41:47 -05001using System;
2
3namespace Google.ProtocolBuffers.Serialization
4{
5 /// <summary>
6 /// Options available for the xml writer output
7 /// </summary>
8 [Flags]
9 public enum XmlWriterOptions
10 {
11 /// <summary> Simple xml formatting with no attributes </summary>
12 None,
csharptest74c5e0c2011-07-14 13:06:22 -050013
csharptest2b868842011-06-10 14:41:47 -050014 /// <summary> Writes the 'value' attribute on all enumerations with the numeric identifier </summary>
15 OutputEnumValues = 0x1,
csharptest74c5e0c2011-07-14 13:06:22 -050016
csharptest2b868842011-06-10 14:41:47 -050017 /// <summary> Embeds array items into child &lt;item> elements </summary>
18 OutputNestedArrays = 0x4,
csharptest74c5e0c2011-07-14 13:06:22 -050019
csharptest2b868842011-06-10 14:41:47 -050020 /// <summary> Outputs the 'type' attribute for compatibility with the <see cref="System.Runtime.Serialization.Json.JsonReaderWriterFactory">JsonReaderWriterFactory</see> </summary>
21 /// <remarks> This option must, by nessessity, also enable NestedArrayItems </remarks>
22 OutputJsonTypes = 0x8,
23 }
24}