Skip to main content

All Questions

Tagged with
0 votes
1 answer
2k views

getChildNodes() returns Text instead of NodeList

I'm trying to do XML parsing in MATLAB, which uses JavaSE package org.w3c.dom I have a xml structure like <?xml version="1.0" encoding="utf-8"?> <tada> <Filters> <...
Physman's user avatar
2 votes
1 answer
181 views

XPath in Matlab won't give any result [duplicate]

I'm just messing a bit with XML and XPath with Matlab. I've a pretty complex XML but I just need to access a single Node, and add some other sub-nodes to it. Here's a part of the XML: <?xml ...
Leo91's user avatar
  • 1,741
1 vote
1 answer
805 views

Writing an XML in Matlab: How to add reference to DTD?

I'm trying to write an XML file using Matlab and I need to specify a DOCTYPE DTD at the header, but I haven't found any method for this in the Matlab documentation or questions related. Every question ...
Adrian's user avatar
  • 913
0 votes
1 answer
87 views

Unable to execute 'DocumentBuilderFactory' in matlab

Whenever I am running the following command I getting an error given below. Please tell which jar file I need to add to run the command in Matlab. Command: docBuilder = DocumentBuilderFactory....
Avijit Dasgupta's user avatar
0 votes
1 answer
474 views

Parsing xml in Matlab (using JAXB)

I'm trying to parse a xml-file based on a xsd in Matlab. As recommended in this thread MATLAB parse and store XML with XSD, I'm trying to use JAXB to do this, but I got stuck. I was able to create ...
m8sch's user avatar
  • 13
0 votes
1 answer
305 views

Error while reading svg file in MATLAB using xmlread

I am trying to read a svg file whose initial couple of lines are as follows: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/...
curryage's user avatar
  • 501
0 votes
2 answers
780 views

Can not save char data to xml file in MATLAB

I want to modify xml text information of an svg file in MATLAB. I renamed the svg file to xml file system('rename *myfile.svg* *myfile.xml') got the XML text info: fid = fopen(‘myfile.xml');...
Bini's user avatar
  • 25
0 votes
1 answer
899 views

Modify an XML file with XPath in MATLAB

I'm trying to open and modify an XML file in MATLAB using XPath. Here the code I have written so far: import javax.xml.xpath.* doc = xmlread(which('myXMLfile.xml')); factory = XPathFactory....
m_power's user avatar
  • 3,224
0 votes
2 answers
631 views

XML Exception while Parsing from String to DOM error

In my code, I am converting DOM object to String object and replace few strings and again writing to DOM object. While doing so, am traversing many files, code works first time while for 2nd file, ...
Konark K's user avatar
  • 147
0 votes
1 answer
298 views

First time working with MATLAB and XML [duplicate]

Like it says it's my first time working with XML and I'm having a hard time working with basic functionality in MATLAB, any suggestions are appreciated: I've got a basic file like this: <list&...
Brian's user avatar
  • 367
1 vote
2 answers
1k views

Using the java BufferedRead in Matlab with an TCP/IP Ethernet connection - accessing the most recent data

I am currently writing a MATLAB code to control instruments mounted on the end of a robotic arm. I am accessing the robot's positional data over a TCP/IP ethernet connection. The coms are working. The ...
doug08162's user avatar
7 votes
3 answers
5k views

Parsing XML strings in MATLAB

I need to parse an XML string with MATLAB (caution: without file I/O, so I don't want to write the string to a file and then read them). I'm receiving the strings from an HTTP connection and the ...
user1238826's user avatar
1 vote
1 answer
2k views

converting .mat files to XML -- need to add java class?

I'd like to convert some MAT files to XML (each .mat file contains a hierarchical structure) so I can access the data from other software (like R, Python). These MAT files were generated in Matlab 6....
hatmatrix's user avatar
  • 45.1k
0 votes
1 answer
1k views

exporting matlab class object (or struct) into java object of similar class using xml

I have similar matlab and java classes: public class myClass { double[][] v1; String v2; } I need to export the matlab object, whos struct is: obj = v1: [2x2 double] v2: 'abc' into Java. Is ...
Serg's user avatar
  • 14.1k