From XML to array

6 ビュー (過去 30 日間)
MiauMiau
MiauMiau 2012 年 12 月 13 日
Hi
I have an XML file and want to store certain attributes into an array.
The XML file looks like this:
?xml version="1.0" encoding="utf-8"?>
<root>
<cell id="" type="">
<tree id="" type="">
<vertice end="" id="" length="5.4915" start="" type="">
<vertice end="" id="" length="6.3272" start="" type="">
.....
so nothing special and the only attribute with a value is "length". This lengths I want to store in an arrary/row vector. I tried the xmlread and xml2struct commands, but from there on did not know how to continue..any advice is welcome, thanks!
  1 件のコメント
MiauMiau
MiauMiau 2012 年 12 月 14 日
push

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStructured Data and XML Documents についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by