Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0"?>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">

    <!--
        Bean Instance Creator Resource...
    -->

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
        <param name="resource">org.milyn.csv.CSVReader</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
        <param name="setOn">selector</param>
        <param name="value">org.xml.sax.driver</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">fields</param>
    </resource-config>

	<resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">separator</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">quote</param>
        <param name="mapTo">quote-char</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">skipLines</param>
        <param name="mapTo">skip-line-count</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">encoding</param>
    </resource-config>

	<resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">rootElementName</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">recordElementName</param>
    </resource-config>

    <resource-config selector="reader">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">indent</param>
    </resource-config>

    <resource-config selector="singleBinding">
        <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
        <param name="setOn">bindingType</param>
        <param name="value">SINGLE</param>
    </resource-config>

    <resource-config selector="listBinding">
        <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
        <param name="setOn">bindingType</param>
        <param name="value">LIST</param>
    </resource-config>

    <resource-config selector="mapBinding">
        <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
        <param name="setOn">bindingType</param>
        <param name="value">MAP</param>
    </resource-config>

    <resource-config selector="singleBinding,listBinding,mapBinding">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">beanId</param>
        <param name="mapTo">bindBeanId</param>
    </resource-config>

    <resource-config selector="singleBinding,listBinding,mapBinding">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">class</param>
        <param name="mapTo">bindBeanClass</param>
    </resource-config>

    <resource-config selector="mapBinding">
        <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
        <param name="attribute">keyField</param>
        <param name="mapTo">bindMapKeyField</param>
    </resource-config>

</smooks-resource-list>
New to GrepCode? Check out our FAQ X