help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xml in octave


From: Alexander Barth
Subject: xml in octave
Date: Wed, 12 Mar 2014 16:56:35 +0100

Hi all,

In the past there have been some mails about how reading xml in octave. Actually one can do so easily by using the java library Xerces (from apache). Attached is the file test_xml which works in octave with java support and actually matlab too.

It seems that the matlab's xmlread is just a thin wrapper around the Xerces library which is also included in matlab. One odd thing however, is that java functions have the working directory set to the working directory when octave starts and the working directory is not modified by a cd in octave. Matlab has the same behavior. To avoid any issues it is thus better to use the absolute path to the xml file.

Cheers,
Alex

Attachment: sample.xml
Description: Text Data

Attachment: test_xml.m
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]