@Override
	public Boolean visitCharacterSetRegex(CharacterSetRegex bean,SetOfCharsSyntax chars)
	throws SAXException
	{
		SetOfCharsSyntax modChars;
		if(chars.getMembers()[0][0] == Character.MIN_VALUE ||
		   chars.getMembers()[chars.getMembers().length - 1][1] == Character.MAX_VALUE)
		{
			//System.err.println(chars + ", inverted: " + chars.invert());
			startElement(XMLSkinElements.Type.CHARACTER_SET_ELEMENT,"invert","true");
			modChars = chars.invert();
			//modChars = chars;
		}
		else
		{
			startElement(XMLSkinElements.Type.CHARACTER_SET_ELEMENT);
			modChars = chars;
		}
		for(int i = 0;i < modChars.getMembers().length;i++)
		{
			if(modChars.getMembers()[i][0] == modChars.getMembers()[i][1])
			{
				writeFullElement(XMLSkinElements.Type.SINGLE_CHARACTER_ELEMENT,"char",String.valueOf(modChars.getMembers()[i][0]));
			}
			else
			{
				writeFullElement(XMLSkinElements.Type.CHARACTER_RANGE_ELEMENT,
						"lower",String.valueOf(modChars.getMembers()[i][0]),
						"upper",String.valueOf(modChars.getMembers()[i][1]));
			}
		}
		endElement(XMLSkinElements.Type.CHARACTER_SET_ELEMENT);
		return false;
	}