facebook

4.0GA – Spaces are not allowed before a Processing Instructi

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

    jameszhu
    Member

    please refer to post
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8728.html

    it 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?

    #236000 Reply

    Riyad Kalla
    Member

    james,
    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.

    #236004 Reply

    jameszhu
    Member

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

    #236008 Reply

    Riyad Kalla
    Member

    I have filed this for investigation.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: 4.0GA – Spaces are not allowed before a Processing Instructi

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