[Master Index]
[Index for export/brede]
brede_read_xml
(export/brede/brede_read_xml.m)
Function Synopsis
S = pxml(s)
Help text
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
Produced by mat2html on Fri Jun 20 17:43:05 2008
Cross-Directory links are: OFF