Home > brede > brede_read_xml.m

brede_read_xml

PURPOSE ^

brede_read_xml - Read XML file into structure

SYNOPSIS ^

function S = brede_read_xml(filename, varargin)

DESCRIPTION ^

 brede_read_xml       - Read XML file into structure

       function S = brede_read_xml(filename)

       Input:    Filename  Input XML filename

       Property: Output    [ all | {CollapseFirst} | CollapseSecond ] 

       Output:   S         Output

       This function will read an XML file into a Matlab structure.
       The file should be in "poor mans" XML with no attributes.

       For output=all the entire hierarchy of structures in the XML
       file will be returned. For output=CollapseFirst the first
       level node will be collapse, eg, for a cell array with 'doc'
       in this example: <Docs><doc>1</doc><doc>2</doc></Docs>. Rather
       than the 'Docs' structure.  

       Example:
         f = fullfile(fileparts(which('brede')), 'xml', 'wobibs.xml');
         B = brede_read_xml(f, 'output', 'collapsesecond');

       See also BREDE, BREDE_READ, BREDE_WRITE_XML, BREDE_BIB,
                BREDE_STR, BREDE_STR_HTML2STR.

 $Id: brede_read_xml.m,v 1.9 2006/06/22 10:32:13 fn Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005