setOutputProperty Method XML Compare .NET API Documentation
XML Compare .NET API Documentation - DEPRECATED
Configures output formatting and control.

Namespace: com.deltaxml.core
Assembly: deltaxml (in deltaxml.dll) Version: 10.4.0.1000
Syntax

public virtual void setOutputProperty(
	string name,
	string value
)

Parameters

name
Type: System String
the name of the property to set
value
Type: System String
the new value for the property
Exceptions

ExceptionCondition
com.deltaxml.core PropertyNotRecognizedException this exception is no longer thrown. An IllegalArgumentException is now thrown by the compare method itself.
IllegalArgumentException if a parameter is null
Remarks

Configures output formatting and control.

Any properties set here are then passed to the serializer when the compare method is invoked. Earlier releases supported only a limited subset of the common properties. The drawback of the new approach is that PropertyNotRecognized exceptions cannot be reported immediately when the property is set.

NOTE The Saxon XSLT processor will throw an XPathException which in turn will be presented as an PipelineProcessingException when "omit-xml-declaration" has the value "yes" and standalone has either of the values "yes" or "no". Saxon does however support setting the "standalone" property to "omit" as described in the OnlineXSLT2 serialization specification.

Output properties should ideally be set using the javax.xml.transform.OutputKeys static fields as follows:

         PipelinedComparator pc= new PipelinedComparator();
         ...
         pc.setOutputProperty(OutputKeys.INDENT, "yes");
         
See Also

PipelinedComparator