how to use xmlread function on data received in http response message with content type = application/xml

 채택된 답변

TADA
TADA 2018년 10월 31일
Yair altman had a very good blog post on that https://undocumentedmatlab.com/blog/parsing-xml-strings

댓글 수: 3

under MATLAB help on HTTP Data Type Conversion, it is mentioned that for response message- for Converting Data in Response Messages: For CONTENT TYPE text/xml application/xml
MATLAB Type in MessageBody.Data Property: If Java is available, Data is converted to a Java org.w3c.dom.Document using the xmlread function. If Java is not available, Data is processed as text/plain with the UTF-8 charset. what does that signify? if anybody knows?
Thank you TADA by the way for your answer at least I have some way to go ahead in my task
I'm not 100% sure but as far as i understand it, httpresponse generates an xml Dom by default using java objects, unless you run Matlab with no jvm configured, and then you just get the xml text back.
If your question was about the utf8, it's just a format for storing text, like ASCII

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Web Services from MATLAB Using HTTP에 대해 자세히 알아보기

제품

질문:

2018년 10월 31일

편집:

2018년 11월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by