01-14-2008, 12:53 AM | #481 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
__________________
I don't have a solution, but I admire the problem. |
|
01-14-2008, 02:04 AM | #482 |
Initiate
Join Date: Jul 2007
Location: In That Hole Behind You
Posts: 174
|
RRRRRRRRRRAAAAAAWRRRRRRRRRRRRRRR.....
I feel this conversation is getting to boring (or I can't understand it) for me.......
__________________
kaelee |
01-14-2008, 04:58 AM | #483 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
__________________
I don't have a solution, but I admire the problem. |
|
01-14-2008, 05:22 AM | #484 | |
Initiate
Join Date: Jul 2007
Location: In That Hole Behind You
Posts: 174
|
Quote:
__________________
kaelee |
|
01-14-2008, 05:31 AM | #485 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
__________________
I don't have a solution, but I admire the problem. |
|
01-14-2008, 07:14 AM | #486 | |
Initiate
Join Date: Jul 2007
Location: In That Hole Behind You
Posts: 174
|
Quote:
__________________
kaelee |
|
01-14-2008, 07:36 AM | #487 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
Look: Code:
public static Vector questData(String id){ Vector result = new Vector(); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docbuild = factory.newDocumentBuilder(); Document doc = docbuild.parse("quests.xml"); Element root = doc.getDocumentElement(); NodeList quests = root.getElementsByTagName("quest"); for(int x=0; x < quests.getLength(); x++){ Element quest = (Element)quests.item(x); if(id.equals(quest.getAttribute("id"))){ result.addElement("tag:name"); NodeList nombre = quest.getElementsByTagName("nombre"); result.addElement(nombre.item(0).getTextContent()); result.addElement("tag:description"); NodeList descripcion = quest.getElementsByTagName("descripcion"); result.addElement(descripcion.item(0).getTextContent()); NodeList npcs = quest.getElementsByTagName("npc"); result.addElement("tag:npcs"); for (int z = 0 ; z < npcs.getLength(); z++){ result.addElement(npcs.item(z).getTextContent()); } result.addElement("tag:rewards"); NodeList recompensas = quest.getElementsByTagName("recompensa"); for (int z = 0 ; z < recompensas.getLength(); z++){ result.addElement(recompensas.item(z).getTextContent()); } break; } } } catch (SAXException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } catch (ParserConfigurationException ex) { ex.printStackTrace(); } return result; } Caffeine is killing meeeeee!!!! Too much sugar too...
__________________
I don't have a solution, but I admire the problem. |
|
01-14-2008, 08:54 AM | #488 | |
Initiate
Join Date: Jul 2007
Location: In That Hole Behind You
Posts: 174
|
Quote:
good luck with that.
__________________
kaelee |
|
01-14-2008, 09:47 AM | #489 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
Thanks!!! I think I need it... This is just an example of what the next rolgps is going to be. It handles files in a strange way, but this time the custom points you add to the database won't get ereased when you update the app...
__________________
I don't have a solution, but I admire the problem. |
|
01-14-2008, 10:04 AM | #490 | |
Initiate
Join Date: Jul 2007
Location: In That Hole Behind You
Posts: 174
|
Quote:
...... do you not remember my Iq?
__________________
kaelee |
|
|
|