From: Steven on 8 Mar 2010 12:39 I am using the xmlread function to parse an xml file. The file has the following structure: <Parent1> <Child1> <Data1>1</Data1> <Data2>2</Data2> </Child1> <Child2> <Data1>1</Data1> <Data2>2</Data2> </Child2> </Parent1> I use the xmlread function as follows: data = xmlread('xmlfile.xml'); Originally, the following is true: data.item(0) == Parent1 data.item(0).item(0) == Child1 data.item(0).item(1) == Child2 data.item(0).getLength == 2 However, when I open the xml file in XML Notepad and click save (without touching anything else in the file), the next time I try to parse the file I get: data.item(0) == Parent1 data.item(0).item(0) == [#text:] data.item(0).item(1) == Child1 data.item(0).item(2) == [#text:] data.item(0).item(3) == Child2 data.item(0).item(4) == [#text:] data.item(0).getLength == 5 Any ideas as to what is going on? Any and all help is appreciated. Thanks.
|
Pages: 1 Prev: uigetfile, select all file inner a folder from selection thefolder Next: Recursion limit |