-
Oct 11th, 2004, 10:48 AM
#1
Is there any technical reason that anyone knows of why the <import> element must come before any <bean> elements in the beans.xml file?
-
Oct 14th, 2004, 05:30 PM
#2
Well for one, elements in a DTD are ordered...
-
Oct 14th, 2004, 10:34 PM
#3
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
-
Forum Rules