{title:'XML Serializers', updated:'9.0.0'}

The {@link oaj.xml.XmlSerializer} class is used to serialize POJOs into XML.

The {@link oaj.xml.XmlDocSerializer} class is the same but serializes a <?xml?> header at the top of the file.

The class hierarchy for the builder of this serializer is:

- {@link oaj.Context.Builder}
  - {@link oaj.BeanContextable.Builder}
    - {@link oaj.BeanTraverseContext.Builder}
      - {@link oaj.serializer.Serializer.Builder}
        - {@link oaj.serializer.WriterSerializer.Builder}
          - {@link oaj.xml.XmlSerializer.Builder}

Refer to the builder javadocs for configurable settings.

The following pre-configured serializers are provided for convenience:

- {@link oaj.xml.XmlSerializer}
  - {@link oaj.xml.XmlSerializer#DEFAULT DEFAULT}
  - {@link oaj.xml.XmlSerializer#DEFAULT_JUNEAU_NAMESPACE DEFAULT_JUNEAU_NAMESPACE}
  - {@link oaj.xml.XmlSerializer#DEFAULT_NS DEFAULT_NS}
  - {@link oaj.xml.XmlSerializer#DEFAULT_NS_SQ DEFAULT_NS_SQ}
  - {@link oaj.xml.XmlSerializer#DEFAULT_NS_SQ_READABLE DEFAULT_NS_SQ_READABLE}
  - {@link oaj.xml.XmlSerializer#DEFAULT_SQ DEFAULT_SQ}
  - {@link oaj.xml.XmlSerializer#DEFAULT_SQ_READABLE DEFAULT_SQ_READABLE}
  - {@link oaj.xml.XmlSerializer#DEFAULT_XS_NAMESPACE DEFAULT_XS_NAMESPACE}