How can I know node include a node.

Hello
My English ability very poor.. sorry
I want to know a node include another node..
I use hasChildNodes... but it's not work
xml child concept.. very confuse..
<pre>
<object>
     <codetype>codetype2</codetype>
     <code>code2</code>
     <archive>archive2</archive>
     <width>width2</width>
     <height>height2</height>
     <id>id2</id>
     <name>name2</name>
     <mayscript>mayscript2</mayscript>
     <classid>classid2</classid>
     <param>
          <name>name2</name>
          <value>value2</value>
     </param>
     <embed>
          <name>name2</name><src>src2</src><width>width2</width>
          <height>height2</height>
          <play>play2</play>
          <swliveconnect>swliveconnect2</swliveconnect>
          <quality>quality2</quality>
     </embed>
</object>
</pre>
It's my xml source
the codetype node has a value
but embed or param has a childe node...
How can I know...
help me...

I solved my problem by myself..
but I am not sure where i'ts is good or not.
<pre>
public boolean hasChildNodes(Node node) {
NodeList nodeList2 = node.getChildNodes();
          for (int j = 0; j < nodeList2.getLength(); j++) {
               if (!nodeList2.item(j).getNodeName().equals("#text")) {
                    return true;
          return false;
</pre>

Similar Messages

  • How can I know if datasocket server is launched or stopped?

    Hi,
    How can I know if datasocket server is launched or stopped?
    Thanks,
    ToNi.

    I don't know of any "right" way to do this. You can create a control with a DS connection, create a property node for it and use the Datasocket>>Status property to check. If it's anything other than Active, close and restart the server (be sure to have a wait before checking again).
    Try to take over the world!

  • Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal, How can i know whether my phone is in use??

    Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal bcz it seems to be wiped out all data including settings. it might be in use somewhere turning new fresh Gadget.  How can i know whether my phone is in use??

    You would know for a fact if the device is in use, but if you go back to the find my iPhone app in iCloud.com, you can either select to erase it, or place it in lost mode, in which case, once the device makes a connection to the internet, it will automatically go into that mode.

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • How can i know if DAQ hw support "buffered task" and "Sample Timing Hw"?

    Hi,
    i'm choosing the corrent DAQ hw for my application. I read in the NI-DAQmx documenation that if would use the DAQmxRegisterEveryNSamplesEvent(..) function, the hw should support the "bufferd tasks". How Can i know what DAQ device support this feature? Then, I know not all the DAQ device support the "Sample timing hardware". How can i know what DAQ hw use this timing type? Does the NI PCI-6220/6221 support these features?
    Thanks in advace.
    PS: sorry .. but i'm new of "NI World".

    All of the Multifunction I/O (MIO) products, including the PCI-622x products, support hardware timing and buffered analog input tasks.
    In general, if a product's specifications include the analog input sample rate (e.g. "up to 200KS/s") then that means the product supports hardware timing and buffered analog input.
    --Joe

  • How can we know AR invoice is opended or closed?

    Hi All,
    I have a invoices(Receivables) data in 11.5.5. Now i would like to migrate open invoice or partially paid invoice to R12. How can we know that invoices(Receivables) is opened or closed.
    Suggestions will be highly appreciated.
    Thanks.
    Edited by: user627525 on Feb 24, 2009 11:13 PM

    Can't an invoice have more than 1 payment schedule id?
    Yes, an invoice can have more than 1 Payment schedule ID
    If so, would they all have to be zero or closed?
    We have to check by Payment schedule ID
    Regards,
    Sridhar

  • How can i find all included pictures which are not in a album? (only in the Library)

    How can i find all included pictures which are not in a album? (only in the Library)

    Hi there,
    I'm afraid I don't quite understand your question. All images are in your Library and only those you specifically select from that Library would be in an Album. What platform are you using? Revel Mac, Elements, web browser, etc?
    Here is a link with some helpful information:
    FAQ: File Basics: How do I Upload, Download, Share, and Delete files in Revel?
    Thank you,
    Glenyse

  • How can I know which model of K9A2VM I have?

    I have a K9A2VM motherboard with an Athlon 64 x2 3600+ AM2 CPU. I would now like to upgrade to an AM3 Phenom II CPU with lots and lots of cores.
    However, I have a problem. I don't know if I have K9A2VM-FD or K9A2VM-FIH and I don't know how to find out. I've opened my box and looked at the card, but it only says K9A2VM. By reading the specs and looking at pictures, I know it has to be one of them, or at least that it is not K9A2VM-F V2 since it only has two RAM slots and I have four of them installed. There are other obvious differences too, which I can easily spot by looking at the picture.
    Now, looking at the CPU support page for -FD and -FIH, they seem to have differences in what CPUs they support:
    -FD at least supports an X6: http://www.msi.com/product/mb/K9A2VM-FD.html#/?div=CPUSupport
    Phenom II X6    Thuban    HDT90ZFBK6DGR    1090T    200    3.20    3M    6M    E0    125    7501v1B.zip
    But the -FIH CPU support page is different: http://www.msi.com/product/mb/K9A2VM-FIH.html#/?div=CPUSupport
    If I can use that processor, I'm really happy. But -FIH doesn't seem to support Phenom II at all. So provided that the information in the CPU support page is correct, it's fairly important to me to know which model I have. But in case nobody knows how I can distinguish between them; if I buy a Phenom II X6 CPU and it turns out that my motherboard doesn't support it; what is the worst thing that can happen? Will I break the CPU or motherboard, or will it simply not work, but the hardware will still be fine?
    Thanks.

    So this is a MS-7501 Version 1.0 card, in addition to being a K9A2VM. The entire web refers to it as "K9A2VM-FD / FHI". One will work, and the other will go up in smoke. And there is no easy way to know which is which. So how can I know? The reason I bought this card was so I could upgrade the CPU at a later time. Now it seems that's not possible, because the available information is so very poor. I've never had to gamble when purchasing hardware from other vendors. Is this common for MSI?

  • How can i know the RPM of my HD?

    I guys...
    Simple question...
    How can i know the RPM of my HD?
    I have a Mac mini and i would like to know that.
    Any ideas?.
    Thanks so much!!!

    Hi!!
    It doesn't show...
    Vendor:          NVidia
      Product:          MCP79 AHCI
      Link Speed:          3 Gigabit
      Negotiated Link Speed:          1.5 Gigabit
      Description:          AHCI Version 1.20 Supported
    FUJITSU MHZ2120BH G1:
      Capacity:          120.03 GB (120,034,123,776 bytes)
      Model:          FUJITSU MHZ2120BH G1                   
      Revision:          00810009
      Serial Number:                  K64PT9427599
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Lower
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
      Capacity:          209.7 MB (209,715,200 bytes)
      Writable:          Yes
      BSD Name:          disk0s1
    Macintosh HD:
      Capacity:          119.69 GB (119,690,149,888 bytes)
      Available:          21.38 GB (21,376,569,344 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /
    FUJITSU MHZ2120BH G1:
      Capacity:          120.03 GB (120,034,123,776 bytes)
      Model:          FUJITSU MHZ2120BH G1                   
      Revision:          00810009
      Serial Number:                  K64PT9427599
      Native Command Queuing:          Yes
      Queue Depth:          32
      Removable Media:          No
      Detachable Drive:          No
      BSD Name:          disk0
      Medium Type:          Rotational
      Bay Name:          Lower
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Verified
      Volumes:
      Capacity:          209.7 MB (209,715,200 bytes)
      Writable:          Yes
      BSD Name:          disk0s1
    Macintosh HD:
      Capacity:          119.69 GB (119,690,149,888 bytes)
      Available:          21.38 GB (21,376,569,344 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk0s2
      Mount Point:          /
    Those are the 2 texts...
    Any idea?
    Thanks!!

  • How can i Know the email linked to icloud

    Please can anyone help me how to know teh email linked to my phone ??
    it shows me h********@hotmail.com i tried to logged in with my account that belong to h********@hotmail.com and it says inocrrect password or email i tried to reset my id but no reset mail was sent to my email ..
    so i tried to creat a new with the existing email addreess and it works and verified and finally i tried to activate it with h********@hotmail.com with the new passs and it says account cannot be activate with h********@hotmail.com it is linked to another account ..
    so please how can i know the linked email to my phone
    Thank you

    Welcome to the Apple community jorjh.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • How can I know that the listener is starting up?

    Hi,
    I follow the instruction in ACS Oracle Installation guide. I believe that many of you use the document to install oracle. I have a question when I try to start the listener. when I execute ./listener8i stop or ./listener8i start I got the same message, which is different from the message in the ACS document.
    Here is the message:
    Oracle 8i listener start/stop
    Startting the Listener for 8i:
    LSNRCTL for Linux: Version 8.1.6.0.0 - Production on 31-AUG-2000 14:00:00
    (c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.
    TNS-01106: Listener using listener name LISTNENER has already been startd.
    Is the message above correct? How can I know the listener is started up?
    TIA,
    Tony

    try "lsnrctl status" on the linux command line.
    for further info use "lsnrctl help"

  • How can i know if my ipad 3 is original, how can i know if my ipad 3 is original

    Hi there.. I bought an IPAD 3 from my friend. How can i know if the IPAD is original?

    Check warranty
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How can i know who get my photos and messages from my icloud???

    How can i know who get my photos and messages from my icloud???

    Nobody, except the persons who have your username and password or with whom you share photos streams would be able to see anything from you.

  • How can i know who get my photos and messages from my icloud???, How can i know who get my photos and messages from my icloud???

    How can i know who get my photos and messages from my icloud???

    The following website gives you an overview on how your iCloud data is encrypted: https://support.apple.com/kb/HT4865 So as long as you don not share your Apple ID with someone else, everything should be fine.

  • How can we know the affected reports when i remove object from universe

    Hi All,
    If i remove any objects from the universe.
    How can i know the list of affected reports.

    Thanks for your update.
    It shows what are all the reports has been created  by using that particular universe.
    But my question was, if i remove any object from the universe, Then what are all the reports affected(We may not use that deleted object in all the reports)

Maybe you are looking for

  • Best Way to Export Single Tracks in Audition

    Hello, What is the best way to export one single track (stereo or 5.1) from a multiple track mix in the Multitrack Editor if I want to make it mono? Is it by just muting the tracks I don´t want in the final mixdown and then selecting a mono Master in

  • What can I do about http status 500 error report?

    I have Windows and want to log in to a bank website. I click the Log In button and get this message: "Http status 500" and that "The server encountered an internal error () that prevented it from fulfilling this request." and "Path webClient.passmark

  • How to communicate java card from java classes???

    hi all.... please help me to program java card stuff for my project... I am want to use the java as as authentication module to identify the some sort of signature. please let me know the codes or steps do i have to follows.... i am using jcop2.2 ...

  • Petition : add the ability to read lyrics from tag to ZEN Vision M

    Hello everybody ! I saw it's possible to propose new features for MP3 players fw. So i think it could be a good idea to make the ZEN Vision M able to display (via the menu, after set bookmark) the song lyrics written in its tags. Hope it'll interst y

  • Solution data base in CRM

    Hi Can any one please let me know about this CRM solution date base management. where I will get the required links. how good one should be to handle this Solution data base job. THough I've worked in CRM, I'm not into this SDB.Please help me out in