This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage." Watch "JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage." New topic
Author

JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage.

willie wright
Greenhorn

Joined: Feb 18, 2010
Posts: 6
Hi,

I am having trouble learning how to get attributes from nodes and adding them to a documentbuilder object and making it available to display on the webpage. I am using results from Solr with Java and XML. (I'm new to Java but I'm good with JavaScript and JQuery.)

With this app I am having problems getting numFound from the XML response and showing it on the webpage. Here's an example of the XML response from Solr:





I really appreciate your assistance. Here's the code I'm working with:




Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 787

UseCodeTags because it will be easier to read your code.


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It'd be easier if you helped us know where to look in the code, posted only the most-relevant sections, etc. 650+ lines of code is a lot to look over to find something so specific.
willie wright
Greenhorn

Joined: Feb 18, 2010
Posts: 6
Hi, I have edited this post to be shorter. Installing a Java IDE helped.

I think I'm on the right track to a solution here. I just need some help putting it all together. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage.
 
Similar Threads
XML Parse
DocumentBuilder.parse not working for String input
Getting the arraylist through session
Sending requests in xml
How to parse this xml response from server -- tag Data1 is repeating itself?