Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
kzelechowski@e3tech.local

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
strings):

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

HTH,
Chris

U?ytkownik "Pascal " napisa? w wiadomo?ci grup
dyskusyjnych:l5afff$k77$1@newscl01ah.mathworks.com...

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 !

Thanks
Pascal

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




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.