File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes xml output problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "xml output problem" Watch "xml output problem" New topic
Author

xml output problem

katerina tsilibari
Greenhorn

Joined: May 24, 2010
Posts: 1

hello there i'm new in java and i have this problem to deal with
(in this part i do the parsing for my xml,i use to 2Dtables in oreder to get the regex and the url of each city)
if(reg_is.child("end").content()=="")
error += "\tNo suffix reg.exp. given.\n";
else
suffix = HtmlMethods.removeBreaks(replaceVariables(reg_is.child("end").content()));

}
else{
poleis[k][0]= HtmlMethods.removeBreaks(reg_is.string("name"));
poleis[k][1] = HtmlMethods.removeBreaks(replaceVariables(reg_is.child("start").content()));
poleis[k][2] = HtmlMethods.removeBreaks(replaceVariables(reg_is.child("end").content()));
k++;
}
}
}

for(Xml polh_is:fetchsite.child("site").child("poleis").children("polh")){ //url theloume mia for akoma
if((polh_is.string("name")=="")||(polh_is.content()==""))//attribute
error += "Error in polh: name is - " + polh_is.string("name") + " with url - " + polh_is.content() + " -.\n";
else
for(int j=0; j<citylink.length; j++){
citylink[j][0]=HtmlMethods.removeBreaks(polh_is.string("name"));
citylink[j][1]=HtmlMethods.removeBreaks(polh_is.string("with url -"+polh_is.content() +"-.\n"));

}
}
in this part i do the parsing from my xml and because of the fact that i don't have a specific number of cities i should create a second 2D table in order to save the url of each new city i add in my xml so i don't no if this is right because my project can't be run it makes no output because i haven't finished that (this is my other problem)
my project is about gathering weather predictions from different sites and put them in one xml for each city so i'm very stucked!!i ;; be very thankfull if anyone could help>
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.

And welcome to JavaRanch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml output problem
 
Similar Threads
Loops
Pop up calendar Problem
Can't Find the bug...
Thread Concept
Page section does not update after call of a4j:support in IE 9