Menu

Premature end of code (XML Tools v2.1.3)

AndyS01
2009-06-11
2012-11-14
  • AndyS01

    AndyS01 - 2009-06-11

    When I syntax this code, I get a popup saying:
    XML Parsing error at line 6:
    Premature end of data in tag html line 1

    ==================
    <html>
    <body>
      URL: <input>
    </body>
    </html>
    ==================

    This code runs OK, so I can't see what XML Tools is complaining about.

    I'm running XML Tools unicode alpha-4 r697

    Andy

     
    • Dave Brotherstone

      It looks like it's treating it as XML, which would require the <input> tag to be closed.  If you change this to

      ==================
      <html>
      <body>
      URL: <input />
      </body>
      </html>
      ==================

      That should work in HTML too, but be valid XML.

      Hope that helps.
      Dave.

       
      • AndyS01

        AndyS01 - 2009-06-11

        I'm working with a lot of .HTML files, with thousands of lines of code, so it's impractical to edit them all to look like XML files.

        Is there a config file or something that I could change so the plugin handles HTML as well?

         
        • cchris

          cchris - 2009-06-12

          The plugin already exists I think, it is called TextFX HTML Tidy.

          You should consider revieong its script options, from http://tidy.sourceforge.net/, and then use that to turn your HTML into well formed XHTML. I believe XML Tools can handle that.

          CChris