Hi Matt,
The images can be found here:
http://benv2423-2011vn.blogspot.com/2011/11/reading-multiple-xml-files.html
And to answer the question you've posted on my blog:
"Matthew Whellan said...
Hey Vinh
just trying to get this XML working properly.
i am fairly certain that i am naming the 'file' wrong within the
flowgraph
just wondering if you could elaborate on what goes into the 'file/
Name' of the xml nodes. in particular the String: Combine
"
The string:combine node takes 2 strings (a data type using letters/
numbers) and joins them. So "Hello" + "World" becomes: "HelloWorld"
The flowgraph example I posted allows you to suffix a file name with a
number that is output from a counter. I used "file" but it can be
anything (eg "myData"). If you need to change the file name in the
flowgraph to match your XML files in your mod folder, edit the
string:combine node and change A=file to A=myData or whatever.
So when I press num_7 the counter outputs "1" this combines with
"file" and outputs "file1". Then the follow nodes open "file1.xml" in
the mod folder and gets the child named "child" get the next child
named "grandchild" then gets the value stored there. It then waits one
(1) sec, before going back to the beginning.
The second time through, it obviously increments the counter to output
"2"...which means "file2" gets opened.
So if you name your XML files "file1", "file2", "file3"...etc and
place them in your mod folder, the flow graph example I posted will
open them 1 after the other. It will fail to open when it reaches a
file# that it cannot find.
Hope that helps,
Vinh