1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

Fixed parsing of providers file.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1931 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-05-11 03:36:55 +00:00 committed by mtucker
parent 37b7268abf
commit 154399440a

View file

@ -154,13 +154,15 @@ public class ProviderManager {
do { do {
if (eventType == XmlPullParser.START_TAG) { if (eventType == XmlPullParser.START_TAG) {
if (parser.getName().equals("iqProvider")) { if (parser.getName().equals("iqProvider")) {
parser.next();
parser.next(); parser.next();
String elementName = parser.nextText(); String elementName = parser.nextText();
parser.next(); parser.next();
parser.next();
String namespace = parser.nextText(); String namespace = parser.nextText();
parser.next(); parser.next();
String className = parser.nextText();
parser.next(); parser.next();
String className = parser.nextText();
// Only add the provider for the namespace if one isn't // Only add the provider for the namespace if one isn't
// already registered. // already registered.
String key = getProviderKey(elementName, namespace); String key = getProviderKey(elementName, namespace);
@ -185,13 +187,15 @@ public class ProviderManager {
} }
} }
else if (parser.getName().equals("extensionProvider")) { else if (parser.getName().equals("extensionProvider")) {
parser.next();
parser.next(); parser.next();
String elementName = parser.nextText(); String elementName = parser.nextText();
parser.next(); parser.next();
parser.next();
String namespace = parser.nextText(); String namespace = parser.nextText();
parser.next(); parser.next();
String className = parser.nextText();
parser.next(); parser.next();
String className = parser.nextText();
// Only add the provider for the namespace if one isn't // Only add the provider for the namespace if one isn't
// already registered. // already registered.
String key = getProviderKey(elementName, namespace); String key = getProviderKey(elementName, namespace);