How to change the XML Root Node name ?
lsk <[email protected]> Thu, 26 Jul 2012 15:49:42 +0800
| Newsgroups | gmane.comp.java.springframework.devel |
|---|---|
| Message-ID | <CACT_RupJ=UHSVaQ9xa6ESj=e9u1ofDW2wNuoq2kFBZfq6FRZWA@mail.gmail.com> |
Hi all :
I just want to chang the XML root node name like this :
<?xml version="1.0" encoding="UTF-8"?>
<mango xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://www.mycompany.com/schema/mango" xmlns:beans="
http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.mycompany.com/schema/mango
http://www.mycompany.com/schema/mango.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd ">
<beans:bean id="helloService"
class="com.mycompany.service.HelloService" />
</mango>
I have been created a NamespaceHandler named MangoNamespaceHandler to
process the <mango> element
after my ApplicationContext started up , when i get bean helloService,
return NoSuchBeanDefinitionException
how to change the xml root node <beans> to my custom <mango> ?
many thanks !!
lsk
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Springframework-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/springframework-developer