Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Parsing  RSS feed

 
david garcia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, i am having some problems with a parsing.

this is my xml file



This is the code that parses the xml file:



Cause of the while loop i can�t create the object passing all those parameters Config config = new Config(name, path, size, date, pattern, period, pathzip).

What i want to do exactly is:
List list = new ArrayList();
for each project node{
get all the child nodes
create a new Config object with all those values
add the config object to the list
}


Any help? i am stuck at this...
 
david garcia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, the parameters i have to pass to the constructor are:
name, path, sizeHigher, sizeSmaller, fechaFrom, fechaUntil, pattern, period, pathZip.

Sorry for the mistake
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!