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

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 件のコメント

Sunil
Sunil 2018 年 11 月 1 日
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?
Sunil
Sunil 2018 年 11 月 1 日
Thank you TADA by the way for your answer at least I have some way to go ahead in my task
TADA
TADA 2018 年 11 月 1 日
編集済み: TADA 2018 年 11 月 1 日
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 ExchangeCall 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