HI       I HOPE SOMEONE CAN HELP ME  Thanks to all

HI I HOPE SOMEONE CAN HELP ME
I have put the structure of the XML and the code that I am trying to use as well as the error I am getting
I am trying to get to a Node in a XML file.
What I am needing to do is to put the FIRST_NAME + LAST_NAME into a Combo box so the user can select their name .
I also have this code, but get this error
"Configuration.java": getNodeValue() in org.w3c.dom.Node cannot be applied to (java.lang.String) at line 902, column 35
Thanks to anyone that can Help
Craig
        try {
          Node userNode = xmlDoc.getNode(
              "/EPOD_USER/USER_CONFIGURATION/USER_INFOMATION/ALL_USERS/");
          userXmlDoc = new XMLDoc("ALL_USERS");
          userXmlDoc.copyChildNodesToDoc(userNode);
          NodeList userNodeList = userXmlDoc.getNode("ALL_USERS").getChildNodes();
          System.out.println("Node List    " + userNodeList);
          UserNmaejComboBox.removeAllItems();
          userNodeHashtable.clear();
          for (int index = 0; index < userNodeList.getLength(); index++) {
            Element element = (Element) userNodeList.item(index);
            String Testing = element.getNodeValue("FIRST_NAME");
//This is where I get this error
//     "Configuration.java": getNodeValue() in org.w3c.dom.Node cannot be applied to (java.lang.String) at         line 902, column 35
            String userName = "User" + element.getAttribute("index");
            UserNmaejComboBox.addItem(Testing);
            userNodeHashtable.put(userName, (Node) element);
          if (UserNmaejComboBox.getItemCount() > 0) {
            UserNmaejComboBox.setSelectedIndex(0);
        catch (NodeNotFoundException nnfe) {}
        catch (IllegalNodeAddException inae) {
          System.out.println(inae.getMessage());
         saveEpod();
      }This is the structure of the XML
- <USER_INFOMATION>
- <ALL_USERS>
- <USERS index="1">
<TITLE>Miss</TITLE>
<FIRST_NAME>z</FIRST_NAME>
<MIDDLE_NAME>z</MIDDLE_NAME>
<LAST_NAME>z</LAST_NAME>
<EMAIL>z</EMAIL>
<MOBILE>z</MOBILE>
</USERS>
- <USERS index="2">
<TITLE>Mrs</TITLE>
<FIRST_NAME>l</FIRST_NAME>
<MIDDLE_NAME>l</MIDDLE_NAME>
<LAST_NAME>l</LAST_NAME>
<EMAIL>l</EMAIL>
<MOBILE>l</MOBILE>
</USERS>
- <USERS index="3">
<TITLE>Mr</TITLE>
<FIRST_NAME>Craig</FIRST_NAME>
<MIDDLE_NAME />
<LAST_NAME>Laird</LAST_NAME>
<EMAIL />
<MOBILE />
</USERS>
- <USERS index="4">
<TITLE>Miss</TITLE>
<FIRST_NAME>Jackie</FIRST_NAME>
<MIDDLE_NAME />
<LAST_NAME>Laird</LAST_NAME>
<EMAIL />
<MOBILE />
</USERS>
</ALL_USERS>
</USER_INFOMATION>

If you look at the API docs, you'll see that getNodeValue takes no args. If I'm not mistaken, you need to get the text node that is the child of the <FIRST_NAME> element node and call getNodeValue on it.

Similar Messages

  • HT4597 Can I have 2 accounts on my iPhone.  I have 2 on my computer and have a signal that 1 email is in my inbox.  It is an iCloud message but I can't access it.  Hope someone can help.  Thanks,  Lorna

    Can I have 2 accounts on my iPhone.  I have 2 on my computer and have a signal that 1 email is in my inbox.  It is an iCloud message but I can't access it.  Hope someone can help.  Thanks,  Lorna

    You can only have one active iCloud account and one iTunes account.  Are you by chance refering to email accounts defined in the mail app?  If so, if one of the accounts (a non-iCloud account) is a POP account, then an email is usually sent to one device.  Once sent, the email is deleted from the server, thus other devices never get copies.  That's how POP works.

  • I have created a slideshow. How do I save it as I would like to incorporate it in a dvd I am making in IMovie. Hope someone can help. Thanks

    I have made a slideshow in IPhoto. How do I save it? I want to incorporate it in a dvd I am making in IMovie. Hope you can help.
    Thanks

    Export it - that makes a  QuickTime movie of it - and import to iMovie
    Regards
    TD

  • Hi, I hope someone can help.... When I open a new user account, which I want to set parental control on, the screen keeps freezing once the account is open. The wee rainbow circle appears and I can't do anything. Does anyone know how to fix this? Thanks

    Hi, I hope someone can help.... When I open a new user account, which I want to set parental control on, the screen keeps freezing once the account is open. The wee rainbow circle appears and I can't do anything. Does anyone know how to fix this? Thanks

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Report any errors it found for Disk Repair, don't need the ones for Permissions Repair.
    Try it again & see if anything changed, but have Activity Monitor open & Show All Processes & sorted on CPU%, also have Console open if we can... maybe not when switching, but we'll see.
    Does this happen if you just try to create a new admin user???

  • Hi, I have a large number of products in one column and prices of the products in another. Most prices are different. I want to know if it is possible to increase all of the prices by 5% or 10% etc. Hope someone can help. From Stiffy

    Hi, This is my first time I hope someone can help.
    I am working with numbers and I have a large number of products in one column and the relevent prices in another. All the prices are different and I want to increase the price of everything by 5% or 10% etc. Is this possible?
    Thanks in advance
    Stiffy123

    Ad a new, temporary column (or one you can hide when not using). Let's say the current Prices are in column C and the new column is D.
    you can inflate the prices in column C by 5% by entering the formula in the first cell of column D as:
    =C2*105%
    likes this:
    to fill down, select D2, then copy, then select the D3 thru the end of the column, then paste.  Now select C2 thru the end of column C, now paste over the existing values using the menu item "Edit > Paste Values"
    you can now hide column D until you need to use it again.

  • Hi there Hope someone can help me here. I am currently on holidays and my Kids have disabled my iPad so I now have to sync with my computer. I don't have my computer handy and want to use my device over the next few weeks if possible so can anyone help me

    Hi there
    Hope someone can help me here. I am currently on holidays and my
    Kids have disabled my iPad so I now have to sync with my computer.
    I don't have my computer handy and want to use my device over the next few weeks
    if possible so can anyone help me please
    Thanks
    Darren
    iPad 2 Wi-Fi + 3G, iOS 6.0.2

    You need a computer.
    Suggest you goto the nearest Apple Reseller and ask them to help you.

  • I have 2 problems I hope someone can help me with.

    As the title says, I problems I hope someone can help me with as I don't know who else to ask for this.
    1. I tried to pre-order Dying Light for the Xbox One and during checkout the system cancelled my order saying that the store stock had been spoken for. However, I went in once the game released to the same store and was able to purchase the game no problem so in effect I just missed out on my $10 pre-order certificate.I wanted to pre-order but it wouldn't let me - I have never seen this error before.
    2. I took advantage of the $39.99 12+1 month Xbox Live Gold gift card you had on sale yesterday. Only the Halo one was abailable at my local store so I ordered 2 of those for pickup. I got home and used the cards and it was only for 12 months not 12+1 as it still says on the website here:
    http://www.bestbuy.com/site/searchpage.jsp?st=3878002,+8972116&_dyncharset=UTF-8&id=pcat17071&type=p...
    Is there a way to get the extra month advertized?
    Thank you!
    Solved!
    Go to Solution.

    Hello also_nadrag,
    Thanks for writing in, and thanks too for being a My Best Buy member.  We appreciate your loyalty.  I'll be happy to talk to you about your recent online experiences.
    From the sound of things you may have waited too long to attempt a pre-order for in-store pickup for Dying Light.  As the order was not able to be processed, I'm afraid we will not be issuing the $10 certificate.
    The product description on the Xbox Live Halo card is incorrect in labeling this item as including 1 extra month.  As the image online and packaging indicates, this card has an extra bonus for Halo: The Master Chief Collection.  We have reported the description error and I hope it is corrected soon.  I am sorry for any confusion this may have caused.
    Please visit us any time with questions or concerns.
    Sincerely,
    Mike|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Hope someone can help - Lightroom not working...at all...nothing....

    I have tried installing about 20 or so times now and still cant get any thing at all when i launch the application - its likek it freezes. Something somewhere is missing or corrupt in my mac or the dowmload i downloaded and here's really hoping someone can help.
    I have been using the beta since beta 1. This morning i downloaded the V1.0 and went through the usual steps on a mac. Launched the programme and got the option screen of entering a code or trying for free for 30 days.
    Chose the free trial as my serial code had not yet been sent.
    The application seemed to start and then said it was going to upgrade/update (or similar) my old library and this may take a few minutes. Fine - I've got all day - no worries.
    5 hours later and not a whole lot appears to have happened other than Lightroom being frozen and I cant do much. Force quit ensues and an attempt to relaunch the application.
    It launches and I getthe start up Window that lists all teh people who made it...but my cursor just goes into spinning ball mode an dnothing happens. This has now gone on about 20 or so times. I have tried removing the Lightroom with Appzapper and then re-installing the original beta followed by the new download....still nothing but a frozen lightroom
    Anyone got any ideas - it must be something to do with my mac as everyone else seems to be using lightroom ok... and i'm desperate...seeing as i've been using it since beta 1
    hope someone can help??

    Another thing to check is the permission settings on the Lightroom application and on the folder where your library lives (or will live, if you're making a new one.)
    The Lightroom application needs to have an owner who has read/write permission on the library folder's location. Normally this owner will either be your own user ID or the "system" ID -- check by doing a command-i and seeing what shows up under the 'Details' section of the 'Ownership and Permissions' section.
    I was having exactly the same problem you described until I checked and discovered that for some reason, Adobe's Installer had installed Lightroom with a strange owner ID that only had read permission on my library folder's location. Since Lightroom needs to be able to both read and write to the library when it starts up, it was launching and then just sitting there doing nothing.
    I changed Lightroom's owner to 'system,' then made sure that the 'admin' group (of which 'system' is a member) had read/write permission on my library folder's location. After that, Lightroom launched fine.

  • My trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    my trash bin has one item that refuses to be deleted. Under name, it says, 0. date; dec. 31, 1903. size; 0 kb. I have no idea where it came from. When I click, info. the info. window starts to appear, then goes away. Weird or what? Hope someone can help?

    sorry i forgot that... i use php5 so i guessed at the module name... upon looking closer at the conf its mod_php4.c
    <pre>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    </IfModule>
    </pre>

  • Hi guys I hope someone can help me

    Hi guys I hope someone can help me I have a problem with Apple compressor 4. Everytime I use Apple clusters it works for the first time. And when I try to use it again it disappears. I have to delete the program and reinstalled it and then I can activate the clusters again does anyone know why this happens.

    There was just an extensive discussion about clusters here. See if there is anything helpful it that may apply to you.
    Open up Qmaster from the Compressor menu toolbar. Post screen shots of the Setup window and Advanced window.
    Russ

  • When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • My iPod 5 screen is black the camera will make the clicking sound when pushing the home button and sleep button at the same time but the s teen stays black !! I hope someone can help

    I have an iPod 5.  The screen is black, I tried charging it.  It makes a bing when I plug it in so power is going to it.  When I hold the sleep button and home button to use the camera it takes a pic although the screen stays black the sound is there.  I hope someone can help me !!!

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • I have the ipad3,and I plug my charger in to charge my ipad and it comes up with the charging battery sign charges for a few minuets and then the white apple sign loads up into the screen then my ipad goes dead again,I hope someone can help:)

    I have an ipad 3, when I plug my charger in the ipad comes up with the sign to say it is charging and then the apple sign loads up as if the ipad is about to come on,but then the ipad just goes dead again,I've tried holding both buttons down and I have also tried charging it over night but still nothing is working.
    I hope someone could help:)

    When you say you tried holding both buttons, did you mean you held both the power and home buttons until the apple logo appeared, ignoring the red slider if that appears?  If so, exactly what happens?
    You may need to take the iPad and charger to an Apple store genius bar to be tested by the techicians.

  • Hello everyone, I am an electrical engineer, I am working on voice control of electric instuments, I like to use siri alication of "Apple", who can help me, thank you all

    Hello everyone, I am an electrical engineer, I am working on voice control of electric instuments, I like to use siri alication of "Apple", who can help me, thank you all

    If you mean that you want to license and obtain the programming code to Siri from Apple so that you can use it in your own devices, that will almost certainly not be possible. Apple almost never licenses their exclusive technologies to others. You can try writing their corporate office:
    http://www.apple.com/contact/
    and inquiring, but I would wager that you will not even receive a reply, much less have Apple be interested in licensing the Siri technology to you. You may have better luck talking to Nuance about their voice recognition technology:
    http://www.nuance.com/for-partners/index.htm
    If that's not what you mean, please post back and clarify.
    Regards.

  • Hi when I download a app it comes up on the homepage and shows waiting, but it will not carry on from that. Hope someone can help thanks.

    Hi When I download an app on my iPad 3 it comes up ok on my homepage and shows waiting but it will not load &amp; install. This has only just started a couple of days ago, and I have tried resetting the iPad but the problem persists. Hope some one can help, thanks. Zeters.

    Check iTunes and see if you have a pending/stalled download e.g. Podcast, Music, Movies or iTune U. Finish off the download and apps should start downloading.
    If there are no pending or stalled downloads, sign-out of account, reboot and sign-in again.

Maybe you are looking for

  • Move two R/3 4.7 istance from a box V5R2 to a new box V6R1

    Hi, we need to move two existing istance based on R/3 Enterprise 4.7 (with kernel 6.20) to a new host V6R1. In the past I remember a SAP note about move a istance to new host without r3install/sapinst but with save/restore command and other SAP-cmd s

  • Why does my mail have blue dots and won't open? My Internet is okay.

    My Internet seems to be working fine.  I have blue dots in front of each mail message and the messages won't send.  Help.

  • S3 Troubles

    I  have an S3 that was fine for almost one year, but now, not so much. The phone has always been kept in a "tough" case and does not have a scratch on it. The power button was the first issue (sometimes it works, sometimes it does not). WiFi connecti

  • I have trying to create an array of gpib instructions.

    The following is an example. Time           instruction               X                  Y              Z 0 00:00:00,mot,v1_m1,-1492316.6919,-5204326.7860,3360431.4341,0,0,0,0,0,0,0,0,0,0,0 The problem is I can create the time format column array but

  • How to install certificate in im client

    i can't find the procedure for installing a certificate in the client - i did the server part: http://docs.sun.com/app/docs/doc/819-4412/6n6ikpsut?a=view but now i can't find how to do the client part - i'm just using the standard im client obtained