Results 1 to 3 of 3

Thread:

  1. #1
    Join Date
    Sep 2004
    Posts
    17

    Default
    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. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Well for one, elements in a DTD are ordered...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  3. #3
    Join Date
    Sep 2004
    Posts
    17

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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •