Add xpath charactor check for url parsing

Add xpath charactor check for url parsing