view_xml

Version 1.2.0.0 (4.12 KB) by dan
An xml tree viewer. The viewer supports simple search and automatic xpath creation.
1.3K Downloads
Updated 14 May 2010

View License

unzip and run xml_demo.
just run view_xml(filename) to view the xml file.
enter a phrase to the search edit box (case insensitive) to find it in the tree. Press the get button to get the xpath of the selected node.
The xpath is created using the following format:
element/.../element[identifier_node="value"]/chosen_field.
the identifier node name is entered in the parent node identifier editbox. Logical expressions are supported for the parent node identifier, for example if every element has either a "name" field or a "title" field, enter : name|title to the parent node identifier editbox.
feel free to modify the xpath format, i needed it for a specific case and it is probably not perfect for every file.

Cite As

dan (2024). view_xml (https://www.mathworks.com/matlabcentral/fileexchange/27473-view_xml), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

last version was extremely buggy (Sorry).
This one is fast and reliable.
i added an xml xpath extractor so you can extract the nodes you chose from the xml file.

1.0.0.0