Results 1 to 5 of 5
Thread: How to dynamic read XML
- 03-01-2012, 03:52 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 16
- Rep Power
- 0
How to dynamic read XML
I have this XML:
And I need on the output this:XML Code:<?xml version="1.0" encoding="UTF-8" standalone="no"?> <root> <file change="2010" name="Main" type="folder"> <file change="Januar" name="Thomas" type="folder"> <file change="10" name="Dan" type="file"/> <file change="20" name="Thomas" type="file"/> </file> <file change="Februar" name="Thomas" type="folder"> <file change="11" name="Jaro" type="file"/> <file change="29" name="Thomas" type="folder"> <file change="29.1" name="Thomas" type="file"/> <file change="29.2" name="Thomas" type="file"/> </file> </file> </file> </root>
2010-Main-Folder
--------
Januar
-file: 10,Dan,file
-file: 20,Thomas,file
Februar
-file: 11,Dan,file
-file: 29,Thomas,folder
--file: 29.1,Thomas,file
--file: 29.2,Thomas,file
Can we help me? And count of child in parent can be always different. E.g.
-file
--file
---file
----file ...
- 03-03-2012, 01:39 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: How to dynamic read XML
Did you try anything on that? This is a forum, not a place to get done your homework done. Show your effort first of all here.
- 03-03-2012, 01:57 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 16
- Rep Power
- 0
Re: How to dynamic read XML
Yes, I tried it, but i didn't want here post 10 bad examples.
-
Re: How to dynamic read XML
- 03-04-2012, 03:47 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: How to dynamic read XML
Without knowing that what you have done how can we comment on it. To do the same thing there are thousands of ways and we don't know your approach. So as Fubarable says post the most bad example you have work around and we can comment on it. Don't forget to post error messages if you have any.
Similar Threads
-
How to read currency money from Notpade instead of read all information from web
By Albert050 in forum NetBeansReplies: 0Last Post: 11-15-2011, 09:13 PM -
Dynamic Casting
By Thorton in forum Advanced JavaReplies: 30Last Post: 01-12-2010, 09:01 PM -
Dynamic GUI
By ike2u in forum New To JavaReplies: 4Last Post: 08-08-2009, 02:50 AM -
java.io.IOException: Unable to read entire block; 493 bytes read before EOF; expected
By kushagra in forum New To JavaReplies: 5Last Post: 10-17-2008, 02:13 PM -
Help for dynamic classes
By Bender in forum Advanced JavaReplies: 1Last Post: 12-19-2007, 08:46 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks