Need to retrieve all the node values of xml using DOM parser..pls help

I want to fetch each node value in this xml file:
<?xml version="1.0" encoding="UTF-8"?>
<Main>
<AAAAA>
<ES>ESValue</ES>
<EI>EIValue</EI>
</AAAAA>
<BBBBB>
<SIP>
<ST>STValue</ST>
<TB>TBValue</TB>
<PM>PMValue</PM>
<VIP>
<CARP>
<AN1>AN1Value</AN1>
<BN>BNValue</BN>
</CARP>
<DARP>
<SA>
<AN2>AN2Value</AN2>
<CN>CNValue</CN>
</SA>
</DARP>
</VIP>
</SIP>
</BBBBB>
</Main>
output should be the inner text values of diffrent nodes that contain some values..
i.e
output:
ESValue
EIValue
STValue
TBValue
PMValue
AN1Value
BNValue
AN2Value
CNValue
so that i can use thses node values and put it them in database...

pls check the above xml file in proper redable order...I need to parse using DOM and fetch node values that are present...
<?xml version="1.0" encoding="UTF-8"?>
<Main>
    <AAAAA>
        <ES>ESValue</ES>
        <EI>EIValue</EI>
    </AAAAA>
    <BBBBB>
        <SIP>
            <ST>STValue</ST>
            <TB>TBValue</TB>
            <PM>PMValue</PM>
            <VIP>
                <CARP>
                    <AN1>AN1Value</AN1>
                    <BN>BNValue</BN>
                </CARP>
                <DARP>
                    <SA>
                        <AN2>AN2Value</AN2>
                        <CN>CNValue</CN>
                    </SA>
                </DARP>
            </VIP>
        </SIP>
    </BBBBB>
</Main>

Similar Messages

  • Need to retrieve all the UDAs associated to a member and its respective children in Excel

    Dear Experts,
    I'm working on Essbase version 11.1.2.1.106 and Hyperion smart view 11.1.2.1. There is a custom dimension in the outline and UDAs are assigned to all the members of that custom dimension.
    Now the requirement is to retrieve all the UDAs of a particular member and its respective children in Excel. Please let me know if there is any option to fulfill the requirement.
    Let say there is a member A and it has 10 childrens(A1-A10). All these members have UDAs assigned to them. Now i would like to retrieve/adhoc analysis all these members as well as its associated UDA in Excel. How can we do that using smart view.
    All your inputs are appreciated.
    Thanks in Advance

    Sree,
    If one does as you suggest, the individual UDAs can be viewed in the member selector dialog box and then members (not the UDAs) can be selected based on that.
    That is not, I think, what the OP wants:
    >>Now the requirement is to retrieve all the UDAs of a particular member and its respective children in Excel.
    Your approach doesn't provide the above.
    People have thought about using MDX to get the UDAs (and maybe someone really good with MDX metadata queries might come up with this), but that doesn't seem to be the case:
    Retrieving all Uda using Mdx Query-what should be string_value_expression?
    The API or Applied OLAP's new and improved Outline Extractor would seem to be the way to go.  Or of course you could export out the outline using MaxL and then parse the XML.
    Regards,
    Cameron Lackpour

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • Rounding of decimal values into XML using DOM

    I want to roundoff 10.456 to 10.4(while generating the xml) using DOM.
    Please let me know how to handle this?
    Thanks in advance

    read the java.lang.Math API
    there are rounding functions there
    and next time please just use a search engine

  • HT4864 Is there any way to get my photos and videos from my old android phone to my iCloud? I'm going to but an iPhone in two weeks and desperately need to download all the info I already have... Please help!!

    Is there any way that I would be able to download my pictures and videos from my old android to my iCloud?? I'm desperate to make this happen. It is the pics of my baby girl. I have just received the iPhone so I hope to never have this problem again but I need a solution currently.... Thanks!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • Binding with all the nodes to the table

    Hi,
    I have requirement like this,
    I have table in which data is displayed using BAPI.
    In my BAPI , there are four tables.
    My criteria is to bind the values to the table from the four nodes which is mapped from BAPI.
    But I can't able to bind the value form all the nodes, it allowing me to only bind form one node.
    Please help me with the procedure to bind the values to the table from all the nodes in the context.
    Thanks,
    Anitha

    Hi Anita,
    I had a similar requirement and resolved my problem by following the below procedure. Try this, it might help you.
    I have got 3 Nodes coming from a BAPI
    Model Node Root--
           Model Node A---
              Attribute- 1
              Attribute- 2
          Model Node B--
              Attribute- X
              Attribute- Y
          Model Node C--
             Attribute- F
             Attribute- G
    Now I want bind all these Nodes to one table. So, I created a "Value Node" - V under Model Node Root. Then create Value Attributes under Node -V with the similar names of the above Model Node attributes and then change their "Type" property exactly same as the Model Attributes Type.
    Then, create a Table and then Bind the table to the Value  Node. Now, in your wdDoinit Method of your Component Controller, give this code
    WDCopyService.copyElements(wdContext.node<modelnode>, wdContext.node<valuenode>);
    Later in your View Implementation give the following Code.
    IPrivate<Name>View.ISourceValueNode iSourceValueNode= wdContext.nodeSourceValueNode();
    IPrivate<Name>View.ISourceValueElement iSourceValueElement;
    IPrivate<Name>View.ITargetRFC Element iTargetRFCElement;
    for(int i=0;i<wdContext.nodeTargetRFC().size();i++){
    iTargetRFCElement = wdContext.nodeTargetRFC().getTargetRFCElementAt(i);
    iSourceValueElement = iSourceValueNode.createSourceValueNodeElement();
    iSourceValueElement.set<attribute name>(iTargetRFCElement.get<Attribute name>());
    iSourceValueNode.addElement(iSourceValueElement);
    iSourceValueNode.moveNext();
    I hope this helps you. Let me know if you need any information.
    Regards,
    Gopal.

  • Not getting all the attributes value from Trusted Recon in eventhandler

    Hi,
    I am not getting the values of all the attributes in hashmap from Trusted recon in eventhandler.
    Following is the hashmap value I am getting :
    Parameter Hashmap value is {re_key=1869, Email=[email protected], Role=Full-Time, act_key=22, User Login=TUser43, Xellerate Type=End-User, Last Name=User43, First Name=Test}
    Please let me know how to get all the attributes value in eventhandler. I need to take some decisions based on these attributes.
    Thanks

    You should be getting all the values in the recon event.
    To get the current user states for all the records in the bulk event use this:
    Identity[] currentUserStates = (Identity[]) eventDataHashMap.get("CURRENT_USER");
    Now when you are looping through your bulkParametersp[], you can use the same get from the currentUserStates:
    Identity currentUser = null;
    currentUser = currentUserStates[counter];
    Now if the attribute is not in your hashmap, you can use:
    currentUserState.getAttributes().get(attribute)
    -Kevini

  • How to get all the allowed values of a property?

    Hi all,
    I want to read all the allowed values of a property. I have created a new custom property and given 3 values as allowed values.
    What i want to do is programtically read all the allowed values of that particular property.
    Regards
    Rajeev

    Hi guys,
    I'm trying to do exactly the same, i need a list with all the KM properties, i'm using the very same code thar Romano putted on his post, and i'm getting this:
    InitialConfigException: The configuration service locator could not be initialized for any of the environments. The configuration framework is not available.#
    On this sentence:
    IConfigurationAccess icAccess =  Configuration.getInstance();
    I'm developing a  Webdynpro application on server A and i'm using the KM libraries through an EJB inside a Webservice on server B.
    Do you have any suggestions?
    Thanks in advance

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • How to get the Node Value from XmlValue result?

    Hi ,
    I am not able to get the Node Value from the result. In my XQuery im selecting till a Node, if i change my query as
    collection('PhoneBook')/phone_book/contact_person/address/string()", qc);
    im getting the node value, but here the problem is its not a Node so i cannot get the Node name.
    So how can i get the Node Name and Node value together?
    any help please ????
    XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <phone_book>
    <contact_person>
    <name>
    <first_name>Michael</first_name>
    <second_name>Harrison</second_name>
    </name>
    <address city="yyyyy" pincode="600017" state="xxxxx">
    176 Ganesan street, Janakinagar, alwarthirunagar
    </address>
    </contact_person>
    <phone_number type="mobile">9881952233</phone_number>
    <phone_number type="home">044-24861311</phone_number>
    <phone_number type="office">080-12651174</phone_number>
    </phone_book>
    Code:
    XmlQueryContext qc = manager.createQueryContext();
    XmlResults rs = manager.query
    ("collection('PhoneBook')/phone_book/contact_person/address", qc);
    while(rs.hasNext()){
    XmlValue val = rs.next();
    System.out.println(val.getNodeName() + " = [ " + val.getNodeValue() + " ] ");
    Output
    address = [  ]

    You are right, this seemed un-intuitive to me too, but I finally understood how it's done.
    The "value" of a node is actually the total amount of text that is not contained in any of the node's child nodes (if any). So a node with child nodes can still have text value.
    To get the 'value' of an element node, you must therefore concatenate the values of all children of type "XmlValue::TEXT_NODE", of that node. Try it.
    In your example, the <address> node has no child elements, my guess is that BDB XML stores the address string "176 Ganesan street, Janakinagar, alwarthirunagar" inside a child node of <address> node (of type XmlValue::TEXT_NODE) because you wrote the string on a separate line.

  • I moved 2 weeks ago and my computer never started again. I need to retrieve all my adobe products, and there is a long list of them. What do I do first?

    System crashed. Need to retrieve all my Adobe products. What do I do?

    Berlene8000 please contact our support team to locate your account and serial numbers.  For the best assistance, I recommend our chat support at http://adobe.ly/yxj0t6.  Our chat representatives can provide a personalized experience to resolve the issue you have described.

  • RAC Instalation Problem (shared accross all the nodes in the cluster)

    All experts
    I am trying for installing Oracle 10.2.0 RAC on Redhat 4.7
    reff : http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnLinux
    All steps successfully completed on all nodes (rac1,rac2) every thing is okey for each node
    on single node rac instalation successfull.
    when i try to install on two nodes
    on specify Oracle Cluster Registry (OCR) location showing error
    the location /nfsmounta/crs.configuration is not shared accross all the nodes in the cluster. Specify a shared raw partation or cluster file system file that is visible by the same name on all nodes of the cluster.
    I create shared disks on all nodes as:
    1 First we need to set up some NFS shares. Create shared disks on NAS or a third server if you have one available. Otherwise create the following directories on the RAC1 node.
    mkdir /nfssharea
    mkdir /nfsshareb
    2. Add the following lines to the /etc/exports file. (edit /etc/exports)
    /nfssharea *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
    /nfsshareb *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
    3. Run the following command to export the NFS shares.
    chkconfig nfs on
    service nfs restart
    4. On both RAC1 and RAC2 create some mount points to mount the NFS shares to.
    mkdir /nfsmounta
    mkdir /nfsmountb
    5. Add the following lines to the "/etc/fstab" file. The mount options are suggestions from Kevin Closson.
    nas:/nfssharea /nfsmounta nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
    nas:/nfsshareb /nfsmountb nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
    6. Mount the NFS shares on both servers.
    mount /mount1
    mount /mount2
    7. Create the shared CRS Configuration and Voting Disk files.
    touch /nfsmounta/crs.configuration
    touch /nfsmountb/voting.disk
    Please guide me what is wrong

    I think you did not really mount it on the second server. what is the output of 'ls /nfsmounta'.
    step 6 should be 'mount /nfsmounta', not 'mount 1'. I also don't know if simply creating a zero-size file is sufficient for ocr (i have always used raw devices, not nfs for this)

  • To display all the Nodes in a Binary Search Trees

    Hi,
    I want to traverse through all the nodes in a binary tree. I know that there are traversals like Preorder,Postorder,Inorder. But I am not able to write a recursive code for performing this operation. Can anyone please help me or give me an idea how to write a code to do any one of these traversal.
    Thanks a lot in advance.

    Hi,
    hmm .. how is a tree-node defined? - As so you have not posted a node-class, I will help you by demonstrating it for inOrder by normal language:
    The Idea is as follows:
    You have a root, that references to a tree-node. This tree-node has a value and 2 references to other tree-nodes, let's say they are named left and right. Because left an right are references to tree-nodes in the same way root is a reference to the tree-node, this fact can be used for recursive action on the tree.
    if you like to display all values in the tree, what do you have to do in a node?
    1. display the tree the left reference is pointing to
    2. display the value-Field
    3. display the tree the right reference is pointing to
    that is inOrder, assuming all lesser values are in the left tree and all greater are in the right tree.
    How to display the left and right trees?
    The same way you display this node, but this time you use the left / right reference as the node.
    So do it in pseudo-coding:
    void DisplayTree(NodeClass aNode) {
    if (aNode == null) return;
    DisplayTree(aNode.left);
    DisplayValue(aNode.value);
    DisplayTree(aNode.right);
    That is it - figure it out and try to write a program after this - good luck. To write one for pre-order and post-order should be easy if you have this one for inOrder.
    greetings Marsian

Maybe you are looking for

  • I'd like to start an apple reseller store in Burma.

    Hello everyone, I come from Burma, a country in South East Asia. Here, Burmese folks seem to be in the craze for apple. Magazines, IT newspapers, billboards, you name it, apple is everywhere. We have dozens if not hundreds of computer electronic stor

  • How do you access Acrobat 7.0 professional on windows 7

    I have purchased a new computer and have Adobe Acrobat 7.0 Professional and I put in my serial number but I still can't get activation on the software.  Please let me know if this can be resolved or am I forced to purchased the latest version.

  • Drive higer load with the usb 6008

    Hi all, I need to drive a small motor with the analog output of the usb6008 device ... connecting it directly doesn't seem to work. Any suggestions how get it working??? what does the 6008 output? My motor works on a AAA battery dricetly. Thanks a lo

  • How can I delete an application that is locked?

    Hello--I am working on a MacBook Pro (mid-2010), OS 10.8.5. I discovered looking through Finder that a Crash Plan app (I had tried a free couple of weeks and then asked to cancel) is still occupying 190.4 MB. During a routine virus scan, I saw in the

  • Is there a way to block access to programs?

    I want to block access to a program called Acquisition, as it's nothing more than a database for ***********. However, I can't seem to find any kind of program that will allow me to block and password protect access to the program. Does anyone know o