facebook

XDoclet mergefile validation error [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Erez
    Member

    Hi,

    I am using XDoclet with the use of a merge file called “assembly-descriptor.xml”. However I keep getting the following error:

    The markup in the document following the root element must be well-formed.

    The contents of the this small file:

    
        <!-- 
        security roles 
        -->
        <security-role>
            <description>
                customer users
            </description>
            <role-name>user</role-name>
        </security-role>
    
        <security-role>
            <description>
                System operator - member of the site's stuff
            </description>
            <role-name>sysop</role-name>
        </security-role>
    
        <security-role>
            <description>
                This role includes all system administrators who are 
                authorized to manage any part of the system.
            </description>
            <role-name>admin</role-name>
        </security-role>
    

    What to do?

    Thanks,

    Erez

    #215333

    Riyad Kalla
    Member

    Erez,
    You can turn off automatic XML validation (Window > Prefs > MyEclipse > Validation) for XML files. Unfortunately XDoclet uses the .xml extension for all its files, including incomplete/invalid XML documents. The validator in MyEclipse has no way of knowing this so when it goes to validate these partial files, it complains about them. You simply just need to turn off automatic validation so the validator doesn’t try to validate them at all.

    #215361

    Erez
    Member

    I understand and that is what I did.
    I assume I am not the only XDoclet user and so this would mean that we are loosing functionality here,
    isn’t there anything we could do?

    #215382

    Riyad Kalla
    Member

    Yes definately, there is a filed enhancement to be able to ‘earmark’ certain files to ignore for validation… in this case you’d able to mark your XDoclet files to have the validator ignore them. No ETA for it yet though.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XDoclet mergefile validation error [Closed]

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