Lightweight regexp-based XML parser