• 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

Multiple ATTLIST declarations for a attribute!

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
As per my understanding, if I have two "ATTLIST" declarations (for same attribute) for a element then parser is supposed to ignore second one and should use first one.
But i am trying following in XMLSpy and it seems confusing.
if I include second ATTLIST in same file for same element then it takes second value.

For example:
DTD File

xml file

Above XML file is valid as per XMLSpy but i don't think so. it should take the first vale for attribute 'lastnma' and it should be "saxena".
Please help me here.
Thanks
 
Vivek Saxena
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a bug in XMLSpy!
reply
    Bookmark Topic Watch Topic
  • New Topic