Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

validating against a DTD

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using IE 5.5 for validating a XML file against an internal DTD. Problem is that even if I remove a mandatory element from the XML document IE does not popup an error. When I try to open same XML doc in XMLSPY it gives error that an expected element is missing.

When I removed the <grade> element from above code, XMLSPY gave error that mandatoru element is missing, but IE5.5 did not give any error.
Can anyone pls tell me why IE5.5 is unable to detect the error?
Or am I missing something elementary??
Thanks...
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would never trust IE, or atleast not use it for development and testing. Eventhough IE has ( what Microsoft claims ) inbuilt XML support, it is quite limited and not in sync with W3 recommendations. So beware!!
Use a validating parser for testing.
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
reply
    Bookmark Topic Watch Topic
  • New Topic