Escape slash from string - Verify if xml nodes exist