• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Use of ATTR_SEQUENCE_ID in XMLUnit.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XMLUnit API states description for - ATTR_SEQUENCE_ID as The attributes on an element appear in different order7 in the two pieces of XML.
So as i understand the following difference should be captured under ATTR_SEQUENCE_ID by the DetailedDiff class.


Element in XML 1
<StreetType Attached="false" Before="false" Language_Code="ENG">RD</StreetType>


Element in XML 2
<StreetType Language_Code="ENG" Before="false" Attached="false" >RD</StreetType>

The sequence in which the attributes for the same Element occurs differs. The DetailedDiff does not capture this difference under ATTR_SEQUENCE_ID for my implementation.
So i assume that i am missing something in correctly understanding the description.

If anyone has any input that would clarify it for me, it would be great.

Thank you.

Regards,
Sneha
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic