问题
I have a xml file to my local and I want to choose file from local machine and just get outout as file in string. Sample Input file:
<mail>
<to>abc@gmail.com</to>
<from>xyz@gmail.com</from>
<heading>Reminder</heading>
<body> Party this week !</body>
</mail>
Expected output:
<mail><to>abc@gmail.com</to><from>xyz@gmail.com</from><heading>Reminder</heading><body> Party this week !</body></mail>
来源:https://stackoverflow.com/questions/54867683/how-to-convert-xml-file-to-string-in-angular-4-5-6