• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • 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 ]
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic