aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/ProtocolBuffers.Serialization/XmlWriterOptions.cs
blob: 7d740ee3263dc789c4e8de36cfbb1fbdea87e3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 &lt;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,
    }
}