Reading xml as it is from file system

al-shabah

New Member
I have xml file stored in file system . I want read xml file as it is without parsing and put it on the browser form node.js program. I have tried following code for that :\[code\] var filePath="./hotel.xml"; var fileContent=fs.readFileSync(filePath); console.log(fileContent);\[/code\]But it is giving me the strange outputs. please someone help me to solve this issue.
 
Back
Top