Parse attributes from xmlish strings like a boss