The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Import data to XML
Replies: 2   Last Post: Nov 7, 2013 5:41 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 27
Registered: 4/30/13
Re: Import data to XML
Posted: Nov 5, 2013 6:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

The following script creates an XML file containing data (numerical and

o = fopen ('xml.txt');
fprintf (o, '<?xml version="1.0" ?><data ><numerical >%g</numerical ><string
>%s</string ></data >', 1, 'A');
fclose (o);


U?ytkownik "Pascal " napisa? w wiadomo?ci grup

Hi everyone,

I need to create an XML file containing data (numerical and strings) from a
script I made. I began to use the function xmlwrite to create the file but I
can't put data in it.
I'm a noob with XML things so if someone has the solution for me that would
be nice !


PS : I have the obligation to use the basic Matlab version, no plugin nor

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.