Learn how to a build a cloud-first strategyRegister Now


Value of the node does not get updated!

Posted on 2011-10-11
Medium Priority
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
  • 3
  • 2
LVL 86

Expert Comment

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

Open in new window


Author Comment

ID: 36953348
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

CEHJ earned 900 total points
ID: 36954065
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

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

Expert Comment

ID: 37044302

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month20 days, 23 hours left to enroll

810 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