X-Path like Query option for XMLModel?

Hi,
is there an option to use x-path-like queries in the XMLModel?
E.g.
<?xml version="1.0" encoding="UTF-8"?>   
<main> 
                         <config> 
                                    <mode>1</mode>  
                                    <ext> 
                                        <item date="January 2009">                                         
                                        <unit>900</unit> 
                                        <current>1</current>  
                                        <interactive>1</interactive> 
                                        </item> 
                                   </ext> 
                         </config>  
                          <config> 
                                     <mode>2</mode>   
                                    <ext> 
                                           <item date="February 2009">                                      
                                        <unit>400</unit>   
                                        <current>2</current>  
                                        <interactive>5</interactive>   
                                         </item> 
                                   </ext> 
                       </config>  
</main> 
and
var oTable2 = new sap.ui.table.Table();   
oTable2.bindRows("/config['mode='1'']/ext"); 
to select a node directly?
The source is from an old Post [SAPUI5 - XMLModel]  Xpath filter ? where the solution was to loop through the result.
Does SAPUI support X-Path like queries in the meantime?
Thanks,
Oliver

I'm not sure about an xpath query (which was deprecated in JCR 2.0), but here's how you could use the JCR API to retrieve all of the versions from a path:
     * Returns all of the versions at the specified path as a List of Versions.
     * @param session
     *            the currect JCR session, must not be null
     * @param path
     *            the absolute path of the node to retrieve
     * @return the list of versions at the specified path
     * @throws UnsupportedRepositoryOperationException
     *             thrown if the node at the specified path is not versionable
     * @throws RepositoryException
     *             an unexpected exception occurs interacting with the JCR
     *             repository
    public List<javax.jcr.version.Version> getVersions(final Session session,
        final String path) throws UnsupportedRepositoryOperationException,
        RepositoryException {
    final List<Version> versions = new ArrayList<Version>();
    final VersionManager versionMgr = session.getWorkspace()
        .getVersionManager();
    final VersionHistory versionHistory = versionMgr
        .getVersionHistory(path);
    final VersionIterator versionIterator = versionHistory.getAllVersions();
    while (versionIterator.hasNext()) {
        versions.add(versionIterator.nextVersion());
    return versions;

Similar Messages

  • Know what I'd like? I'd like another option for Adobe Flash - not always on, not always off ... ask me if I want something to use flash.

    I go through the news, see interesting articles and open them in another tab and another and another. Throughout the day, I read the articles and slowly close the tabs. I hate having to hit Ctrl-Alt-Del to shut down Adobe Flash because all of those tabs are playing whatever at the same time. I'd like to have the option under Firefox>Tools>Add Ons to select 'Ask me' instead of just Always Activate or Never Activate.
    Want to make your product better? Take this idea and incorporate this option for all of the Add Ons.
    Thanks!
    Using Windows 8, Firefox 24.0 and it's up to date ... according to my About Mozilla Firefox window.

    hello, this is already possible for plugins: enter '''about:config''' into the firefox address bar (confirm the info message in case it shows up) & search for the preference named '''plugins.click_to_play'''. double-click it and change its value to '''true''' then you can set plugins to "always ask" in the addons manager.

  • "Filter Messages Like These" Option for Email

    I have requested the ability to filter based on the messages selected on the Idea Exchange. If you think this is a good idea, please go submit your vote!
    http://forums.verizon.com/t5/Share-Your-Ideas-with-Verizon/quot-Filter-Messages-Like-These-quot-Opti...
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

    Please also vote for my other, related Idea: Allow More than One Condition When Creating an Email Filter
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Query Option for planning

    Hi All,
    I have created a real time cube for planning.
    But when i am creating query on that cube the properties of planning are not in change mode.
    Can anybody please tell me why is it so? & how to make it in change mode?
    Regards
    SM

    Hi,
    If you are working with Integarted Planning in BI 7.0,
    first Create Real Time Infocube  in RSA1
    Then Goto - Tcode- RSPLAN -  click on Start Modeler for manual Planning.
    This will take you to the planning modeler, which is web based.
    You can find five tabs,
    Infoprovider
    Aggregation Level
    Filters
    Planning Functions
    Planhning Sequence.
    Under Infoprovider Tab,
    Select the infoprovide on whcih you are planning
    Goto- Aggregation Level Tab,
    Note: Aggregation level is the virtual infoprovider or a subset of your infoprovider that you have selected under the inforprovisdr tab.
    Create Aggregation level by clicking on create button.
    Then select the charaterisitcs and keyfigures that you are planning on.
    Then check the defination of the aggregation level
    Activate the aggregation level.
    For creating Aggregation level, you need first select the infoprovider on which you will be planning.
    With Regards,
    PCR

  • Query options for OData service

    Hi,
    I am able to  create an OData service and using SDK, I am able to read the data from the connected database. Now I have to fetch data based on queries. I mean from the database table I have to fetch subset of data based on conditions. I have checked the documnetations
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0efbaca-45ba-3010-b7bb-8c1c5aa109ab?QuickLink=index&overridelayout=true&58475979909212
    Other than setting up the Netweaver gateway, is it possible to achieve it through  GWPA(eclipse plugin). I am using the kepler version of eclipse. Could you please share the documents related to this topic?

    Hi Jitendra,
    I have developed ios/android applications using SAP Mobile Platform SDK 3.0 SP06.
    1) MAFLogin is successful
    2) Store initialize is successful
    Now I have to fetch subset of data from the database table based on some conditions.
    Could you please help to clarify the below queries?
    1) Is it possible using eclipse plugins?
    2)  Can we achieve this feature only through Functional import feature using SAP NetWeaver Gateway Service Builder?

  • Why is there no option for a Black ipod anymore/ I've seen the option on other websites, but this website no longer has it. And if I get the Black iPod Touch from another website, will it be old and IOS 6, because the option went away long before IOS 7

    I want a Black iPod Touch Fifth Generation, however I do not see an option for it. I have seen the option before, but it is no longer there, just like the option for a White iPod Touch. I still see the option for a Black iPod on other websites, such as Amazon. I wonder if it will not be updated and slower if I buy it from another websites that sell a Black version, because I think Apple might have eliminated that option for the iPod Touch Fifth Generation.

    No there is the option for a black iPod touch 5th Generation. However, they call it Space Gray now. It provides a black front screen and a slightly gray colored aluminum on the back.

  • Power Query - How to format options for Web.Content()?

    I am trying to access a web api which can return data in either JSON or XML. When connecting with Power Query I get a "400, Bad request" error though and I suspect it could be due to Power Query not explicitly providing accepted Content-Types
    in the request. Anyone know how to add options to the Web.Content() request?
    http://office.microsoft.com/en-001/excel-help/web-contents-HA104112310.aspx
    Thanks!

    I believe the default reponse content-type is JSON. It doesn't serve Power Query with anything but an error response though and with the help of Network Monitor I caught a bit more details (in Swedish).
    Request:
    Http: Request, GET /platsannons/matchning, Query:lanid=1
    Command: GET
    + URI: /platsannons/matchning?lanid=1
    ProtocolVersion: HTTP/1.1
    Accept: */*
    UserAgent: Mozilla/5.0 (compatible; Microsoft.Data.Mashup; http://go.microsoft.com/fwlink/?LinkID=304225)
    Host: api.arbetsformedlingen.se
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    HeaderEnd: CRLF
    Response:
    HTTPPayloadLine: {"Error":{"statuskod":400,"titel":"Bad Request","beskrivning":"Felaktig headerparameter: [Accept-Language]"}}
    And the API can be found at:
    http://api.arbetsformedlingen.se/
    Would be great to be able to define custom headers to the request through options for cases like these. Thanks for the reply!
    Best regards,
    Daniel

  • Query-filter-options for everything.me Mozilla edition

    Where can I get the query-filter-options for everything.me Mozilla edition?

    Hi flegno,
    Depending on which version that Firefox is on, currently in the Simulator is looks like there is only a way to pin the apps that result in a searched category. Searching for people in contacts who have a particular app installed does not seem to be an option? However I cannot know for sure.
    Can you give another example on what you are looking for everything.me to do?

  • What is the corresponding option for " Table Display"  in BI 7 Query Design

    Hi Experts,
    In 3.x Query Designer we have an Option  of " Table Display" to arrange the charesterstics in the Coloums .
    Please let me know the corresponding option  in BI 7 Query Designer.
    Thanks
    Bhanuprakash.

    I think there is no Drill down Fesility in Report Designer.  what is the option for a query with Drill down charecterstics.

  • I would like to go for older version of one of the app ( snipsnap ). previously i used to have in my iphone but during synching i did not got option to transfer apps to library so i lost all my apps. how can i get snipsnap v1.3 again?

    i would like to go for older version of one of the app ( snipsnap ). previously i used to have in my iphone but during synching i did not got option to transfer apps to library so i lost all my apps. how can i get snipsnap v1.3 again? or if anyone have link to this older version app please let me know. thanks.

    You appear to have an iPhone 5. Snipsnap 2.4.2, the current version, says it works on iPhone 5, iOS 5.0 or later. Why do you want an out of date version of the app?

  • Looking for a keyword using like query which could contain multiple occurrence in the same column

    I am facing an issue. A bunch of my frontend JSP code has been stored in few tables of my database (65 rows in a table), which I have identified using few like queries. Now I want to update a Href link which is present in all these queries. But since these column entries are very long (50-60 lines long) and it is possible that a few rows may the link (which is to be replaced), multiple times,  I am not sure that if a simple update query using a single like will work for it or not?
    Any suggestion/ideas are welcome.
    Please let me know if you require any more info.

    Hi,
    e5d4d744-cf66-4fe0-8353-bbd8fd826b21 wrote:
    I am facing an issue. A bunch of my frontend JSP code has been stored in few tables of my database (65 rows in a table), which I have identified using few like queries. Now I want to update a Href link which is present in all these queries. But since these column entries are very long (50-60 lines long) and it is possible that a few rows may the link (which is to be replaced), multiple times,  I am not sure that if a simple update query using a single like will work for it or not?
    Any suggestion/ideas are welcome.
    Please let me know if you require any more info.
    Yes; whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible.  For example, if your strings are sometimes up to 4000 characters long, you don't have to post any data that's nearly that long.  You can probably show what you want with strings that are 80 characters long.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
    This statement:
    UPDATE table_x
    SET str  = REPLACE ( str
                       , old_link
                       , new_link
    WHERE   str  LIKE  '%' || old_link || '%'
    will change all occurrences of old_link to new_link.  It will only change the rows where old_link occurs, but, aside from that, it doesn't matter how many times old_link occurs in str:  if it appears 2 times in the same str, then both occurrences will be changed to new_link.
    Watch out for the "mother is in chemotherapy" problem.  If old_link is 'bar.com', the statement above will change 'fubar.com'.  You may need REGEXP_REPLACE and/or REGEXP_LIKE if you need to consider what (if anything) comes immediately before 'bar.com' when deciding whether or not to change it.

  • VARIABLE option for currencies during query runtime.

    Hi Experts,
    Please provide me the solution for the below.
    In Bex query, during the runtime, selection time of currency,
    We have to give variable option for Millions in rupees, thousands in rupees and rupees.
    How we can give?
    Is it any SAP exit variable is tre?
    or How v can make it?
    Point sure awarded.
    Regards
    Peras
    Edited by: peras selvan on Apr 6, 2008 9:05 PM

    Hi Gupta,
    Thanks.
    But they requirement is to give a drill down option in the first selection for those 3 format of currencies.. Is it possible to give while assigned scaling factor?

  • I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    Hi Djmontanalv,
    Please go through the link below.
    http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    Regards,
    Anand

  • Im From United Arab Emirates and I would like to purchase mini Ipad, however, the option for buying doesnt appear for me ?! is there a list of countries !!!!!?

    Im From United Arab Emirates and I would like to purchase mini Ipad, however, the option for buying doesnt appear for me ?! is there a list of countries !!!!!?

    Unfortunately, Toshiba USA doesn't ship there, and it's not available to download. You'd have to see if there's a third-party that could sell you it or have someone you know in the US order it and then ship it to you. Sorry.
    - Peter

  • In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks

    In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks
    And please help me can type Laos font in it like andrio phone.

    Hi Cozumel,
    Thanks for posting. I'm sorry you're having problems with your bills. I can take a look at this for you. Drop me an email with your account details and a link to this thread for reference. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

Maybe you are looking for

  • Voice over on an ipad

    I cannot activate voice over on an ipad 1. Is there a tutorial on it? I'm trying to set it up for a visually impaired person.

  • How to display the change history of Z-fields in transaction BP?

    Hi, we have created an append structure to table ADRC. For all fields of the structure the flag "Change document" in the data element is set. This is still working because the changes are in the table CDPOS. But when I choose "Extras => Change histor

  • Need a external HD 40% bigger than internal for Time Machine backups??

    I've heard that using Time Machine as my backup program I need a hard drive that's about 40% bigger than the source (internal) hard drive I want to backup. Some in these forums have said I need a external HD 2x or 3x as big as the internal hard drive

  • Very Quick Question

    I have a line of text eg "abcdef". How do I access each individual letter - ie How do i point to just the "a" then move and point to just the "b" etc. Many thanks

  • Horizontal scrollbar in the 3 level hover Top level Navigation

    Dear All, I have implemented a customised 3 level hover Top level Navigation in my Portal. However if the number of Roles increase in TLN, they get added to the next line. I want to implement a horizontal scrollbar in the Top level Navigation. Reques