• 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

illegal XML element .......but no error why?

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

We are using DTD to define legal elements in XML file...that means if we add illegal elements it should indicate error.

But in the following example...while declaring elements in DTD i have mentioned that in xml file both fname and lname should present in any order...so


**********************************************************************
File:Test.dtd

**********************************************************************

File:XmlTest.xml


**********************************************************************
Ouput from internet explore version 6.0

**********************************************************************

As per declaration i should get error because i have not included lname in XML file...but i am not getting error Why?

I have altered Name element declaration as follows ,still i am not getting error



if it is not giving Error then what is the use of DTD...i mean how it is restricting the applications from entering illegal elements in to xml file

If anybody knows please tell me the reason...
[ June 22, 2006: Message edited by: harish thrivile ]
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you are asking about the XML parser built into IE 6.0? Looks like it's a non-validating parser.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic