xmlread fails if the xml file extension is other than .xml
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vamsinag Gunti
el 23 de Oct. de 2018
Comentada: Vamsinag Gunti
el 31 de Oct. de 2018
Hi,
I am crrently wrting a script that reads and manipulates an XML file. However, I am to read an XML file with a custom extension. For e.g. the name of the XML file is myXMLfile.myExtension. In such a case the xmlread() function fails with the following error:
xmlread('myXMLfile.myExtension')
Error using xmlstringinput (line 42)
File parameter.incparamter not found
Error in xmlread (line 76)
filename = xmlstringinput(filename,true);
Can someone please guide me on this issue?
Thanks in advance.
Regards, Vamsi
0 comentarios
Respuesta aceptada
madhan ravi
el 23 de Oct. de 2018
Editada: madhan ravi
el 23 de Oct. de 2018
It is really common because the syntax works if and only if the function correlates to it , the option I choose is to just change the extension to .xml and to try the reading option , see https://in.mathworks.com/matlabcentral/answers/284557-how-to-call-a-file-without-extension#comment_368357
5 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!