Why do I receive an error when I attempt to read an XML file using the XMLREAD function in MATLAB?
Show older comments
I am attempting to read an XML file using the XMLREAD function as shown in the code snippet below:
out = xmlread('514-001.xml')
However, upon execution I receive the following error:
[Fatal Error] :2:8: The processing instruction target matching "[xX][mM][lL]" is not allowed.
??? Java exception occurred:
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
.
Error in ==> xmlread at 46
parseResult = p.parse(fileName);
Accepted Answer
More Answers (0)
Categories
Find more on Structured Data and XML Documents in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!