- This topic has 3 replies, 2 voices, and was last updated 19 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
jameszhuMemberplease refer to post
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8728.htmlit is not fixed in 4.0GA
How to reproduce it:
1) create a XML file
2) copy a sample XML into the newly created file, sample XML here:
http://java.sun.com/j2ee/1.4/docs/tutorial/examples/xml/samples/slideSample02-xml.html
3) save the file, you’ll be promoted with “Spaces are not allowed before a Processing Instruction”ideas?
Riyad KallaMemberjames,
I just used your steps and received no validation error, here is exactly the contents of my file:<?xml version='1.0' encoding='utf-8'?> <!-- A SAMPLE set of slides --> <slideshow title="Sample Slide Show" date="Date of publication" author="Yours Truly" > <!-- PROCESSING INSTRUCTION --> <?my.presentation.Program QUERY="exec, tech, all"?> <!-- TITLE SLIDE --> <slide type="all"> <title>Wake up to WonderWidgets!</title> </slide> <!-- OVERVIEW --> <slide type="all"> <title>Overview</title> <item>Why <em>WonderWidgets</em> are great</item> <item/> <item>Who <em>buys</em> WonderWidgets</item> </slide> </slideshow>
First try: File > Switch Workspace > C:\tempworkspace, hit OK. Now create a new project of any kind, create a new XML file (test.xml) and paste in the contents from that file you linked, now save it. Any errors?
If you have the patience, I would be curious what a fresh Eclipse 3.1 SDK install + MyEclipse 4.0 GA install + New Workspace + New Project + This sample file would yield. I’ve seen stale workspace caches create much stranger errors than this before.
jameszhuMemberI did a complete fresh install(eclipse sdk + 4.0GA + workspacee + project), the problem remains the same.
Please make sure that the whitespaces before “<?my.presentation.Program QUERY=”exec, tech, all”?>” are 4 spaces but not a tab. I found that if you put a tab ahead of the PI, there’s no error reported, but if you replace the tab with 4 spaces, the “spaces not allowed before PI” comes up.
I believe this is a bug.
Riyad KallaMemberI have filed this for investigation.
-
AuthorPosts