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

 Respuesta aceptada

Yair altman had a very good blog post on that https://undocumentedmatlab.com/blog/parsing-xml-strings

3 comentarios

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
TADA
TADA el 1 de Nov. de 2018
Editada: TADA el 1 de Nov. de 2018
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Preguntada:

el 31 de Oct. de 2018

Editada:

el 1 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by