NXOpen .NET Reference  12.0.0
Public Attributes | List of all members
NXOpen.Validate.XmlComparator.Options Struct Reference

More...

Public Attributes

string FilterFile
 File specification of filter file. More...
 
string ReportFile
 File specification of report file. More...
 
string LogFile
 File specification of comparison log file. More...
 
bool IgnoreNamespaces
 Ignores namespace definition during comparison. More...
 
bool IgnoreUnmatchedNodes
 Ignores unmatched nodes in comparison. More...
 
bool IgnoreComments
 Ignores comment nodes in comparison. More...
 
bool IgnoreCdata
 Ignores CDATA nodes in comparison. More...
 
bool IgnorePI
 Ignores processing instruction nodes in comparison. More...
 

Detailed Description

Represents config options in comparison

For example:

case 1: Defines filter file to control what nodes will be compared; generates comparison report and log; ignores CDATA and processing instruction nodes.

compareOptions.ReportFile = "auto_report.html";
compareOptions.FilterFile = "filter.xml";
compareOptions.LogFile = "log.log";
compareOptions.IgnoreNamespaces = FALSE;
compareOptions.IgnoreUnmatchedNodes = FALSE;
compareOptions.IgnoreComments = FALSE;
compareOptions.IgnoreCdata = TRUE;
compareOptions.IgnorePI = TRUE;
CompareXmlFiles("fileOne.xml", "fileTwo.xml", compareOptions)

case 2: Compares all nodes and does not generate report file and log file.

compareOptions.ReportFile = a null reference (Nothing in Visual Basic);
compareOptions.FilterFile = a null reference (Nothing in Visual Basic);
compareOptions.LogFile = a null reference (Nothing in Visual Basic);
CompareXmlFiles("fileOne.xml", "fileTwo.xml", compareOptions)

Member Data Documentation

string NXOpen.Validate.XmlComparator.Options.FilterFile

File specification of filter file.

The filter file defines what nodes will be compared and how to compare them. It can be a null reference (Nothing in Visual Basic), which means all nodes will be compared.

bool NXOpen.Validate.XmlComparator.Options.IgnoreCdata

Ignores CDATA nodes in comparison.

Default is false.

bool NXOpen.Validate.XmlComparator.Options.IgnoreComments

Ignores comment nodes in comparison.

Default is false.

bool NXOpen.Validate.XmlComparator.Options.IgnoreNamespaces

Ignores namespace definition during comparison.

But if the filter file has namespace definition, the comparator will ignore this option and always compare the nodes with namespace definitions. Default if false.

bool NXOpen.Validate.XmlComparator.Options.IgnorePI

Ignores processing instruction nodes in comparison.

Default is false.

bool NXOpen.Validate.XmlComparator.Options.IgnoreUnmatchedNodes

Ignores unmatched nodes in comparison.

Default is false.

string NXOpen.Validate.XmlComparator.Options.LogFile

File specification of comparison log file.

The log file contains detail comparison steps and comparison information. It can be a null reference (Nothing in Visual Basic), which means the comparator won't generate a log file.

string NXOpen.Validate.XmlComparator.Options.ReportFile

File specification of report file.

The report file contains the detail comparison results. It can be a null reference (Nothing in Visual Basic), which means the comparator won't generate a report file.


The documentation for this struct was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.