Rank: 111941 based on 0 downloads (last 30 days) and 0 file submitted
photo

Tracy

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Tracy View all
Updated File Comments Rating
10 Nov 2008 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski

sorry - i used the wrong function. But when i use teh right one i get this error

>> xmlwrite_xerces(xx)
51 objFile = java.io.File(result);
??? No constructor 'java.io.File' with matching signature found.

Error in ==> xmlwrite_xerces at 51
objFile = java.io.File(result);

10 Nov 2008 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski

I get different results when i write to a file and when i write to a buffer.

>> MyTree

MyTree =

CDATA_SECTION: '<A>txt</A>'
MyNumber: 13
MyString: 'Hello World'

when writing to the buffer my CDATA is not correct.

xx=xml_write([], MyTree, {'MyTree', [], 'This is a global comment'}, Pref);

xmlwrite(xx)

ans =

<?xml version="1.0" encoding="utf-8"?><!--This is a global comment-->
<MyTree>&lt;A&gt;txt&lt;/A&gt;<MyNumber>13</MyNumber>
<MyString>Hello World</MyString>
</MyTree>

when writing to a file it is

>> xml_write('xx.xml', MyTree, {'MyTree', [], 'This is a global comment'}, Pref);
>> type ('xx.xml')

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a global comment-->
<MyTree><![CDATA[<A>txt</A>]]><MyNumber>13</MyNumber>
<MyString>Hello World</MyString>
</MyTree>

am i doing something wrong??

Contact us