Dear All,

I am starting to use XmlTask to update some of my
configuration files, but I
found that XmlTask is adding attribute to my
configuration with a default
value defined in the DTD. Here is the input and the
result:

Input:
-----------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
   
"http://www.springframework.org/dtd/spring-beans.dtd";>

<beans>
    <bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="mappingResources">
            <list>
            </list>
        </property>
    </bean>
</beans>

Output:
-----------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<beans default-autowire="no"
default-dependency-check="none"
default-lazy-init="false">
    <bean abstract="false" autowire="default"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
dependency-check="default" id="sessionFactory"
lazy-init="default"
singleton="true">
        <property name="dataSource"
ref="dataSource"></property>
        <property name="mappingResources">
            <list>
            </list>
        </property>
    </bean>
</beans>



What I don't understand is why xmltask adding the
attribute like:

abstract="false" 
autowire="default" 
lazy-init="default" 
singleton="true"

Which doesn't exist in the xml source file, so how do
I turn-off this
feature in the XmlTask?

--
I Wayan Saryada
http://www.saryada.com
y!msgr : saryada


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to