Extract subxml from xml

Just a method to extract Sub - XML from XML using XPath in Java

public String extractResponseData(String responseXML) throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, TransformerException {

XPathExpression expr = XPathFactory.newInstance().newXPath().compile("//responsedata/*");
InputSource inputSource = new InputSource(new ByteArrayInputStream(responseXML.getBytes()));
NodeList nodeList = (NodeList) expr.evaluate(inputSource, XPathConstants.NODESET);
StringWriter sw = new StringWriter();
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
transformer.transform(new DOMSource(nodeList.item(0)), new StreamResult(sw));
return sw.toString();

Install multiple Firefox versions

In windows, to install multiple firefox versions do the following steps:

0. close all the firefox windows.
1. Install various versions of firefox in your system INTO DIFFERENT DIRECTORIES.
2. run the following command and create one profile for each version.
c:\Program Files\Mozilla Firefox\firefox.exe -profilemanager
3. Run the fireforx with -p
"C:\Program Files\Mozilla Firefox 3.5\firefox.exe" -p ff3_5
"C:\Program Files\Mozilla Firefox\firefox.exe" -p ff4_0

Now, you can open both the firefox versions at once.