xml_save

Stores XML representation of Matlab variable or structure in XML format in a file.

 

Syntax

xml_save(filename,v)

xml_save(filename,v,attswitch)

 

Description

xml_save stores a Matlab variable in plain text XML format into the file specified by the user.

 

Input Arguments

The Matlab variable v can be any of the types supported by xml_format.

 

     filename      full filename (including path and extension).

     v                      Matlab variable or structure to store in file.

     attswitch    optional, 'on' stores XML type attributes

                                    idx, size, type (default),

                                    'off' doesn't store XML type attributes.

 

Examples

 

This example saves a Matlab structure as XML in a file at a given location.

 

v.name = 'Google'

v.url = 'http://www.google.com'

v.rating = 5

v.description = 'Great search functionality for the web'

xml_save('c:/data/myfavourite.xml', v)

 

See also

xml_formatany, xml_format, xml_parse , xml_load, xml_help

 

 



xml_parseany

contents

introduction

Copyright © 2007, The Geodise Project, University of Southampton