XdmWriterSettings.UndeclarePrefixes PropertyXdmWriterSettings.UndeclarePrefixes PropertyXdmWriterSettings::UndeclarePrefixes Property
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Property Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the serializer should undeclare namespaces; otherwise false
False
false
.
Remarks
This property corresponds to the undeclare-prefixes
serialization parameter.
If UndeclarePrefixesUndeclarePrefixesUndeclarePrefixes is set to true
True
true
, then if an element is serialized whose
parent has namespaces in scope that are not in scope in the element itself, then these namespaces are
undeclared.
If MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod and
the version is set to 1.0
then an SEPM0010
XdmExceptionXdmExceptionXdmException is thrown when
serialization is attempted. If MethodMethodMethod is not set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod
then this property is ignored.
By default this is set to false
False
false
.