Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 36323

Summary: Add XML well-formed check for xml files.
Product: [Eclipse Project] Platform Reporter: Gary Gregory <ggregory>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gary Gregory CLA 2003-04-09 17:50:52 EDT
One of the things I really like about XMLSpy is that it performs a well-formed 
check before saving an XML file. If the XML is not well formed, you can save 
anyway or edit and revalidate. 

Same request for document validation vs. a schema.

It would be nice to have this feature in e, which would come in handy when 
editing ant build.xml files.

Thank you for considering this request.
Comment 1 Darin Swanson CLA 2004-01-28 11:56:58 EST
I believe with the implementation of bug 44343 (which means we now use the 
Apache Ant object model underneath the covers) you will get XML validation.

As well I plan to implement bug 50302 which will configure all of the Ant 
tasks / types in the build file and essentially error check their declaration.

So hopefully for the next integration build (Feb 3) you could check off on 
this enhancement.
Comment 2 Darin Swanson CLA 2004-03-11 23:23:48 EST
Gary, have you had a chance to check out the new parsing that came out of the 
rework of the Ant model?
Comment 3 Gary Gregory CLA 2004-03-12 13:50:26 EST
I did notice that ant support has greatly improved. I am now using e 3.0.m7 and
the Ant completion features are great. Unfortunately, there are still a couple
of quirks related to performance that keeps me using XMLSpy for very large
build.xml files, ours is 2600 lines. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46905
Comment 4 John-Mason P. Shackelford CLA 2004-03-12 13:56:58 EST
Greg,

You mention "a couple of quirks." In addition to making the performance 
improvement you cite above, what else do we need to do to make the ant support 
in Eclipse a compelling alternative to XMLSpy?
Comment 5 John-Mason P. Shackelford CLA 2004-03-12 13:57:52 EST
Oops. I apologize Gary, I read your name wrong.
Comment 6 Darin Swanson CLA 2004-04-01 11:21:43 EST
I am going to mark this as a duplicate of bug 44343.
We are using the Apache Ant buildfile validation.
Other issues are covered in other bug reports.

*** This bug has been marked as a duplicate of 44343 ***