/** * Parse a node, to obtain its text. Needs readText method * @param parser * @param node * @return Text of the node * @throws XmlPullParserException * @throws IOException */ private String readNode (XmlPullParser parser, String node) throws XmlPullParserException, IOException{ parser.require(XmlPullParser.START_TAG, ns, node); String value = readText(parser); //Log_OC.d(TAG, "node= " + node + ", value= " + value); parser.require(XmlPullParser.END_TAG, ns, node); return value; }
/** * Parse a node, to obtain its text. Needs readText method * @param parser * @param node * @return Text of the node * @throws XmlPullParserException * @throws IOException */ private String readNode (XmlPullParser parser, String node) throws XmlPullParserException, IOException{ parser.require(XmlPullParser.START_TAG, ns, node); String value = readText(parser); //Log_OC.d(TAG, "node= " + node + ", value= " + value); parser.require(XmlPullParser.END_TAG, ns, node); return value; }