Re: [Simple-support] Selection using XPath based on value of sibling
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-10-14 10:44:36
|
Hi, The XPath parser uses only a subset of expressions, you can only select by element depth. In future I hope to extend the number of supported expressions further. Thanks,Niall --- On Mon, 8/10/12, BRANDON J GRESHAM <Bra...@ut...> wrote: From: BRANDON J GRESHAM <Bra...@ut...> Subject: [Simple-support] Selection using XPath based on value of sibling To: "sim...@li..." <sim...@li...> Received: Monday, 8 October, 2012, 3:00 PM New to Simple as well as complex xpath queries… hoping someone can help me out here… I initially posted this question on SO: http://stackoverflow.com/questions/12648363/xpath-simplexml-selection-of-child-based-on-value-of-childs-sibling Please review my question there for more detail, but essentially I want to do something like this: <xml> <metadata> <resources> <resource> <ittype>Service_Links</> <links> <link>…</> … </links> … @ElementList(entry=”link”, inline=true) @Path( “metadata/resources/resource[ittype=’Service_Links’]/links” ) public List<Link> links; That is, I’m hoping I can use annotations to target a collection (ie: ‘links’) based on the value of the collection’s sibling (ie: ‘ittype’) I would really appreciate any guidance on this. ~Brandon -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |