Easy but tough problem needs to be solved

Hi,u guys!
I got a very tough problem here.
I have an xml , for example,
<doc>
<Location value= "abc"/>
</doc>
I need to print this xml.(e.g. I would use System.out.println to print the result, which will be exact the same as the example above. How can I do.
I have tried
Element DocEl=doc.getDocumentElement();
NodeList nl=DocEl.getChildNodes();
System.out.println("nl" + nl.toString());
but the result is:nl [doc null]. And the parse of this xml is going well.
No idea what happens.
Plz help me!
Thanks

Hi, thanks for ur reply.
I know what u mean here. In fact, the program is running well in my laptop , and the result is correct too. The problem is the program can not be running in my desktop, with the same java vision and IDE. That is the point of the problem. I was wonderring that the java sentence I posted above is not correct, and that is possible anyway.
Forget what I said. How can I make this come true?
Thanks.

Similar Messages

  • Audigy SE and AL ADA885 problem needs to be solved once and for

    I just purchased the Audigy SE (I'm on a budget) and installed it. I have the Altec Lansing ADA885 THX 4. digital surround speakers. This sound card DOES NOT work correctly with them. I have been all over the net trying everything that I have seen suggested to make it work. The specs say it should work. It does not. I have tried every possible wiring configuration to no avail. One thing that I find rather annoying is that I have seen several people say that changing the SPDIF to passthrough fixes the problem, yet I cannot find anywhere to change that setting, as I cannot find Audio HQ on the driver CD or on the net to install and change that setting. Can someone, for the love of god, please come up with a valid solution to this problem? I have seen so many people with this same problem who get the run around and answers that just don't help at all. What is needed is "Here, do a, then do b, download c, and BAM! problem solved". Not "Here, do f, do h, download c, j, k, m, and p, then go back and do f again, then a, then b, then come back here and let us know that none of it fixed the problem". I don't wish to be a whiner or a jerk about this, but it is a bit frustrating to be "upgrading" to a card that won't even work right. On behalf of all those with the same problem, thanks in advance to anyone who has a valid solution to this very big, very real problem.

    OK...
    . Do you have the complete application suie of the Audigy SE installed?
    2. If so, in Control Panel do you have the Audio Console or Audio Control Panel?
    3. If you do, change the settings for Decoder Settings to SPDIF passthrough. (THis is however only of AC-3 content, it doesn't affect other formats) (I am not sure the Audigy SE does have a decoder, if not, you need to change the setting in the AC-3 decoder you use)
    4. Then go to Device settings and change the Digital Output sampling rate to 48kHz.
    Now if you cannot find Audio Console, then you should download the latest drivers. They specifically state they allow you to change the "SPDIF output Sampling rate", so you should be able to access the option. I believe your problem lies to the fact your SPDIF is configured for 96kHz output and most probably these very old speakers do not support more than 48kHz.
    PS: The instruction I posted above, are based on an Audigy 2 ZS setup, so the naming of the settings and access programs could be different on the SE, but nevertheless present.

  • Map problem,need someone to solve it!!!!

    Map can't find the routes for bus,sometimes car or walker, it's been like that for a few weeks, it used to work before, it always shows that transit locations could not be found between these locations, and it's really weird that even though I searched on google map online, either phone or my mac , it didn't work , so sad:( can someone who's really pro can help me??? Thanks:)

    Maybe vendor took it off?
    Are you regulary updating yout Tablet OS?
    Leader of Ljubljana BlackBerry Developer Group
    BlackBerry Certified Builder for Native Application Development

  • HT204266 I tried to buy credits from a game I am playing but using visa card it was accepted once then all are rejected asking me to go to iTunes support but nothing there. How to solve this problem.

    I tried to buy credits from a game I am playing using visa card it was accepted once then all are rejected asking me to go to iTunes support but nothing there.
    How to solve this problem?

    You need to email iTunes Store Support. Click or tap  on Purchases, Billing and Redemption in here....
    https://expresslane.apple.com/Issues.action

  • When i'm trying to opem Itunes, I get a message that I'm missing MSVCR80.dll on my computer. I have tryies to re-install Itunes, but the problem wasn't solved - what should I do?

    When i'm trying to opem Itunes, I get a message that I'm missing MSVCR80.dll on my computer. I have tryies to re-install Itunes, but the problem wasn't solved - what should I do?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99343)

  • Digital Life and ATT Retail Store problem needs solving.

    I need help in solving a dispute i have with the local San Diego Retail store regarding my Digital Life acount  *** commitments they made when i signed up. Please have a responsible executive of ATT listen to my experience and solve my problem. Thanks... 
    [Edited for privacy-please do not post personal or unique information such as but not limited to full names, employee ID numbers, email addresses, phone numbers, account numbers, etc.]

    Private message and ask them for help.

  • PROBLEM NEED SOLVING

    i have a 60 gig video ipod and every time i try to update it to version 1.2 using itunes 7, my ipod keeps freezing. i would reset it but it keeps freezing in a matter of seconds. i restored my ipod alot of times but this problem keeps happening. it works fine with version 1.1.2 but when i update it to version 1.2 that's when the problem starts. right now it's running on version 1.1.2 but i want to update it cuz i purchase some episodes of 24 and i want to transfer them to my ipod, unfortunatly itunes wouldn't let me do that unless i update my ipod to version 1.2. i took my original ipod to the apple store and they decided to give me a new ipod. when i took it home i restored my computer and download itunes 7 and tried to update the new ipod to version 1.2 but the same problem keeps happening.
    Do anyone know how i could fix this problem? please help me.

    apple needs to fix itunes 7 cuz this isn't good for me especially when the new season of 24 begins. but for now i just have to deal without ver 1.2 for my ipod. thanks for your help guys, atleast now i know there's nothing i could do to solve this problem.

  • When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    I'm not sure I understand the question, is the message tone going more then once?
    Turn off repeat message alert here:
    settings > notifications > messages > repeat alert > never
    Some people have found this does not stop the repeat miessage tone,
    if you are one of those then I suggest you contact Apple:
    http://www.apple.com/feedback/iphone.html
    They may not respond, but hopefully will fix in uodate if enough people complain.

  • TS3899 In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.

    In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.

    Greetings,
    Questions:
    1. What version of the Mac OS are you running (Apple > About this Mac)?
    2. What version of the iOS are you running (Settings > About)?
    3. Do you use MobileMe/ iCloud or another server based sync solution like Google or Yahoo?
    4. Do other changes to synced information like Address Book content sync successfully back and forth?
    Based on your description it sounds like you have a 1 way sync issue.  Events sync fine between the iOS devices and fine from the computer to the iOS devices but not from the iOS devices to the computer.
    Try:
    Backup your computer and iOS devices before doing anything else:
    http://support.apple.com/kb/HT1427
    http://support.apple.com/kb/ht1766
    Ensure all the devices in use are fully up to date: Apple > Software Update / Settings > General > Software Update
    Make separate backups of critical data:
    Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
    Backup your computer iCal: http://support.apple.com/kb/HT2966
    Reset syncing on your Mac: http://support.apple.com/kb/TS1627
    Reply back if that does not resolve your issue.
    Hope that helps.

  • I'm working with a Mac, with 10.10.2 system.  My Audition program has been working fine for years now.  But, there is a problem I can't solve.  All my markers on a given piece of audio allows me to left click to highlight the time signature until my audio

    I'm working with a Mac, with 10.10.2 system.  My Audition program has been working fine for years now.  But, there is a problem I can't solve.  All my markers on a given piece of audio allows me to left click to highlight the time signature until my audio reaches the one hour point.  From there on, the left click will not give me the drop down menu in order to copy and then paste into an Excel sheet I then have to submit for the proofing purposes.  After the one hour mark, I can only control/c in order to highlight, then when I slide up to my Excel sheet, I'm able to right click and paste.  Why is the program not, all of a su allowing me to left cllick the mouse and have a drop down menu give me the option to "copy, " as it does for any time signature markers up to 1:00:00.000?

    Which version of Audition? With the latest version of Audition running on a Windows 7 machine I can't get a dropdown menu at all when I left click on the time in Markers List. The only way to do it is with cntrl-c.

  • Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Hi the_mad_movies,
    It seems like this article will be the best option for addressing this issue:
    Error 3194, Error 17, or "This device isn't eligible for the requested build"
    http://support.apple.com/kb/ts4451
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • TS1453 Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Whinston,
    I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies?

  • How do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    how do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    Welcome to Apple Support Communities
    When you try to copy data to the external drive, what happens? If you don't see any error, the external drive is formatted in NTFS, and OS X can't write in it.
    To be able to write on this external drive, you have to use an app like Paragon NTFS. Another solution would be to format the external drive in FAT32 or exFAT with Disk Utility > http://pondini.org/OSX/DU1.html Make sure you copied all the files of the external disk to the internal disk before doing it

  • I cant use my fire fox continuously ,after some time its automatiocally restarted i update also but the problem not solved,pls give solution for that issues?

    hi
    when i enter into fire fox for 15 min no problem i can use after that its restarted, i update also,but the problem occur again.......
    i cant solve this problem, i have added many password, i cant make re install,

    What issue occurs after about 15 minutes? Do websites stop loading? Does Firefox crash?
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Apple has a problem and the cant solve it. I had some very important call but this new iphone just shut down on me and wont turn on i tried everything u can find in apple support nothing works for me. Anyone know what i can do?

    Apple has a problem and the cant solve it. I had some very important call but this new iphone just shut down on me and wont turn on i tried everything u can find in apple support nothing works for me. Anyone know what i can do?

    I would instead say you have a problem since nearly all IPs work as advertised.  IF you do have a bad phone, take it into an Apple store and get a replacement.  Hope you didn't jailbreak your phone though as Apple probably will tell you, you broke it, you fix it.

Maybe you are looking for