-1

I have some XPS files which contains text, tables and charts. I need to extract the data in the tables to my matlab code and proceed them. Would you please help me in writing this extraction code in Matlab. Thanks

Community
  • 1
  • 1
zahra
  • 9
  • 3

1 Answers1

0

To my knowledge, there is no existing tool to directly import data strored in an XPS file in Matlab.

However, as an XPS document is nothing more than a XML document, I would suggest to use xmlread to open the document and convert it to a Matlab structure, such that you don't have to parse the XML content yourself.

Then you will have to navigate in this XML structure to get the information you want.

Ratbert
  • 5,463
  • 2
  • 18
  • 37
  • Error using xmlread (line 98) Java exception occurred: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) – zahra Sep 02 '15 at 05:16
  • OK. Can you edit your question and add a link to the XPS file ? Also, can you tell us what information you need to extract from the XPS file exactly ? – Ratbert Sep 02 '15 at 05:30
  • Yes I added this XPS tag before. My xps files have some information contains and charts that I need to extrat the table data to my matlab code. – zahra Sep 02 '15 at 19:06
  • This is why you don't answer help-vampire questions. –  Sep 04 '15 at 14:22