Announcement Announcement Module
Collapse
No announcement yet.
Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there any technical reason that anyone knows of why the <import> element must come before any <bean> elements in the beans.xml file?

  • #2
    Well for one, elements in a DTD are ordered...

    Comment


    • #3
      <import&gt; element

      Yes, they are ordered, but it's relatively easy to come up with a dtd that would allow the import elements to be pretty much anywhere. Furthermore, an Xml Schema Document would be much more appropriate to validate against anyway. The basic issue is if i have a file:

      <beans>
      <bean id="some.bean" ... />

      <import reosurce="..." />

      </beans>

      I want the imported file to refer to the "some.bean". In order to do this with the current DTD, i would have to break "some.bean" out into it's own file, and import both files. It's kind of annoying to have to do it that way.
      It's not a must have to be able to put it other places, but it will make the user's lives much easier.

      Comment

      Working...
      X