Announcement

Collapse
No announcement yet.

help excluding from comparison

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • help excluding from comparison

    Hi,

    I need to add a rule in beyond compare when comparing xml files. I need to ignore nodes that begin with something containing the words
    Code:
    exclude="true"
    and end with the words </File>

    Code:
      <File name="LogData.txt" exclude="true" type="TIMESTAMP">
       <Date>2012-09-27 17:43:36.211</Date>
      </File>
    I have managed to create a rule for my example instance:

    Beginning with: <File name="LogData.txt" exclude="true"
    Ending with: </File>

    But I need something more generic, something that will ignore any File node that contains the exclude="true" attribute.

    Any help appreciated

  • #2
    The delimited grammar element would need to include the text you are trying to match on. How would this type of definition work for you?:
    <.*exclude="true".*
    to
    </File>

    With Regular Expression enabled.
    Aaron P Scooter Software

    Comment

    Working...
    X