public XMLNode(String XMLText) {
		// Figure out where the next tag begins and ends:
		int lBracket = XMLText.indexOf("<");
		int rBracket = XMLText.indexOf(">");

		// If we reached the end of the file, we are done:
		if (lBracket == -1 || rBracket == -1)
			return;

		// Sanity check: Is this really XML we're looking at?)
		if (rBracket <= lBracket) {
			errorMessage("Invalid XML syntax: '>' before '<'");
			return;
		}

		// Create a hash map for the parameters:
		parameters = new HashMap<String, String>();

		// Process everything inside this tag:
		contents = XMLText.substring(lBracket + 1, rBracket);
		processTagContents(contents);

		if (verbose)
			displayParameters();

		// Check if there is more after this tag:
		if (rBracket + 1 >= XMLText.length())
			return;
		String XMLRemainder = XMLText.substring(rBracket + 1);

		// If there are no more tags, we are done:
		lBracket = XMLRemainder.indexOf("<");
		if (lBracket == -1)
			return;

		// Create the next node:
		next = new XMLNode(XMLRemainder.substring(lBracket));
	}