Problem with getting the nodevalue

Hi all,
I have the following xml-file:
<ROOT>
<ROW1>
<Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer>
</ROW1>
</ROOT>
I need to get the full-nodevalue of <Outer> (Outer1 <Inner>Inner</Inner> Outer2).
I do not use the XMLDB and XMLType.
I parse the XML-File using xmlparser and xmldom packages from pl/sql.
Any ideas?
Regards

set serveroutput on
declare
p xmlparser.Parser;
doc xmldom.DOMDocument;
procedure traverse( node in xmldom.DOMNode, nivo in integer )
is
nl xmldom.DOMNodeList;
begin
nl := xmldom.getChildNodes( node );
for j in 0 .. xmldom.getLength( nl ) - 1
loop
if xmldom.getnodetype( xmldom.item( nl, j ) ) = xmldom.text_node
then
dbms_output.put_line( rpad( '.', nivo * 3 ) || xmldom.getNodeValue( xmldom.item( nl, j ) ) );
else
dbms_output.put_line( rpad( '.', nivo * 3 ) || xmldom.getNodeName( xmldom.item( nl, j ) ) );
traverse( xmldom.item( nl, j ), nivo + 1 );
end if;
end loop;
end;
begin
p := xmlparser.newParser;
xmlparser.parsebuffer( p, '<ROOT><ROW1><Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer></ROW1></ROOT>' );
doc := xmlparser.getDocument( p );
xmlparser.freeParser( p );
traverse( xmldom.makeNode( doc ), 0 );
xmldom.freeDocument( doc );
end;
ROOT
. ROW1
. Outer
. Outer1
. Inner
. Inner
. Outer2
PL/SQL procedure successfully completed.

