private void processAsXML(ByteArrayOutputStream bytes) {

		ByteArrayInputStream input = new ByteArrayInputStream(bytes.toByteArray());

		try {
			TransformerFactory factory = TransformerFactory.newInstance();

			Transformer xformer = factory.newTransformer();

			Source source = new StreamSource(input);

			DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
			Document doc = builder.newDocument();
			Result result = new DOMResult(doc);

			xformer.transform(source, result);

			NodeList root = doc.getElementsByTagName(CommunityConstants.RESPONSE_ROOT);
			Node response = root.item(0);
			String refreshInterval;
			NodeList firstLevel = response.getChildNodes();
			for( int i=0; i<firstLevel.getLength(); i++ ) {
				Node kid = firstLevel.item(i);
				if( kid.getLocalName().equals(CommunityConstants.REFRESH_INTERVAL) ) {
					refreshInterval = kid.getTextContent();
					System.out.println("got refresh interval: " + refreshInterval);
				} else if( kid.getLocalName().equals(CommunityConstants.FRIEND_LIST) ) {
					parseFriendList(kid);
				}
			}

		} catch (ParserConfigurationException e) {
			// couldn't even create an empty doc
		} catch (TransformerException e) {
			;
		} catch( NullPointerException e ) {
			// basically means the file had bad structure
			e.printStackTrace();
		}

	}