Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2007, 02:29 PM
Member
 
Join Date: Jul 2007
Posts: 2
renjan is on a distinguished road
How to extract each record from a large XML doc. which contain multiple nodes
I want a sample code to get each record from a large xml document for parsing the data in it
Example for the XML doc is given below


<document>address
<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record>
</data></record>
</data></record>
</data></record>
</data></record>

<record>1
<data>FGT-MGT-PSS1
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.180"</data></record>
and so on..........



For parsing I want the first record only. Means this much

<record>0
<data>"11.97.23.174/32"
<record>address <data>
<record>address <data>
<record>subnet <data>
<record>ip <data>"10.97.23.174"</data></record>
</data></record>
</data></record>
</data></record>
</data></record>

How to extract the records one by one?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 08:28 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Wrong forum! I am moving this post to the correct forum for this time. Please select one forum for your next post and make sure it is the correct forum. You can also get more replies if you post it to the correct forum!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse with VERY LARGE source trees wyrickre Eclipse 0 02-01-2008 03:23 AM
nodes in java netowork ahsan Advanced Java 0 12-26-2007 04:11 PM
nodes in java ahsan New To Java 0 12-26-2007 04:09 PM
Query with 1 record vs. multiple records anderma8 Database 5 07-10-2007 12:33 AM


All times are GMT +3. The time now is 02:45 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org