Results 1 to 2 of 2
  1. #1
    rstar7 is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default Parsing XML File

    Hi, I new here ;-)

    Below is a sample xml file that I need to parse, I would like to build a JTree from having some Object structure.

    Can any one suggest me how to do in easy way ?
    thanks
    rstar7,

    here is a my xml file:
    Java Code:
    <objects>
    	<object class="javaclass" name="window">
    		<bleble></bleble>
    		<childobject>
    			<object class="javaclass" name="window">
    				<bleble></bleble>
    				<childobject />
    			</object>
    			<object class="javaclass" name="window">
    				<bleble></bleble>
    				<childobject>
    					<object class="javaclass" name="window">
    						<bleble></bleble>
    						<childobject>
    							<object class="javaclass" name="window">
    								<bleble></bleble>
    								<childobject />
    							</object>
    							<object class="javaclass" name="window">
    								<bleble></bleble>
    								<childobject />
    							</object>
    			   			</childobject>
    					</object>
    				</childobject>
    			</object>
    	   </childobject>
    	</object>
    </objects>

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. xml parsing
    By gaurav65176 in forum XML
    Replies: 5
    Last Post: 11-12-2008, 12:07 PM
  2. Replies: 6
    Last Post: 05-14-2008, 05:04 AM
  3. Parsing URL in Java
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 09:14 PM
  4. Using SAXParserFactory for parsing XML
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-20-2008, 10:42 AM
  5. Parsing URL
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-26-2007, 11:16 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
  •