XdmWriterSettings.ConformanceLevel PropertyXdmWriterSettings.ConformanceLevel PropertyXdmWriterSettings::ConformanceLevel Property
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public Property ConformanceLevel As System.Xml.ConformanceLevel Get Set(ByVal value As System.Xml.ConformanceLevel)
public System.Xml.ConformanceLevel ConformanceLevel { get; set; }
public: property System.Xml::ConformanceLevel ConformanceLevel { System.Xml::ConformanceLevel get(); void set(System.Xml::ConformanceLevel value); }
Property Value
Type: System.Xml.ConformanceLevelSystem.Xml.ConformanceLevelSystem.Xml::ConformanceLevel
One of the enumerated ConformanceLevelConformanceLevelConformanceLevel values.
Remarks
When this property is set to DocumentDocumentDocument then serialization will
raise a SERE0003
XdmExceptionXdmExceptionXdmException if a document contains top level text nodes, or does not
contain a single root element, even if the other serialization settings allow for this.
If MethodMethodMethod is set to CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod then setting the ConformanceLevelConformanceLevelConformanceLevel to FragmentFragmentFragment causes all nodes to be serialized as if they were children of a single top level element.
This is equivalent to the conformance-level
serialization property in the
http://www.xmlprime.com/serialization
namespace.
If this property is set to AutoAutoAuto then this is equivalent to
DocumentDocumentDocument if the output method is set to canonical
in the
http://www.xmlprime.com/serialization
namespace; or FragmentFragmentFragment
otherwise.