Is it possible to read an element from an XML file without loading the entire file into memory?

4 ビュー (過去 30 日間)
Tuomas Kenttä
Tuomas Kenttä 2014 年 7 月 14 日
編集済み: dpb 2014 年 7 月 14 日
Hi,
I have thousands of large XML files from which I need to extract only few elements. I am fairly new to XML files and I was wondering if it is possible to read a single element from an XML file based on its tag without loading the entire XML file into the memory?
Thanks,
Tuomas
  6 件のコメント
dpb
dpb 2014 年 7 月 14 日
編集済み: dpb 2014 年 7 月 14 日
Again, why not use the XML file tools in Matlab first to prove they're not up to the task first???? Could probably have already done it in time have spent dreaming about fgetl and manual parsing plus reading the file line-by-line w/ fgetl is about as slow as it gets from an i/o process w/ only a fgetch being worse...
As for "big", what kind of size are we talking of?
Sara
Sara 2014 年 7 月 14 日
Building on dpb comment, do you have any code you have written to read in the files and "search" them?

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

回答 (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