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

 Réponse acceptée

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

3 commentaires

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by