Back to project page mobcomp-httpclient.
The source code is released under:
Written by: Markus Tacker <m@coderbyheart.de> | http://coderbyheart.de/ Copyright (c) Markus Tacker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
If you think the Android project mobcomp-httpclient listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.hsrm.mi.mobcomp.httpclientdemo.flickr; /*from ww w. j av a2s. c o m*/ import org.w3c.dom.Node; import org.w3c.dom.NodeList; /** * Hilfsklasse fr die XML-Verarbeitung * * @author Markus Tacker <m@coderbyheart.de> */ public abstract class XmlReader { /** * Gibt den Text aus einem Element zurck * * @param node * @return */ protected String getTextValue(Node node) { if (node == null) return ""; NodeList childNodes = node.getChildNodes(); if (childNodes.getLength() <= 0) return ""; return childNodes.item(0).getNodeValue(); } }