Skip to content

how to read the subchilds from a XML file using JSP?

this is my XML file:
<prog>
<name>M</name>
<child>
<name>CM</name>
<subchild>
<name>SM</name>
</subchild>
</child>
</prog>

All i need now, is to fetch the value "SM" alone from the XML either using java or JSP. JSP wud be a better choice. Please someone help me on this !!

Thanks and Regards.
i want the procedure to be generic with no hard coded string values for validation.

87 Comments

  1. Germann A wrote:

    Look up Java JAX(B) and/or Java DOM (parser)

    Monday, June 28, 2010 at 4:23 am | Permalink
  2. Simply a smiling visitor here to express the love (:, btw great style.

    Thursday, November 17, 2011 at 3:49 pm | Permalink
  3. Greetings from Idaho! I’m bored to tears at work so I decided to check out your site on my iphone during lunch break. I love the info you present here and can’t wait to take a look when I get home. I’m shocked at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyways, awesome blog!

    Sunday, December 4, 2011 at 7:08 am | Permalink
  4. a3415665 wrote:

    I’ve said that least 3415665 times. The problem this like that is they are just too compilcated for the average bird, if you know what I mean

    Monday, December 5, 2011 at 9:27 am | Permalink
  5. You have an ideal site, nice graphics, movies, layout. That is definitely a must-see web site!

    Tuesday, December 6, 2011 at 6:05 am | Permalink
  6. Your home is valueble for me. Thanks!…

    Tuesday, December 6, 2011 at 11:24 am | Permalink
  7. amnesty wrote:

    This one is an inspiration personally to uncover out much more related to this subject. I need to confess your information prolonged my sentiments in addition to I am going to proper now take your feed to stay up to date on each coming blog posts you would possibly possibly create. You might be worthy of thanks for a job completely performed!

    Tuesday, December 6, 2011 at 11:42 am | Permalink
  8. read here wrote:

    Thanks for taking the time to discuss this, I feel strongly about it and love studying extra on this topic. If potential, as you gain expertise, would you thoughts updating your blog with additional information? It is extremely helpful for me.

    Tuesday, December 6, 2011 at 6:10 pm | Permalink
  9. I like your websites details! Undoubtedly an exquisite supply of information that is extraordinarily helpful. Cheers.

    Tuesday, December 6, 2011 at 6:58 pm | Permalink
  10. I have to admit that i typically get bored to learn the entire thing however i think you possibly can add some value. Bravo !

    Tuesday, December 6, 2011 at 7:17 pm | Permalink
  11. Hey there! Someone in my Myspace group shared this web site with us so I came to take a appear. I’m surely enjoying the data. I’m bookmarking and is going to be tweeting this to my followers! Superb weblog and outstanding style and style.

    Tuesday, December 6, 2011 at 10:29 pm | Permalink
  12. linkedin wrote:

    naturally like your website but you need to check the spelling on quite a few of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless I’ll surely come back again.

    Wednesday, December 7, 2011 at 7:20 pm | Permalink
  13. Thora Bushaw wrote:

    Hello, I do not normally publish comments on blogs, as I wish to learn only. But I find the article that you have written earlier has very insightful information, and I discover it very informational. Anyway, I am wondering whether or not you might be open for hyperlink trade, as I hope that we can agree on a mutual hyperlink change agreement. Hope to listen to a optimistic reply from you, and have a great day!

    Wednesday, December 7, 2011 at 9:02 pm | Permalink
  14. Hello! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no backup. Do you have any methods to protect against hackers?

    Wednesday, December 7, 2011 at 9:16 pm | Permalink
  15. I found your posting to be insightful! Thank you.

    Thursday, December 8, 2011 at 4:49 am | Permalink
  16. you’re really a good webmaster. The website loading speed is amazing. It seems that you’re doing any unique trick. In addition, The contents are masterpiece. you’ve done a wonderful job on this topic!

    Thursday, December 8, 2011 at 5:19 am | Permalink
  17. Hey webmaster I like your publish …. http://www.lifereader.com/psychics/clairvoyant_psychic

    Thursday, December 8, 2011 at 8:25 am | Permalink
  18. I have been browsing online more than 3 hours lately, but I by no means discovered any attention-grabbing article like yours. It is lovely worth enough for me. In my opinion, if all webmasters and bloggers made excellent content material as you did, the web will likely be a lot more helpful than ever before.

    Thursday, December 8, 2011 at 9:04 am | Permalink
  19. Pretty section of content. I just stumbled upon your site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Any way I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.

    Thursday, December 8, 2011 at 4:43 pm | Permalink
  20. Very good post and blog!

    Thursday, December 8, 2011 at 5:39 pm | Permalink
  21. link buiding wrote:

    Thanks for your write-up on the travel industry. I might also like to include that if your senior thinking of traveling, it is absolutely imperative that you buy traveling insurance for older persons. When traveling, older persons are at biggest risk being in need of a health-related emergency. Buying the right insurance cover package for the age group can look after your health and provide you with peace of mind.

    Friday, December 9, 2011 at 12:51 am | Permalink
  22. myślistwo wrote:

    It’s really a great and useful piece of info. I’m glad that you shared this useful information with us. Please keep us informed like this. Thanks for sharing.

    Friday, December 9, 2011 at 1:19 am | Permalink
  23. Hi! Someone in my Facebook group shared this website with us so I came to check it out. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers! Exceptional blog and fantastic design.

    Friday, December 9, 2011 at 2:34 am | Permalink
  24. I love what you guys are usually up too. Such clever work and exposure! Keep up the wonderful works guys I’ve included you guys to blogroll.

    Friday, December 9, 2011 at 3:35 am | Permalink
  25. My brother recommended I might like this blog. He was totally right. This post truly made my day. You cann’t imagine simply how much time I had spent for this information! Thanks!

    Friday, December 9, 2011 at 8:58 pm | Permalink
  26. LGE, Samy Vallu, Yaacob are all the same. … he will turn Penang over to BN, like his mentor Lim Chong Eu. Complain about this comment

    Friday, December 9, 2011 at 9:39 pm | Permalink
  27. Jonathan wrote:

    You ought to really think about working on growing this weblog into a serious authority in this market. You evidently have a grasp handle of the matters everyone seems to be looking for on this website anyways and you possibly can definitely even earn a buck or two off of some advertisements. I would discover following latest matters and elevating the amount of write ups you set up and I assure you’d start seeing some amazing targeted visitors in the near future. Just a thought, good luck in whatever you do!

    Friday, December 9, 2011 at 10:56 pm | Permalink
  28. I usually don’t post in Blogs however your weblog pressured me to, superb work.. beautiful … http://www.demo.getlisted.co.nz/pr-agencies-auckland

    Friday, December 9, 2011 at 11:36 pm | Permalink
  29. I wanted to say your blog is quite good. I always like to hear a thing new about this simply because I have the similar blog in my Country on this subject so this help´s me a lot. I did a look for on the matter and observed a good amount of blogs but absolutely nothing like this.Thanks for sharing so a lot inside your blog.

    Saturday, December 10, 2011 at 7:52 am | Permalink
  30. directory wrote:

    Howdy very cool web site!! Guy .. Beautiful .. Amazing .. I will bookmark your website and take the feeds also…I’m glad to find numerous helpful information here in the put up, we’d like develop extra strategies in this regard, thanks for sharing.

    Saturday, December 10, 2011 at 3:03 pm | Permalink
  31. Uk directory wrote:

    I think this is one of the most significant information for me. And i am glad reading your article. But want to remark on few general things, The web site style is perfect, the articles is really nice : D. Good job, cheers

    Saturday, December 10, 2011 at 5:03 pm | Permalink
  32. catering wrote:

    Hello there, I found your site via Google while searching for a related topic, your web site came up, it looks great. I have bookmarked it in my google bookmarks.

    Saturday, December 10, 2011 at 8:37 pm | Permalink
  33. Hey very nice site!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also…I am happy to find so many useful information here in the post, we need work out more strategies in this regard, thanks for sharing. . . . . .

    Sunday, December 11, 2011 at 12:45 am | Permalink
  34. Awesome job on this post.

    Sunday, December 11, 2011 at 12:52 am | Permalink
  35. This actually answered the downside, thanks!

    Sunday, December 11, 2011 at 1:31 am | Permalink
  36. lamp post wrote:

    I was very pleased to find this website. I wanted to thank you for your time for this excellent post!!

    Sunday, December 11, 2011 at 2:16 am | Permalink
  37. AKO wrote:

    Hi, I noticed a 3 of your interesting posted posts and needed to ask if you can be thinking about reciprocal pages? Group have weblog about alexis texas ass! Anyway, in my language, there should not much good supply like this.

    Sunday, December 11, 2011 at 4:46 am | Permalink
  38. I wish to show my thanks to this writer just for bailing me out of such a challenge. After browsing through the internet and finding strategies which are not pleasant, I assumed my life was gone. Living without the solutions to the issues you’ve resolved through your short post is a serious case, and the kind which could have in a negative way damaged my career if I hadn’t noticed your blog. Your actual training and kindness in touching a lot of things was invaluable. I don’t know what I would have done if I hadn’t discovered such a step like this. I can at this time relish my future. Thanks very much for this reliable and sensible guide. I will not be reluctant to recommend your web sites to any person who should receive guidelines on this subject.

    Sunday, December 11, 2011 at 5:56 am | Permalink
  39. This design is wicked! You most certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

    Sunday, December 11, 2011 at 8:06 am | Permalink
  40. uggs wrote:

    It is difficult to get knowledgeable individuals within this subject, however, you appear to be guess what happens you??e dealing with! Thanks

    Sunday, December 11, 2011 at 9:13 am | Permalink
  41. You should take part in a contest for one of the best blogs on the web. I will recommend this site!

    Sunday, December 11, 2011 at 11:00 am | Permalink
  42. Thanks a lot for this article;)

    Sunday, December 11, 2011 at 1:56 pm | Permalink
  43. I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think.

    Sunday, December 11, 2011 at 8:31 pm | Permalink
  44. This is the best web blog I have read.

    Sunday, December 11, 2011 at 10:00 pm | Permalink
  45. I wish to express appreciation to the writer for this wonderful post.

    Monday, December 12, 2011 at 12:06 am | Permalink
  46. I wish to express appreciation to the writer for this wonderful post.

    Monday, December 12, 2011 at 12:37 am | Permalink
  47. A powerful share, I just given this onto a colleague who was doing a little similar evaluation on this. He in reality purchased me breakfast because I discovered it for him.. smile.

    Monday, December 12, 2011 at 12:38 am | Permalink
  48. You definitely know how to bring an issue to light and make it important. I cant believe youre not more popular because you definitely have the gift.

    Monday, December 12, 2011 at 12:41 am | Permalink
  49. cupcakes wrote:

    I truly appreciate your work , Great post.

    Monday, December 12, 2011 at 4:06 am | Permalink
  50. Kurtis Rog wrote:

    nice article, i just finished bookmarking it for later. i would like to read on future articles. how do i set the rss reader again? thanks so much!

    Monday, December 12, 2011 at 9:31 am | Permalink
  51. http://www.visit-x-net.com/videos/PetiiteTeens.php

    Monday, December 12, 2011 at 10:00 am | Permalink
  52. Am i the sole one whom is experiencing the comment column collapsed? primarily the save comment button is screwed up and even previewing option is not performing. is it my browser problem or anything with this webpage?

    Monday, December 12, 2011 at 12:13 pm | Permalink
  53. It is highly helpful for me. Huge thumbs up for this blog post!

    Monday, December 12, 2011 at 12:48 pm | Permalink
  54. Woah! I’m really enjoying the template/theme of this blog. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between user friendliness and visual appeal. I must say you have done a very good job with this. In addition, the blog loads super quick for me on Internet explorer. Excellent Blog!

    Monday, December 12, 2011 at 1:22 pm | Permalink
  55. Hai bisogno di scaricare musica gratis?! Visita questo sito web. Cerchi musica gratis su internet?

    Monday, December 12, 2011 at 2:47 pm | Permalink
  56. You should take part in a contest for one of the best blogs on the web. I will recommend this site!

    Monday, December 12, 2011 at 3:07 pm | Permalink
  57. very nice post, i certainly love this website, keep on it

    Monday, December 12, 2011 at 3:23 pm | Permalink
  58. you have a great blog here! would you like to make some invite posts on my blog?

    Monday, December 12, 2011 at 3:25 pm | Permalink
  59. It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks

    Monday, December 12, 2011 at 3:34 pm | Permalink
  60. I like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon.

    Monday, December 12, 2011 at 3:56 pm | Permalink
  61. sleigh beds wrote:

    You made some respectable points there. I searched on the internet for the difficulty and found most individuals will associate with with your website.

    Monday, December 12, 2011 at 4:14 pm | Permalink
  62. There may be a bundle to know about this. You made nice points also.

    Monday, December 12, 2011 at 4:18 pm | Permalink
  63. This was a great post, thanks for the info.

    Monday, December 12, 2011 at 4:33 pm | Permalink
  64. very nice post, i certainly love this website, keep on it

    Monday, December 12, 2011 at 4:40 pm | Permalink
  65. pigeon coop wrote:

    Aw, this was a really nice post. In thought I would like to write like this – taking time and precise effort to make a very good article is very rare…

    Monday, December 12, 2011 at 5:31 pm | Permalink
  66. This was a really nice post.

    Monday, December 12, 2011 at 5:32 pm | Permalink
  67. I am often blogging and i really appreciate your content. The article has really peaked my interest. I am going to bookmark your site and keep checking for new information.

    Monday, December 12, 2011 at 5:57 pm | Permalink
  68. A powerful share, I just given this onto a colleague who was doing a little bit similar analysis on this. He actually bought me breakfast because I found it for him.. smile.

    Monday, December 12, 2011 at 7:44 pm | Permalink
  69. Hi, I just discovered your weblog via Bing. Your viewpoint is truly relevant to my life right now, and I’m really happy I discovered your website.

    Monday, December 12, 2011 at 8:30 pm | Permalink
  70. Youre so awesome, man! I cant believe I missed this blog for so long. Its just great stuff all round. Your design, man…too amazing! I cant wait to read what youve got next. I love everything that youre saying and want more, more, MORE! Keep this up, man! Its just too good.

    Monday, December 12, 2011 at 8:57 pm | Permalink
  71. Normally I don’t learn article on blogs, but I would like to say that this write-up very compelled me to take a look at and do it! Your writing style has been surprised me. Thanks, quite great article.

    Monday, December 12, 2011 at 9:20 pm | Permalink
  72. Admiring the time and effort you put into your website and in depth information you present. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed material. Fantastic read! I’ve saved your site and I’m including your RSS feeds to my Google account.

    Tuesday, December 13, 2011 at 1:21 am | Permalink
  73. You should take part in a contest for one of the best blogs on the web. I will recommend this web site!

    Tuesday, December 13, 2011 at 9:45 am | Permalink
  74. Hello my family member! I wish to say that this post is amazing, nice written and include approximately all vital infos. I¡¦d like to see extra posts like this .

    Tuesday, December 13, 2011 at 10:11 am | Permalink
  75. I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently. I am quite sure I’ll learn many new stuff right here! Best of luck for the next!

    Tuesday, December 13, 2011 at 1:05 pm | Permalink
  76. i use search engines any time i would like to perform several romance language interpretation, this is useful for basic romance language interpretation.,

    Tuesday, December 13, 2011 at 4:41 pm | Permalink
  77. Good blog! I really love how it is easy on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your feed which must do the trick! Have a great day!

    Tuesday, December 13, 2011 at 5:30 pm | Permalink
  78. Please let me know if you’re looking for a author for your blog. You have some really great articles and I believe I would be a good asset. If you ever want to take some of the load off, I’d really like to write some content for your blog in exchange for a link back to mine. Please send me an email if interested. Cheers!

    Tuesday, December 13, 2011 at 9:03 pm | Permalink
  79. backlinks wrote:

    Most beneficial backlinks links service – get Best rankings together with enormous traffic using our highly effective backlinks deals. Most powerful & inexpensive back-links service of all time! backlinksGod.com – internet marketing – inlinks – online marketing – search engine marketing tactics – social media

    Tuesday, December 13, 2011 at 11:43 pm | Permalink
  80. I don’t even know how I ended up here, but I thought this post was good. I don’t know who you are but certainly you are going to a famous blogger if you are not already ;) Cheers!

    Wednesday, December 14, 2011 at 6:13 am | Permalink
  81. I really like that. You touched my heart!

    Wednesday, December 14, 2011 at 3:47 pm | Permalink
  82. This was a great post, thanks for the info.

    Wednesday, December 14, 2011 at 3:53 pm | Permalink
  83. I’m experiencing a problem with your rss feed . Don’t know why I am not able to subscribe to it. Is there anyone getting identical rss problem? Anyone who is aware of kindly respond. Thanks

    Wednesday, December 14, 2011 at 3:53 pm | Permalink
  84. I was very pleased to find this website. I wanted to thank you for your time for this wonderful post!! I definitely enjoy reading it and I have you bookmarked to check out new stuff you blog post.

    Wednesday, December 14, 2011 at 4:27 pm | Permalink
  85. I’m impressed, I must say.

    Wednesday, December 14, 2011 at 4:31 pm | Permalink
  86. I am often blogging and i really appreciate your content. The article has really peaked my interest. I am going to bookmark your site and keep checking for new information.

    Wednesday, December 14, 2011 at 4:35 pm | Permalink
  87. I’m experiencing a situation with your rss feed . Don’t know why I am not able to subscribe to it. Is there anyone getting similar rss problem? Anybody who knows kindly respond. Thanks

    Wednesday, December 14, 2011 at 4:48 pm | Permalink

Post a Comment

Your email is never published nor shared.