NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Attributes | List of all members
NXOpen.Validate.XmlComparator.Options Struct Reference

More...

Public Attributes

string FilterFile
 File specification of filter file. More...
 
bool IgnoreCdata
 Ignores CDATA nodes in comparison. More...
 
bool IgnoreComments
 Ignores comment nodes in comparison. More...
 
bool IgnoreNamespaces
 Ignores namespace definition during comparison. More...
 
bool IgnorePI
 Ignores processing instruction nodes in comparison. More...
 
bool IgnoreUnmatchedNodes
 Ignores unmatched nodes in comparison. More...
 
string LogFile
 File specification of comparison log file. More...
 
string ReportFile
 File specification of report file. 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 2019 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.