Added substitution tag for encoding data as xml