/** * Parse OCS node * * @param parser * @return List of ShareRemoteFiles * @throws XmlPullParserException * @throws IOException */ private void readError(XmlPullParser parser) throws XmlPullParserException, IOException { parser.require(XmlPullParser.START_TAG, ns, NODE_ERROR); while (parser.next() != XmlPullParser.END_TAG) { if (parser.getEventType() != XmlPullParser.START_TAG) { continue; } String name = parser.getName(); if (name.equalsIgnoreCase(NODE_EXCEPTION)) { exception = readText(parser); } else if (name.equalsIgnoreCase(NODE_MESSAGE)) { message = readText(parser); } else { skip(parser); } } }