facebook

XML Editor unable to edit ANT merge files.

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201928 Reply

    Hello,

    The XML editor reports an error when editing the struts-forms.xml file with the content below. I do agree that this is not a well-formed XML file, but it is a correct ant merge file. The XML editor should be able to figure that out.

    Is there a way to stop seeing:

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

    Thanks.

    <form-bean name="supportContactForm"
               type="org.apache.struts.validator.DynaValidatorForm">
      <form-property name="url" type="java.lang.String"/>
      <form-property name="phone" type="java.lang.String"/>
      <form-property name="email" type="java.lang.String"/>
    </form-bean>
    
    <form-bean name="surveyForm"
               type="org.apache.struts.validator.DynaValidatorForm">
      <form-property name="companyType" type="java.lang.String"/>
      <form-property name="employeeNumbers" type="java.lang.String"/>
      <form-property name="companyRevenue" type="java.lang.String"/>
    </form-bean>

    – System Setup ——————————-
    Operating System and version: Win XP SP 1
    Eclipse version: 3.0M6
    Eclipse build id: 200312182000
    MyEclipse version: 3.6.200
    Build id: 200401011200-3.7RC2
    Eclipse JDK version: “1.4.2_03”
    Application Server JDK version: “1.4.1_06”

    – Message Body ——————————-
    undefined

    #201963 Reply

    Scott Anderson
    Participant

    You can always turn off XML validation under the preferences for the XML editor. You’ll still be able to manually validate files when needed by right-clicking in the editor and picking ‘Validate’ off the context menu.

    The XML editor should be able to figure that out.

    Actually, it is Xerces reporting the error. We just mark it as Xerces instructs us to if you have validation turned on. XML that is not well formed will always be flagged by Xerces.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XML Editor unable to edit ANT merge files.

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