- This topic has 3 replies, 2 voices, and was last updated 18 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
idfbinsMemberI have a project using the FCKEditor. I get the following error on the moz-bindings.xml:
cvc-elt.1: Cannot find the declaration of element ‘bindings’.
I also get:
The entity name must immediately follow the ‘&’ in the entity reference.
The offending xml is:
<?xml version="1.0" encoding="utf-8" ?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="numericfield"> <implementation> <constructor> this.keypress = CheckIsDigit ; </constructor> <method name="CheckIsDigit"> <body> var iCode = keyCode ; var bAccepted = ( ( iCode >= 48 && iCode <= 57 ) // Numbers || (iCode >= 37 && iCode <= 40) // Arrows || iCode == 8 // Backspace || iCode == 46 // Delete ) ; return bAccepted ; </body> </method> </implementation> <events> <event type="keypress" value="CheckIsDigit()" /> </events> </binding> </bindings>
I am sure this is a configuration issue with Eclipse, but I cannot find any way to make this error go away.
Riyad KallaMemberI don’t believe this file is complete. If you just want the validator to ignore it, you can right click on the file, go to Properties then mark it derived. Then right click on your project and go to MyEclipse > Remove all Error Markers, then rebuild the project.
idfbinsMemberI did mark the file as derived to work around this. However, in what way is the file incomplete? I would prefer to fix the file if there is anything wrong with it instead of simply telling Eclipse to ignore it.
Riyad KallaMemberNot being an XML guru it’s hard to say. Most of the complete XML documents I see have name space declarations and schemaLocation references. This has neither, it just seems to be a XML document, so the validator is likely getting mad because it’s not 100% pure, but for a non-validating parser it’s probably fine (likely what FCK uses).
-
AuthorPosts