Skip to content

route respond with XML #21

@cmh234

Description

@cmh234

Hi I'm trying to have a route respond with an XML string like at this URL https://demo.twilio.com/docs/voice.xml.

Thanks for trying our documentation. Enjoy!
http://demo.twilio.com/docs/classic.mp3

But I only get formatted HTML.

My test code is below: found In utils\twilio\twilio.component.ts

import { Component } from '@angular/core';
import { Router } from '@angular/router';

@component({
selector: "twilio",
template: <div [outerHTML]="xml"></div>
})

export class TwilioComponent {
xml = '\n' +
'Thanks for trying our documentation. Enjoy!\n' +
'http://demo.twilio.com/docs/classic.mp3\n' +
'';
}
Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions