Results 1 to 2 of 2
  1. #1
    renjan is offline Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0

    Default 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?

  2. #2
    levent Guest

    Default

    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!

Similar Threads

  1. Eclipse with VERY LARGE source trees
    By wyrickre in forum Eclipse
    Replies: 0
    Last Post: 02-01-2008, 03:23 AM
  2. nodes in java netowork
    By ahsan in forum Advanced Java
    Replies: 0
    Last Post: 12-26-2007, 04:11 PM
  3. nodes in java
    By ahsan in forum New To Java
    Replies: 0
    Last Post: 12-26-2007, 04:09 PM
  4. Query with 1 record vs. multiple records
    By anderma8 in forum JDBC
    Replies: 5
    Last Post: 07-10-2007, 12:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •