Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Strange validating XML by DTD in Eclipse(only in Eclipse)
Strange validating XML by DTD in Eclipse [message #1476931] Mon, 17 November 2014 13:26 Go to next message
Nasuki Matamoto is currently offline Nasuki MatamotoFriend
Messages: 29
Registered: November 2014
Junior Member
Hello

I have XML document
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE error[
<!ELEMENT error (mammal, weight, age) >
]>  
<error>
 <mammal>elephant</mammal>
 <weight>6996</weight>
 <age>86</age>
</error>


It's not valid XML.
But if I click Validate in Eclipse I've got message something like "Document is Correct".
In Notepad++, online validators and any other editor I've got error.

What does the cause of such behavior of Eclipse? Thanks.

[Updated on: Mon, 17 November 2014 16:03]

Report message to a moderator

Re: Strange validating XML by DTD in Eclipse [message #1477060 is a reply to message #1476931] Mon, 17 November 2014 15:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3881
Registered: July 2009
Senior Member

What error are you getting elsewhere, and exactly what are you being told in Eclipse?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Strange validating XML by DTD in Eclipse [message #1477087 is a reply to message #1477060] Mon, 17 November 2014 16:05 Go to previous message
Nasuki Matamoto is currently offline Nasuki MatamotoFriend
Messages: 29
Registered: November 2014
Junior Member
Eclipse (any version, any name):
The validation completed with no errors or warnings.

Notepad++ with XML Tools:
Validation of current file using DTD:
ERROR: No declaration for element mammal
ERROR: No declaration for element weight
ERROR: No declaration for element age


xmlvalidation dot com:
Errors in the XML document:
6: 10 Element type "mammal" must be declared.
7: 10 Element type "weight" must be declared.
8: 7 Element type "age" must be declared.

Previous Topic:"Eclipse quit unexpectedly" on my mac
Next Topic:GUI and Agent-based modeling
Goto Forum:
  


Current Time: Tue Oct 27 18:04:05 GMT 2020

Powered by FUDForum. Page generated in 0.02992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top