Similar Messages

  • XML: Problem with getting the nodevalue

    Hi all,
    I have the following xml-file:
    <ROOT>
    <ROW1>
    <Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer>
    </ROW1>
    </ROOT>
    I need to get the full-nodevalue of <Outer> (Outer1 <Inner>Inner</Inner> Outer2).
    I do not use the XMLDB and XMLType.
    I parse the XML-File using xmlparser and xmldom packages from pl/sql.
    Any ideas?
    Regards

    Probably can anyone help me to get only Outer2?
    With xmldom.getnodevalue I get only Outer1.
    Regards

  • Problem with getting the little blackberry icon

    Hi the blackberry I'm using is working and up to date. I was setting up my mates blackberry 9320 but having a problem with getting the little blackberry icon to appear in the top right corner of my phone where the GMS is and signal bar and stuff its something to do with blackberry.
    I tried downloading bbm and it say associating bbm with blackberry id and constant loads with nothing happening bbm not working
    I NEED THE TINY BB ICON AT TOP RIGHT???

    Hi neal123
                            That BlackBerry icon will appear near signal bar when we activate  BIS on a 3G device. Did he activated BIS on his account. ? 
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Problems with getting the number of hits in the document.

    I need to get the number of hits in the document.
    I use the query template for this porpose as:
    SELECT d.id, score(1)
    FROM document d
    WHERE contains(d.content,'<query>
    <textquery>SEARCHWORD</textquery>
    <score datatype="INTEGER" algorithm="COUNT"/></query>',1)>0
    AND d.id=1
    problems:
    1. If I have some synonyms associated with SEARCHWORD in OracleThesaurus and in case if document contains these synonyms they are not counted.
    2. could you explain the following results returned by query above:
    search query: word1 - numberOfHits=10
    search query: word2 - numberOfHits=8
    search query: word1 OR word2 - numberOfHits=10
    i suppose that numberOhHits=18 for a query: word1 OR word2

    Hi.<br><br>
    1.Synonyms (and generally thesaurus query extensions) cannot automatically uses in queries. You MUST expand you query using SYN function yourself. Query you write just applicable for only KEYWORD search.<br><br>
    2. Ask yourself. I'm not seen your data. ;)<br>
    Rgrds, Yuri.<br><br>
    PS. Just read Oracle Text Reference - you can find many answers here. ;)

  • [Mail] Problem with getting the e-mails.

    Hello Applepeeps,
    ****** things. My first reaction to my mail that isn't functionating anymore. Here a screeny:
    It is in Dutch, so I give you guys a raw translation:
    Warning:
    That is maybe a problem with the mailserver or the network. Check the settings for the account 'Hotmail' or try again.
    The Server made a mistake.: Time-out from connection with the server 'pop.3.live.com' via port 955.
    It is also on my gmail account. But my usual network works fine! I can game, tweet, facebook..
    Can someone fix this? Halp!

    also check inside any folders on your desktop, may have been moved there. you can also use your PC and log into your carriers blackberry site.
    ie.
    Verizon
    AT&T
    Sprint

  • Problem with getting the file name and type from OAMessageFileUploadBean

    Hi Tapash,
    I am trying the code below to get the file name and mime type from OAMessageFileUploadBean,
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("Documents");
    String uFileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    String contentType = fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    But this piece of code gives errors saying that selectValue selectValue(null, java.lang.String) not found in class oracle.svc.DataObject
    Any ideas? why this code is giving error?
    Can i handle the event of browse button for OAMessageFileUploadBean?
    Regards,
    Nagesh Manda.

    Try using class oracle.cabo.ui.data.DataObject
    --Shiv                                                                                                                                                                                                       

  • Problem with getting the Grouping Separator based on Current Locale

    Hi
    I have created a java swing application. In which I try to get the grouping separator based on System language and location(Control panel).
    But it always take comma as GroupingSeparator.
    I set the region and language to South Africa. Now It should take blank space as a GroupingSeparator but it takes comma.Here is my code:
    private char mcharDecimalSeparator;
    private char mcharGroupingSeparator;
    DecimalFormatSymbols objDecimalFormat;
    mcharDecimalSeparator = objDecimalFormat.getDecimalSeparator();
    mcharGroupingSeparator = objDecimalFormat.getGroupingSeparator();Any help will be appreciated '
    Thanks
    Sonal

    From what I see here I'd say you'd get an NPE at line 4...
    The point is: why do you care?
    You should leave parsing and formatting to localeaware library classes like NumberFormat.
    bye
    TPD

  • Wedding Video Nightmare!! - I have an ongoing problem with getting the videos to playback correctly

    This issue has been going on since about 3-4 months ago. Took a while to get familiar with workflow. But now I'm stumped big time and clients are getting impatient.
    I will import a encoded video and audio file into encore. (.m4v & .ac3 ) and >new timeline and such
        looks great and no issues detected in Encore... it doesn't try and re-encode cause I already set the bitrate to around 20-22kbps
    I author a put together a  simple menu and burn to disc.
    Crappy result 1:   Put it in the Blu Ray player in the living room and it plays fine for a while and then around 20-30 secs or so I notice 1 single frame of video - half of it is snow..just a flicker of half framed snow. a little time goes by and notice it again.  It may do this through the whole video every minute or sometime 10 minutes...
    Crappy result 2 :Another issue is audio just drops out for about 5 minutes and comes back... If I rewind the video and play it back.. it doesn't have audio drop out in the same time in the video.
    Crappy result 3
    Another issue .... this is from the brides email :
    "So i just tried to watch both Blue ray disk. I tried it on 2 different blue ray dvd players. They are both freezing right after the boys pre ceremony part. "
    I burned a copy from the image file this bride is complaining about and it played fine through the whole video.
    I was thinking maybe I have a bad Blu Ray drive or discs ... however I'm not sure of this cause I do get errors often trying to burn discs direct from encore.
       Here's what I have
        Blu Ray internal: Asus BW-12B1ST   5months old
      Can't tell you what BD-RE I am using at the moment but can someone recommend   Discs and a good Drive? Cause I'm about to go buy new ones and throw these down the crapper

    Direct link to http://www.imgburn.com/index.php?act=download (send the author a PayPal donation if you like his program)
    I use Imgburn for ALL of my disc writing... backup files/folders as well as Encore output

  • Problem with Get the current and voltage from HP Power Supply (HP E3631A), using the GPIB interface.

    my USB device's power support is from the DC Power Supply ( HP E3631A)
    I need to read using current from a DC Power Supply ( HP E3631A),via GPIB interface.
    When I use the follow command.Why can't read the current value.My environment is in vc++ 6.0.
    "APPL P6V,5.0,1.0"
    "OUTP ON"
    "MEAS:CURR? P6V"
    attached the NI SPY File.Please check it.
    Can you tell me what the problem is ??
    Thanks in Advance !
    Hope you can solve my problem !!!"
    Attachments:
    E3631AERR.spy ‏7 KB

    Hi neilchuang,
    A read timeout error is usually caused by an error on the command string sent.
    The first thing I would check is if the instrument requires a termination character at the end of each message (such as linefeed). I noticed in the Spy capture that the commands do not have a termination character attached. This means that the instruments never recognized that you completed the query command, it doesn't execute the requested action and as a consequence of that it doesn't have any data to return.
    One question: Is the instrument detected by MAX when you scan for instruments?. If yes then you can assume that the GPIB software and hardware are properly installed. The scan for instruments sends the *IDN? (terminated by a linefeed). You can right-cli
    ck on the instrument entry in MAX and select "Communicate with instrument". Notice that at the end of the command the linefeed is included (\n).
    Double check with the instrument manual if the commands sent are the right ones.
    Finally, there is an instrument driver available in the idnet library: www.ni.com/idnet. Search for 3631. Since you are working in C you can use the LabWindows/CVI Plug and Play driver. Even if you decide not to use the instrument driver, you can still use it as an excellent reference on how to program with the instrument.
    Hope this helps!.
    DiegoF
    National InstrumentsMessage Edited by Molly K on 02-18-2005 11:05 PM

  • I am getting weary of my iPhone 4s. the battery life is non-existent, second, i had problems with calls, the caller couldn't hear me and now it cannot detect internet networks. Be they wi-fi or cellular. what could be the problem.

    I am getting weary of my iPhone 4s. The battery life is non-existent, secondly, I had problems with calls, the caller couldn't hear me and now it cannot detect internet networks. Be they Wi-Fi or cellular. what could be the problem?

    Mullaly75 wrote:
    I assume u guys don't understand what open source software is
    Yes, I think most of us do understand what open source software is. It sounds as if you don't. Here's some information:
    Open-source software (OSS) is computer software that is available in source code form: the source code and certain other rights normally reserved forcopyright holders are provided under an open-source license that permits users to study, change, improve and at times also to distribute the software.
    Open source software is very often developed in a public, collaborative manner. Open-source software is the most prominent example of open-sourcedevelopment and often compared to (technically defined) user-generated content or (legally defined) open content movements.
    from http://en.wikipedia.org/wiki/Open_source_software
    Yes, Tom Wu of Stanford wrote a paper on something called Secure Remote Access Protocol. It's a form of Asymetric Key Exchange and has nothing to do with hacking anything. It's actually intended to protect data.

  • I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my we

    I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my website online (with Firefox, Explorer, Chrome browser) I always get the message 'Forbidden, You don't have permission to access / on this server.' Can somebody help me please? I have to get my website online..Thank you!

    Hello Els,
    it's well known, that in all these cases you describe I'm not a friend of a detailed Troubleshooting (I see Nancy#s smile already).
    To be able to be independent in all this things It is one of the reasons why I prefer an external FTP program. The difficulties with which you have to fight encourage me in this opinion, not least because we always search for experts, we don't charge a "jack of all trades".
    To manage several websites or to upload my files and sometimes for the opposite way, for a necessary download from my server or to use a "a site-wide synch", I'm using FileZilla. It simply looks easier for me to keep track of all operations precisely and generate or reflect easily the desired tree structure.
    Above all, FileZilla has a feature (translation from my German FileZilla) called "compare file list". Here it's possible to use file size or modification time as a criterion. There is also the possibility to "hide identical files", so that only these files which you want to redact remain visible.
    And even if it means you have to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read informations about how it works:
    http://filezilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager
    Mac: Mac OS X (Use: Show additional download options)
    http://filezilla-project.org/download.php
    Of course, you also need all the access data to reach your server and for MIME issues, you should contact your web host/provider.
    Good luck!
    Hans-Günter
    P.S.
    Since I use two screens, the whole thing became even more comfortable.

  • Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it acr

    Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it across all the places around to pay their attention. This is a desperate move, so if you are not the right people to help me to get my message accross, may be you can advise where can I go.
    Thank you, and sorry for the language.
    Vitas Dijokas
    I am sorry to say that, but your security makes my life miserable – it’s been 2 months since my Apple ID account got stuck, and since then I cannot update 37 applications (to date), i.e. most of my applications. Half of them I bought. I also paid for iCloud, and it is not working. I paid money and I am stuck with old applications and no iCloud. Your security *****. Your service ***** too. It took your service 1 month to finally understand why this happened to me, and it took me tens of emails to you and 3 hours of telephone conversation to find out the reason for my problem. And the problem is still not fixed. NOT FIXED. You just leave your customer – the one who paid you money and spent so much time with you trying to help you help me – and nothing. You tell me:  “Vitas, Stick your stinky iphone in your *** and enjoy life, we do not care!” *************.
    It is ******* outrageous, and you should know that,  guys. Get into the ******* database and correct the bug. Get someone in the partners-telephone carriers company (it is Orange as carreer and Cellcom as seller of the phone)  authorized to Identify me in personal encounter in one of the branches in Israel (where I live) and make sure it is really me, and get the ******* system accept my password and let me use my phone.
    Otherwise **** off. None of my friends will get my advise to buy an iphone or any of apple products. And I think you should be very attentive to cases like this, guys. Do your work for the money we pay, or disappear. There are many others eager to take your place, and if the problem is not fixed I will eventually go to the others. My patience is lost, and as soon as I can afford another phone I will change it. AND I WILL TRY TO GIVE BAAAAAD PUBLICITY TO APPLE – I am threatening here, so ACT NOW.
    Vitas Dijokas

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Just moved my email from entourage to Mail. Having real problems with getting my signatures to work properly. When adding in a small company logo, windows computers only receive signature as an attachment. Am sending email as Rich Text. Any ideas on a fix

    Just moved my email from Entourage to Mail. Having real problems with getting my signatures to work properly despite sending email as Rich Text.
    When adding in a small company logo to the signature, PC's / windows computers only receive signature and logo as attachments.
    I've tried all possible fixes I can find including getting a PC user to format the logo but no joy. Has anyone experienced this and any ideas on a fix gratefully received.

    Send it as html so the signature is an image source URL

  • Problems with getting my Ipod Touch to work on my Sony Bravia or any TV

    I am having problems with getting videos or movies to play on my Sony Bravia HDTV or any TV. I have a first generation Ipod Touch and I have the Apple AV Composite Cables and all I get is sound for both TV's that I tried. I read one post where some guy had a faulty Ipod that wouldn't work. Does anyone know how of something hidden or special that needs to be done or how did they fix the problem if they had the same one? Thank, ejcarlson

    Check connection, if you have a case on your Ipod the connection may not be good enough.

Maybe you are looking for

  • Payment by letter of Credit against Purchase order

    When we are purchasing from Foreign Vendors , we need to open a Letter of credit (LC) . Depending on the terms of Purchase order , Vendor will discount it /get payment from Bank on submitting LC and other necessary documents. Vendor's Bank, at approp

  • How to change the name and description of a wim using DISM

    With Imagex we could update the name and description of the wim with on easy command: imagex /info img_file [img_number or img_name] [new_name] [new_desc] e.g. imagex /info Win7Combined.WIM 1 "Win7(x86)" "Windows 7 x86" Since the ImageX tool is depre

  • Connecting MacBook to Playstation 3

    Does anyone know how to connect my MacBook to my Playstation 3? Both are connected on my home wi-fi network for internet access. On the PS3 menu screen, it has an area to search for media servers. I'm assuming this so i can display photos, videos, mu

  • Exclamation mark! Not recognising external drive has been reconnected.

    All my Itunes music is stored on an external hard drive. Foolishly I must have pressed play whilst the drive was disconnected and I now have an exclamation mark next to every track. This will mean that the next time I connect my Ipod there will be a

  • ODI Log

    Hi, Where can i find the name of the user who executes a particular interface in ODI?? Thanks, Parag