Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for xpath expressions #110

Open
GoogleCodeExporter opened this issue Mar 27, 2015 · 1 comment
Open

Support for xpath expressions #110

GoogleCodeExporter opened this issue Mar 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 27 Jul 2014 at 7:28

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants