Skip to content

Instantly share code, notes, and snippets.

@mlcollard
Created April 25, 2018 13:40
Show Gist options
  • Save mlcollard/ede1b184d8117fbfc275e65819d9edef to your computer and use it in GitHub Desktop.
Save mlcollard/ede1b184d8117fbfc275e65819d9edef to your computer and use it in GitHub Desktop.
var template = """
<document>
<loadingTemplate>
<activityIndicator><text>Hello World!</text></activityIndicator>
</loadingTemplate>
</document>
"""
var templateParser = new DOMParser();
var parsedTemplate = templateParser.parseFromString(template, "application/xml");
navigationDocument.pushDocument(parsedTemplate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment