Announcement

Collapse
No announcement yet.

How would I ignore a xml semantics

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

  • How would I ignore a xml semantics

    Hello,
    I am comparing two xml files and I want to ignore the following xml semantics:

    <FieldName></FieldName> versus <FieldName />

    Can anyone list the grammar I would write for it?
    Any help would be appreciated!!

  • #2
    Hello,

    If you have BC3 Pro, you can use Text Replacements to find and ignore differences like this. One such replacement you can define in the Text Compare's Session menu -> Session Settings -> Misc tab:
    <(.+)></.+>
    with
    <$1 />
    as Regular Expression.

    Technically, the top two nodes could be different. <(.+)></$1> with <$1 /> is not supported. As long as the node names matching does not need to be enforced, this will find and mark this type of difference as unimportant.

    If you are registered for Std, you can trial Pro here to test this fully before any purchase is necessary:
    http://www.scootersoftware.com/suppo...?zz=kb_evalpro

    We also have a general defining of Unimportant text (regardless of what it aligns to on the other side) here:
    http://www.scootersoftware.com/suppo..._unimportantv3
    This would work in BC3 Std or Pro.

    Let us know if you have any questions.
    Aaron P Scooter Software

    Comment

    Working...
    X