feat(xml): add methods for element text content access

- also allow empty script variable values

related to #CAM-2337