I have a partial that contains XML and I'm including it in another partial.
<rootNode>
<firstName>{{ user.name }} </firstName>
<age>{{ user.age }}</age>
</rootNode>
If I use this as a partial with <div ng-include="partials/test.xml"></div>
, the variables come through fine, but all the tags are now lower case.
<rootnode>
<firstname>Austin</firstname>
<age>27</age>
</rootnode>
That XML isn't going to validate against a schema that expects the correct case.
Is there a way to tell the ng-include
directive to keep the case the same, or am I required to use another library like Mustache to do this kind of template?