X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=src%2Fde%2Fj32%2Fpimstuff%2Fconduit%2FFritzAddressbookImporter.java;h=f434185e3cebabf3b0cee5e10c78bda43772e7cb;hb=276d9a69fa796728169c2992921a1e4bd875f549;hp=5330cc6d5f098548f735daa9822f3be2da00c3ef;hpb=aeb7d91db3d650d30a9191cbe84192d6b3b23df7;p=jpim.git diff --git a/src/de/j32/pimstuff/conduit/FritzAddressbookImporter.java b/src/de/j32/pimstuff/conduit/FritzAddressbookImporter.java index 5330cc6..f434185 100644 --- a/src/de/j32/pimstuff/conduit/FritzAddressbookImporter.java +++ b/src/de/j32/pimstuff/conduit/FritzAddressbookImporter.java @@ -33,7 +33,7 @@ public class FritzAddressbookImporter @Override public void sendTo(EntryConsumer consumer) { - for (Element node : XmlUtil.iterateElements(xml_.getElementsByTagName("contact"))) { + for (Element node : XmlUtil.iterate(xml_.getElementsByTagName("contact"),Element.class)) { /* subnodes: * category (unused, always 0) * person/realName @@ -47,7 +47,7 @@ public class FritzAddressbookImporter try { entry.name(node.getElementsByTagName("realName").item(0).getTextContent()); - for (Element phone : XmlUtil.iterateElements(node.getElementsByTagName("number"))) { + for (Element phone : XmlUtil.iterate(node.getElementsByTagName("number"),Element.class)) { entry.attribute("phone", phone.getAttribute("type"), phone.getTextContent()); }