Announcement Announcement Module
Collapse
No announcement yet.
Using xsd instead of dtd gives error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using xsd instead of dtd gives error

    HI
    I am using following in applicationContext.xml

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:coherence="http://www.springmodules.org/schema/coherence"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...ring-beans.xsd
    http://www.springmodules.org/schema/coherence http://www.springmodules.org/schema/cache/springmodules-tangosol.xsd">

    but it gives error as
    Document root element "beans", must match DOCTYPE root "null".

    even I am not refering dtd here?


  • #2
    did you found already a solution?

    Comment


    • #3
      Is it the actual XML parser giving you this error (when you run your app), or is it your IDE (when you edit the XML file)?

      Make sure you remove the old "<!DOCTYPE ... spring-beans.dtd>" declaration from the top of the file.

      I was also having the same error reported by IDEA when I was editing the XML file. I had to go and delete the old "external resources" that I had configured to point to the old DTD and configure new ones that point at the new XSD files.

      Comment

      Working...
      X