Value of the node does not get updated!

Posted on 2011-10-11
Last Modified: 2012-08-13
This statement simply would not update the value of the node in question!  Could you please tell me why this is the case or if I'm doing something wrong here?!?

list.item(i).setNodeValue(temp.substring(temp.indexOf("\"")+1, temp.lastIndexOf("\"")));

Question by:snajalm
    LVL 86

    Expert Comment

    Could you please post value of the following, where you're trying to make the change?

    Open in new window


    Author Comment

    Here are the two System.out commands,

    System.out.println(temp.substring(temp.indexOf("\"")+1, temp.lastIndexOf("\"")));
    Default Group

    textid="Default Group"

    LVL 86

    Accepted Solution

    The thing is, your code assumes the list is writable. That possibly is not the case. Is it your intention to update the node(s) in a document?

    Author Closing Comment

    It still have difficulty with this question.  Changed my approach in my actual code!
    LVL 86

    Expert Comment


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now