chiark / gitweb /
pctb upload: actually look at the right XML tag for the commod maps!
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 27 Aug 2010 22:23:31 +0000 (23:23 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 27 Aug 2010 22:23:31 +0000 (23:23 +0100)
src/com/tedpearson/ypp/market/MarketUploader.java

index 84ca983..daafc10 100644 (file)
@@ -597,7 +597,7 @@ public class MarketUploader implements TopLevelWindowListener, GUIInitializedLis
                        //System.out.println(xml);
                        Reader reader = new CharArrayReader(xml.toCharArray());
                        Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(reader));
-                       NodeList maps = d.getElementsByTagName("c");
+                       NodeList maps = d.getElementsByTagName("CommodMap");
                        for(int i=0;i<maps.getLength();i++) {
                                NodeList content = maps.item(i).getChildNodes();
                                Integer num = Integer.parseInt(content.item(1).getTextContent());