Findling all the xpaths matching a particular element

Hi,
I have to build java code using any built-in api (if any) to fetch all the possible XPATHs that match a value provided as input.
Inputs would be pattern for search and XML from which the xpaths to be built.
pattern could be an element name,attribute value ,anything in xml etc
Can you please share any sample code that would do this .
Thanks in advance
sam

Hi,
I'd probably do it with SAX or XSLT, depending on how the results are processed later.
Here are some examples close to your requirement :
http://stackoverflow.com/questions/4746299/generate-get-xpath-from-xml-node-java

Similar Messages

  • How to find out all the OKCODEs for a particular screen?

    I am working on t-code CL20N and trying to record with t-code SHDB, in the second screen when I press enter it is coming out, but when I run CL20N without SHDB it is going through all the screens perfectly, SHDB is not working for CL20N.
    Is there any other way to find out all the OKCODEs for a particular screen/s?

    Hi,
    First look for any push button or menu item which can take you to the second screen instead of hitting enter directly in tcode CL20N . If any such button exist in the TCode, u can use the same button in SHDB also for moving to the  second screen.
    Thanks,
    Rajinikanth G

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • Parse XML: how to get all the sub nodes of an element

    Hello, I am using org.w3c.dom to parse an XML file. I want to get all the information under an elements, including all the sub nodes and sub sub nodes, maybe output as a String or String[ ]. How should I do it with org.w3c.dom?
    e.g. I want to get all the text within<datafile></datafile>:
    <datafile>
    blablabla
    <id> bla <description>bla</description></id>
    </datafile>
    I write:
    Node element = InterfaceDOM.getElementsByTagName("datafile");
    how can I return all the sub content within this element?
    Thanks a lot!

    http://www.developerfusion.co.uk/show/2064/

  • How do I sort so that all the songs for a particular album show up under only one album? Example:  Eminem 'Encore'  has multiple artists on the entire track list.

    Example:  Eminem 'Encore'  has multiple artists on the entire track list.  Several songs will just list Eminem as the artist, but a lot will have Eminem, FEATURING...so and so.  Each song that has "FEATURING" shows up as a different album, so if you are not paying attention, and pull all the songs from a particular album over to your ipod, for example, and you don't see that not all the songs are there, you won't get them all to transfer.
    Is there anyway to correct this?

    Each tune gets a file name - that is how iTunes works. iTunes is a data base manager.
    In a PlayList a reference is created that will link to a specific tune.
    You can take the tunes that you do not want listed under a particular album name and change the album name using 'Get Info' for that tune(s) from the iTunes window.
    MJ

  • How to find out all the tables associated with particular T-code or Program

    Hi All,
    In 4.6B we have a transaction code SE49, where we can see all the tables associated with particular Transaction code or Program.
    But in ECC 5.0 or in ECC 6.0 this transaction code is not available.So is there any alternative where i can find out all the tables associated with particular T-code or Program.
    Thanks
    Shubham

    Hi,
    you are right, Transaction SE49 as well as SE48 do not exist anymore I'm afraid, they        
    are discontinued.                                                              
    You might try to create a transaction variant:                                        
    1) Start SE93 to create a transaction variant                                         
    2) Specify a name, eg. ZSE49, and choose the first option:                            
       "program and screen (dialog transaction)                                           
    3) Here specify SAPMSEUZ as program, and 200 as screen number                         
    4) Choose a suitable development class (package) if you want it to be                 
       transportable or Local (=$TMP) if non-transportable                                
    5) press Save                                                                         
    Same applies for SE48, same program but dynpro 100.                                   
    Sorry for not being able the reasons behind the decision to discontinue            
    these transactions. I suppose at least part of the functionality was               
    integrated in SE38.           
    Best regards
    Erika

  • To list all the employees under a particular supervisor

    Hi
    Can any1 plz tell me which table contains the information abt the employees under a particular supervisor?i need to list down all the employees under a particular supervisor.. only the immediate employees not the whole hierarchy.. just one level down.
    thanks
    SS
    Message was edited by:
    SS

    The PER_ALL_ASSIGNMENTS_F table has each employee/contractor assignment, including the history. The SUPERVISOR_ID is the person id of the supervisor and the PERSON_ID is the person id of the employee/contractor.

  • Show all the possible combinations of n elements in an array???

    If I have an array of n elements, how to show all the possible combinations of n elements.
    What is the java library for doing the combinations??
    For example,
    public class CombinationTest
    {     public static void main(String[] args)     
         {     ArrayList letters = new ArrayList();
              leters.add("s1");
              leters.add("s2");
              leters.add("s3");
    Find all the combinations of 3 elements: C(3,2). Here's the result:
    1) s1, s2
    2) s1, s3
    3) s2, s3
    }

    There isn't a built-in API method for this. Still, combinations are pretty easy. Pseudocode (borrowing notation from ML and GJ, and assuming immutable sets): Set<Set<Object>> getCombinations(int itemsInCombo, Set<Object> itemsToCombine)
        // Handle base case and exceptional cases
        if (itemsInCombo = 0) return Set.emptySet();
        if (itemsInCombo < 0) throw new Exception("?!");
        // Recursive case
        Object o = itemsToCombine.first(); // use iterator - may throw exception
        // Get combos with first element
        Set<Set<Object>> rv = map (x => x.add(o)) getCombinations(itemsInCombo - 1, itemsToCombine.remove(o));
        // Add combos without first element
        rv.add(getCombinations(itemsInCombo, itemsToCombine.remove(o)));
        return rv;
    }

  • % distribution of all the employees in a particular org unit

    Hello To all,
    I am working in Objective Setting and Assessments, I am having a one reporting requirment where I need to show % distribution of all the employees in a particular org unit. I kept 0ORGUNIT in row and Keyfigure 1ROWCOUNT in column,
    I have created a formula for % distribution of all the employees -> %GT " No. fo Records"
    I am bit confused that weather i should take %GT or %CT, %RT
    Wt is difference between that formulas.
    Kindly suggest
    Thanks
    Shalini

    Hi Shalini,
    %CT gives the share of the result, for example in a Regios if you have 10 employees then for each row it gives the employee share for that Region.
    %GT gives the share of the result from the Grand Total, for example if you have 10 regions then it caluculates each row it gives the employee share from all the Regions Grand Total.
    %RT gives the share from the Report Result for each employee.
    In your case you need to use the %GT, then for each region result area it gives % of distribution of all the employees.
    Hope this helps.
    Veerendra.

  • Query to get all the worksheets for a particular work book

    Hi All,
    I want to get all the associated worksheets for a particular workbook. What query will fetch mne those details. Also, where can find the EUL5 tables documentation
    Regards
    Thomas

    Hi Tamir,
    Thanks so far. I am yet to make the crucial breakthrough as far my application goes. Are you talking about the EUL5_QPP_STATS table? I tried retrieving worksheets even from that table also with the following query
    SELECT DISTINCT Eul5QppStats.QS_DOC_NAME,Eul5QppStats.QS_DOC_DETAILS
    FROM EUL5_QPP_STATS Eul5QppStats,EUL5_DOCUMENTS Eul5Documents
    WHERE Eul5QppStats.QS_DOC_NAME = Eul5Documents.DOC_NAME
    However, the worksheet data retrieved by Discoverer Oracle's product is not matching my dataset for every workbook. Please suggest.
    Reg
    Thomas

  • While creating the parameter it doesnot pull all the data of that particular column

    Post Author: pvds
    CA Forum: Data Connectivity and SQL
    Hi everyone.
    i am using a sql query with a join condition to pull data in to crystal reports. I got that data which i want in to the report. but when i was trying to create a parameter with a dropdown of all the database values to a particular column it is not showing all the data from the report.
    for example  i have a column called state
    the column has many states displayed in the report but when i select that column and select browse data it shows only 1 state. with this i am anable to create a parameter with a dropdown list of all the state. i can see different states in the report but y i am not able to see when i browse the data or create a parameter? can any one answer me?
    i already created another report with a query on same table but i never faced this problem before.

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    There is a limit to the number of Parameters that will show in a drop down... You can increase using the following.
    Check this KBase article on how to increase the number.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=19032644&stateId=1%200%2019034607

  • Blocking of all the postings in a particular plant

    Experts,
    I want to block all transaction postings to a particular plant.
    How to do it without deleteing any IMG assignments?

    Hi
    You can mark all the materials maintained in the plant for deletion, this will stop all the transactions using the material master.
    Thanks & Regards
    Kishore

  • I am unable to access all the different Movie Themes in Elements.

    I have Premiere Elements 10. I do not have Photoshop.com Plus Membership. I am trying to make an Instant Movie, but not all the movie themes are availble to me since I do not have Plus Membership. How can I access all the different Instant Movie Themes? Is there something I need to purchase?

    Well, there are three groups of Instant Movie Themes.
    The first is a very limited subset, installed with the program. I do not know the count, but I would expect maybe 1 - 3.
    Then, there is a additional subset, which is much larger, and installed with the Additional Functional Content, which contains DVD/BD Menus, Titles, etc. (in addition to the few installed with the program). This is where the bulk of the Themes, etc. are. It depends on whether one installed from physical media, or from a download file. With the physical, it is a separate installation, done after the program has been installed, and on a separate disc, in most cases. With a download, it is a separate download file. Did you install from physical media, or a download.
    Last, with a Photoshop.com Plus membership, from time to time, Adobe made a very few extra Themes available for download, but not that many, and a lot of subscribers were dissatisfied with that extra content. Though I have never seen the Plus material, it seemed that Adobe would offer maybe one holiday-oriented Theme per Season, i.e. a Halloween Theme in October, etc.
    Please let us know a bit more,
    Hunt

  • How to update all the record for a particular column in a table based on search criteria.

    Hi All,
    I am new to ADF. I have a requirement, where i have to perform mass update on a table.
    Scenario:
    Ex: I have a dept manual search region. where i search with deptId: 20. I get 20 records in my table. now i have  another region where i have a inputchoice list which contains all the columns names that exists in dept table. Beside that i have a input text box and an update button
    Now user, first searches with dept id:20 and clicks on search button, where it shows 20 record in the table. He then select a column from input choicelist(ex: ManagerId), then enters new value in the input box(ex: abc) then clicks on update button.
    Now i want, all the records in the ManagerId column with dept id:20 to be updated with the new value "abc"
    Can anyone help me with the code.
    Thanks in advance..

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • Any inbuild function to retrieve all the promotions for a particular SKU?

    It is possible to retrieve the applied promotion list for a SKU in an Order using priceinfo of the shippinggroup.
    But in my story I also need the promotions which are not applied to the SKU because SKU is using a different shipping method for the Order.
    I need this information to display the user the possible discounts for all different shipping methods in the Order. Is it possible to retrieve this information
    or am I asking too much?

    Look for ClosenessQualifiers in promotions chapter. THere is a droplet and you can give type as shipping, it gives you all the shipping promotions not applied to the order. You can display those on the cart.
    But to figure out if sku is part of that promotion or not, you need to customize. Look at those promotions and probably parse pmdl rule
    or
    WHen u create a promotion, add another property to shipping promotion type which indicates the sku's that this promotion is eligible for. Now you can use this property from the shipping promotions of closenessqualifier to actually check with sku's in cart and display accordingly.
    Hope this gives you a starting point for your requirement.
    -karthik

Maybe you are looking for

  • How To register The manually Created Database into DBCA

    hi guys .. !! -:) using test linux 4 with the vmware , manually i create RAC database , the database is working proper , i planned to delete the RAC database through DBCA , but when i issued $dbca !!! the database can not be see from DBCA to delete i

  • Expanding G3 B&W

    I have a G3 B&W 2 HDs(around 50 and other one 40), 400 Mhz processor,about 100 Mhz bus speed, and 896 MB of SDRAM. WHat do you think I should upgrade? I was thinking about the processor but I've heard bus speed effects it??? If so, can you upgrade bu

  • Files 2 Windows?

    So I will be purchasing a MacBook soon, and I am currently a Windows user in distress, triggering this switch over to Apple. Because of this, most of my friends and family use a Windows computer. Question, If I get MS Office for Mac, lets say I creat

  • MS SQL Server supported?

    As I see, only derby, oracle, db2 and sysbase ase are listed as possible databases. Is there a timeline for MSSQL support? Regards Gerhard Lehner

  • Adobe premiere project wont load

    Hello all, i have the latest imac and premiere cs6: ive been working on a fairly large project and everything was going fine until i noticed that it started taking longer and longer to save. first the auto save went-nothing would happen so i would hi