No BSD License  

Highlights from
XML parsing tools

4.0

4.0 | 4 ratings Rate this file 30 Downloads (last 30 days) File Size: 141.76 KB File ID: #3074
image thumbnail

XML parsing tools

by Charles Lehalle

 

04 Mar 2003 (Updated 05 Oct 2005)

xmltools is a MATLAB tool designed to handle XML data.

| Watch this File

File Information
Description

xmltool is provided with a explanation pdf file produced with ocamaweb.
this new version allow to request only a given type of tags.

see up-to-date version on sourceforge :
https://sourceforge.net/project/showfiles.php?group_id=72934

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
29 Apr 2003 charles lehalle

an up-to-date version of this file will be downloadable at https://sourceforge.net/project/showfiles.php?group_id=72934
you can submit bugs or features requets there too.

30 Apr 2003 Pierre Joly

A very good tool.
After interesting exchanges with the author, it turns out that the syntax "z.child(2).child(1).child(3).child.attribs(2)", which is not very nice, cannot be more specific to the file (as z.root.thirdbranch.otherbranch.myleaf) because the tree described by an xml file can have branches with the same name and different structures. According to Charles Lehalle, future developments of the tool should include friendlier ways to access to the data. This is a good reason to subscribe to the automatic notification of changes of the file.

25 Aug 2003 Michel Thierry

Good tool, but it doesn't handle CDATA elements (which should not be parsed, but should be kept within the parsed structure as text).

23 Dec 2009 Jesse Hopkins

Good tool, but runs slow for large files, and does not handle xml comments as is, but wasn't too hard to figure out how to fix that. I actually think the syntax
z.child(2).child(1).child(2).attribs(2)
works better than other matlab xml tools on the file exchange, as the structure will always be the same format no matter what the xml file. This also handles repetative tag names, which the others that I've seen do not. You can make it more readable by using intermediate variables suchas:
mysubsystem = z.child(1)
mysub_subsystem = mysubsystem.child(1)
etc..

Please login to add a comment or rating.
Updates
29 Apr 2003

the syntax used was not compliant for all matlab versions

06 May 2003

the syntax used was not compliant for all matlab versions

22 Sep 2003

add new functionalities (getting subsets of children, including a 'get from attrib' method)

05 Oct 2005

new screenshot

Tag Activity for this File
Tag Applied By Date/Time
development environment Charles Lehalle 22 Oct 2008 06:57:29
xml Charles Lehalle 22 Oct 2008 06:57:29
parsing Charles Lehalle 22 Oct 2008 06:57:29
tools Charles Lehalle 22 Oct 2008 06:57:29
utilities Charles Lehalle 22 Oct 2008 06:57:29
development Charles Lehalle 22 Oct 2008 06:57:29

Contact us at files@mathworks.com