facebook

FCKEditor XML failed validation

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #250824 Reply

    idfbins
    Member

    I 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.

    #250927 Reply

    Riyad Kalla
    Member

    I 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.

    #250959 Reply

    idfbins
    Member

    I 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.

    #250988 Reply

    Riyad Kalla
    Member

    Not 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).

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: FCKEditor XML failed validation

You must be logged in to post in the forum log in