Problems to make the text content of the text node?

Hi all

I am currently a bit puzzled why one of the simplest parts of my code does not work. I try to get the text of a text node content (XmlValue.getNodeType () returns correctly TEXT_NODE) in Java, but what I get is always the entire document extracted from the base text (any text node I see in the entire document!). Is this expected behavior? The method I use to retrieve the data is XmlValue.getNodeValue (), but playing with other functions show no success either.

So my question is: what am I doing wrong here? I hope someone here can help me with my stupid problem :-)

Thanks for your help,
Alex

Hi Alex,

Maybe you need to use:

String query = "for $a in collection('mpeg7samples.dbxml')/* return $a";

NOT the one you use:

String query = "for $a in collection('mpeg7samples.dbxml') return $a";

The former expression would force value of return as "collection () / doc (). That's what you expect.

Thank you
Rucong

Tags: Database

Similar Questions

  • make the tree nodes "BOLD"

    Hello

    I have a created a structure tree
    -one
    -aa
    -aaa
    -aaa
    b
    -bb
    -bbb
    -cc
    -ccc
    I followed the steps given in the message
    make the tree nodes that are engaged in "BOLD"
    (a)
    Now if I expand the root node, then all of the child nodes automatically become "BOLD", that is if I select 'a '.
    all nodes below becomes "BOLD".
    -a
    -aa *.
    -aaa
    -aaa
    b
    -bb
    -bbb
    -cc
    -ccc

    How can I avoid this problem what I want is the selection if 'a' only 'a' should be bold not her children
    now when I select 'aa' or 'bb' only her parents must be "BOLD" not his children.

    (b)
    My second problem is that while the page loads for the first time his having the whole tree is in bold how prevent this from happening.

    If the node selected for that tree is P100_SELECTED_NODE_ITEM

    Add the following code to the onload code ("run when the page loads" article on page or dynamic action shot page load)

      selected_node= $('#'+$v('P100_SELECTED_NODE_ITEM')).children('a:first');
      selected_node.parents('li').each( function(){
       $(this).children('a:first').css('font-weight','bold');
       });
    
  • problems to make the sound of a VOB file in the first

    I have a few images that gave me and its in a VOB file. Tried to convert it into different files, mainly to mp4 with the brake hand, who has worked for most of the sequence, but these last 2 clips, I can not get her anything! I tried different formats of files in media encoding. He plays sound (such as a mp4) when I open it in quicktime or VLC, but it shows no sound at first. What can I do?

    in fact, I solved this problem by changing the name of the file to .mpg and then restarted first... voila.

  • make the tree nodes that are engaged in "BOLD"

    Hi friends,

    I'm putting a few settings of 'style' as the bold or italics
    for tree nodes that are clicked. For example in the sub tree if you click node a31 , this node is parent node ( a3 ) and the parent node ( a ) A3 will be displayed in bold
    *a*..|-a1
       |- a2
       |- *a3*...|- *a31*
       |- a4      |-a32
       |- a5      |-a33
       |- a6
       |- a7
    Any input will be appreciated.

    Kind regards
    Jyothi

    Published by: Jyothi on January 9, 2011 03:43

    Jyothi,
    You have not used the ID of node item in the code. The element that stores the tree node in your case is P19_EXMPLE and if you need to change the code that is provided in an appropriate way.

    You must change the * $v ('') * to * $v(P19_EXMPLE') * If you use my code
    or * $v ('P19_EXAMPLE') * to * $v(P19_EXMPLE') * If you use Andy.

  • Problems to make the request to the media to work

    HI, having problems with a media query - part text on my page is too great on a smartphone screen.  I would like to reduce it and have used the following in my css, but its no do not influence:

    @media only screen and (max-width: 767px) {}

    {#primarywide}

    font size: 50%;

    }

    }

    You can see what's wrong with it?  The page is the home of Lene Lovich at Stereo Society

    The part I have to reduce is the bit above the horizontal menu, but for now, I'm trying to apply the query to the #primarywide div, which includes most of the content of the page.  I'll create a new div for this bit if I can get the application to work.

    I also realize that the menus are very small, but for now I just want to get this part of the sorted page

    Thank you

    Nothing else is sensitive on this page?

    Make a sensitive page, you must add the meta tag below to pagessection.

    I don't know whether or not your media query will work as I've never tried a combination of requests media width fixed/reagents.

  • problems to make the internet connection on computer starts

    That's my problem... I turn on my laptop, no internet, I have to click on the Start button go to administrative tools, open services find wirless zero configuration and turn it on. then close all windows. I go to the blue toolbar at the bottom of the screen and then click the only Wi - Fi computer, open it, find the check box "use windows to configure the network settings" click this box close this window. Then, I have internet. Anyone know what is happening?

    Hi jmsmom2007,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    3. have you anythird party network or Wireless Manager software installed on the computer?

    If you have any third-party network or Manager software installed on the computer wireless, I would say that you uninstall and check if the problem persists.

    If you don't have such software installed then I would suggest that you perform the clean boot procedure and check if it works.

    It is possible that some third-party programs installed on the computer is causing the problem.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Also, make sure that the wireless zero configuration service is enabled when you follow the steps in the clean boot procedure.

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • A few weeks ago, I started having problems to make the links and buttons to work on various Web sites. I tried the steps help without success. What gives?

    When I go to some web sites, I can't some of their links or buttons to work. For example, I can't "vote" and see the results on the MSN home page or go to my account on the homepage of Ancestry.com. Some links work, but others do not. They do not work in Internet Explorer either. I tried all suggestions for plug-ins and extensions that gives Support of Mozilla. I have run Windows 8.1, have Java as well as JavaScript. I tried to understand what is happening. Any help would be appreciated!

    Ronmissy2008, it's immediate. I'm sorry to hear about you, not being able to access some links, or use the buttons to vote on issues or read articles. " First, I call your Internet service provider and have them check your router '. There is a possibility that it may need an update of the firmware, because you have upgraded to Windows 8.1. Firmware is integrated software that implements network protocols and security for this specific model of hardware device. More Wi-wired routers and are designed to perform a firmware upgrade process. The manufacturer will be able to make improvements to your router. When I arrived AT & T U-verse, my router updated its firmware that took a few minutes to perform. Click on the link for more information on firmware updates:

    (http://compnetworking.about.com/od/wifihomenetworking/qt/firmwareupgrade.htm)

    If your service provider is done with the update of the firmware on the router, then try to update your Windows 8.1 software.

    1.) Open Windows Update by sliding into the right edge of the screen (or, if you are using a mouse, pointing to the corner bottom right of the screen, move the mouse upward), touching or clicking on settings, tapping or clicking on PC, change settings and then typing or clicking on update and recovery.

    TAP 2.) or click on choose how to install the updates.

    3.) under important updates, choose the option you want.

    4.) under recommended updates, select the Give me recommended updates the same way I receive important updates check box, and then click on apply.

    (http://windows.microsoft.com/en-us/windows-8/windows-update-faq)

    That's all I could think of at this moment. No doubt call your Internet service provider and let them know you have upgraded to Windows 8.1 and your router needs to be checked. In addition, ask them to update the firmware, if necessary. Then run Windows update. I'll do more research on this issue. Let me know what results you receive after completing the firmware update and windows update.

  • Problems to make the emails from hotmail

    Hello

    I have emails to my live.co and hotmail.co.uk account problem account, I use 3 different computers at home, 1 Windows 7 and 2 on xp to get online, I use a dongle for windows. The only computer I can get my email with is the old computer with xp, one with xp has recently had a new hard drive, and since then, I have the same problem on windows 7, at work I have windows 7 and you can get my email OK, any ideas would be greatly received

    Thanks Skipperglen

    Thank you for visiting the Microsoft answers community site!

    The question you have posted is related to Windows Live Hotmail and would be better suited in the Windows Live Solution Center.

    Please visit the link below to find a community that will support what ask you

    http://windowslivehelp.com/forums.aspx?ProductID=1

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • A lot of problems to make the ISO from Microsoft

    Hi all!

    I have so many problems trying to get an ISO of Microsoft.com. Sorry for the post on the problems of site here, but the site was so bad, that it was the only place that I could think to actually submit the problem.

    Purpose: Download clean/self/authentic/official ISO of Windows 7 Home Premium x 64.

    I have the license key (HP OEM sticker and the internal license key, I found in the registry).

    Expected solution: http://www.microsoft.com/en-us/software-recovery.

    I have the OEM entry license and tells me to contact my manufacturer of the software. HP simply redirects to an old Microsoft link to download the ISO. The link goes down, and I get redirected to http://www.microsoft.com/en-us/software-recovery. Cycle with no end, no solution.

    I enter the license key that I find in my registry. I get an error of 715-123130 system (I think simply means denied license) and asks me to go to the Microsoft Support contact page we.

    EXPECTED support: https://support.microsoft.com/ContactUs

    I chose the configuration and Installation support. I select Windows as my product and Windows 7 as my version. "Sorry, the page you requested is not available."

    I choose technical support. I select Windows as my product and Windows 7 as my version. "Sorry, the page you requested is not available."

    How can I get a clean/self/authentic/official ISO of Windows 7 Home Premium x 64 with my HP Windows 7 Home Premium x 64 legitimate license?

    Thank you

    Rex

    Rex

    Microsoft has changed the way to get the ISO and you must contact the manufacturer of the computer for all OEMS.  Your key is legitimate but OEM.  OEM means original OEM.  This is where you need to get the ISO.  HP will provide you with a dvd for a minimal cost, but your best bet is to CALL them not to try and work through the maze online.

  • Problems to make the functional replacement MXPE

    Hello

    I'm not normally coming to the internet to complain, but I'm getting pretty fed up at the moment with my experience of repair.  I have the extended warranty on my MXPE coverage.

    A few weeks ago, I started to have problems with display corruption (which would even appear in the display of the bike).  I would like to restart the phone and it would go to come back a day or two later.  I finally decided that I was annoyed that I would contact the repair group.  This is my phone that I paid for the Advanced Exchange (and they took the hold on my CC).

    I quickly got my replacement unit with all the customizations (color, message back, or even welcomed).  I was a very happy camper until I realized that the backlog was not fixed properly.  It kept popping up on the lower right.  I called Motorola again and told them what is happening.  They climbed through groups appropriate and out a prescription for another Advanced Exchange.  Renounced the Advanced Exchange this time, they took my CC again for another take.

    A few days later the second replacement appears.  SAME PROBLEM!  Instead of at the bottom right, is low to the left, but the behavior is the same.  The rear is not set correctly.  I can shoot down and there for a few minutes, but just POP back up.

    Last Thursday, I called Motorola again and this time I got a message from the rep that they need to check with the Bank to stock images and they will get back to me on Friday.  Friday comes around, and I do not have a call, so I called them at the end of the day Friday.  They said that they always stock the warehouse and will get back to me.  I get an email on Sunday morning, my case is closed and call them.  I give the floor and the guy said that he cannot give me any new information because the warehouse is actually closed and I need to call back Monday.  I remember on Monday and the representative said they have found now a unit in the warehouse and will be available there for me, I should get information tomorrow on the follow-up.

    Well, it's the end of Tuesday and I have no information.  I've now invested several hours in these phone calls, between being jerky around, lied to the and hold.  All I want is a functional unit that is not falling apart.  Collage a back properly seems no brainer for me, but now I have so very little faith that the repair group will send me a functional unit that remains in one piece.  I sent in my original, but I have still two replacements in my possession.

    I really hope there's a motorcycle autour rep who can help me.  I got several friends, family and coworkers on the bike as the result of which had been so far very positive experiences with my MXPE.

    Unfortunately, this will be the last Moto phone for me and last that I would recommend to others from this experience so I can't get what seems like a trivial problem like this sorted.

    My (latest) incident number is 161103-003923 if it's useful.

    I can understand you superm1 and I am really sorry to hear that. Let me look at your problem and will get back to you.

    Sincerely,

    Joy

    Motorola support

  • Problems to make the access rule for a NAT device work

    I am new to Cisco routers so light easy on me.

    Our company has just purchased a RV042G so that we can start using VPN for some of our sales representatives.  There is always a need to access the RDC to configure our WAN1 port access rule to the internal server.  However, it does not work.

    I have install this type of rule on Sonicwalls before, but I don't have much experience with Cisco.  I'm a bit confused as to why it doesn't work anymore.  Any advice would be great.

    Service = DRC (3389)

    Source port = WAN1

    Source IP = our static IP address

    Destination IP = 192.168.0.250.

    What I am doing wrong?

    Hello Eric,

    Looks like you got the first step made so fare. How access lists works on this devices is actually just control/allow certain traffic but does not in fact of NAT/port forwarding. What you need to do is then go into the setup and go under transfer. Next, you will create your port forwarding it. You click on service management again to set up which port you must sent (it may be already there for when you have configured your access list). Some of them should be similar on how you implemented in the access list, but if you want more information let me know and I can give more details.

    Hope that helps out.

    Thank you
    Clayton Sill

  • Problems to make the correct version in ESX 4 Update 1

    I've recently updated our environment vSphere 4 Update 1.  This iso is build 208167.  I used the Manager Update to apply all critical and non-critical updates available on all servers and vCenter (also v4 update 1) says: I'm on the build 244038 to all of my ESX servers.

    But if I connect via SSH and su root and run vmware - v it only shows 208167 as the build.  Y at - it a command or file I can watch him accurately reflects my current version?

    Thank you

    Vince

    Hello.

    See KB 1012514.

    Good luck!

  • Make the XML nodes

    I'm trying to get my XML document-specific information... Here is the info:

    < test >
    < UI > < /iu > 2000
    < amt > 125 < / amt >
    < dump > 0.2 < / dump >
    < > 3.2 hData < / hData >
    < hData > 16 < / hData >
    < > 8 hData < / hData >
    < UI > < /iu > 2000
    < amt > 125 < / amt >
    < dump > 0.3 < / dump >
    < > 4.8 hData < / hData >
    < hData > 16 < / hData >
    < > 8 hData < / hData >
    < / test >

    Here's the code in Flash:

    var myURLLoader:URLLoader = new URLLoader();
    var myURLRequest:URLRequest = new URLRequest ("dump.xml");
    myURLLoader.load (myURLRequest);
    myURLLoader.addEventListener (Event.COMPLETE, dataOK);
    function dataOK(myevent:Event):void {}
    var myXML:XML = new XML (myURLLoader.data);
    TF1. Text = myXML.hData [1];

    }

    He steps back a value of 16, that is correct.  But I want to be able to refer to a specific location, such as the second dump data and the 3rd entry here.  So I tried:

    TF1. Text = myXML.dump [1] .hData [2];

    He comes back with:

    TypeError: Error #1010: a term is undefined and has no properties.

    I gues I just need to know how to read the nodes that are above hData.

    Thank you.

    Dave

    hData nodes are not children of dump nodes.  use:

    myXML.hData [5]

  • BlackBerry Z10 backspace and return keys make the phone unusable

    Whenever I have try and try to make a correction using the BACKSPACE, the return key back does not stop and erase the entire message. Or if I hit the return key, is not just return to the next line, he returned several times to make an infinite number of new lines.

    Basically this problem which makes the text, email, emails, etc. useless - I can read things, but can not use the key on Board at all.

    I tried every setting I can find on the phone, nothing seems to fix this.

    What is the solution?

    Thanks for the suggestions. Type once is not always just delete a character, but she often starts removing repeatedly with nonstop until the field is empty. Changing the magnification does not seem to help, but by turning on 'off' in the keyboard screen seems to make it happen less often, but not completely. Pressing the button entry still produces endless returns. Hit the button Delete to the right and back also helps to key rather that hit.

    I hope an update will fix it.

  • graph of waveform of filling via the property node

    Hello

    I want to fill a graphic waveform spirit multiple waveforms by programming. This means, the graph is the main VI, and use it in an another vi reference chart. Firstly I have to solve the correct reference waveform curve, then I use the "Value" property node The value must be the value of type variant, should be no problem. But the property node works only with table 1 d and not 2D.

    How can I fill it with table 2D programmatically? I use LabView 8.6, see attached example.

    Mitulatbati

    Hi mitulabati,

    You must specify the data type that you will be feeding to your chart, the default type is an array of 1 D.

    To do this, connect an empty 2D array directly on the graph, it will change the input to your waveform parameters and now the property node will accept this new data type.

    Hope this helps

Maybe you are looking for