private PropertiesCollection parseProperties(XmlPullParser parser) throws Exception {
		PropertiesCollection collection = new PropertiesCollection();

		PropertiesCollection.Property property = collection.new Property(); 
		boolean done = false;
		while (!done) {
			int eventType = parser.next();
			if (eventType == XmlPullParser.START_TAG) {
				if (parser.getName().equals("property")) {
					property = collection.new Property(); 
				}else if (parser.getName().equals("name")) {
					property.setName(parser.nextText());
				}else if (parser.getName().equals("propvalue")) {
					property.setValue(parser.nextText());
				}
			} else if (eventType == XmlPullParser.END_TAG) {
				if (parser.getName().equals("property")) {
					collection.add(property); 
				}else if (parser.getName().equals("properties")) {
					done = true;
				}
			}
		}
		return collection;
	}