Skip to content

Support for xpath expressions #110

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
Giving that xml input:

<contactsInput>
    <contacts>
        <contact>
            <name>john</name>
            <surname>smith</surname>
            <fullName>John Smith</fullName>
                <items>
                            <item>myItem</item>
                        </items>
        </contact>      
    </contacts>
</contactsInput>

And that mapping:

<record name="contact" class="eu.com.company.camel.Contact">
                <field name="name"/>
                <field name="surname"/>
                <field name="fullName"/>
                <field xpath="/*/*/*/*[local-name()='items']" setter="setStringItems"/>
</record>

It would be nice to add support for xpath expression, to store xml portions in 
a string and save it without marshalling. 
In my use case I have to send the portion to a text indexing engine.

What is the expected output?

name="john"
surname="smith"
fullname="john smith"
stringItems="<items><item>myItem</item></items>"


Thank you

Original issue reported on code.google.com by [email protected] on 14 May 2014 at 1:09

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions