HI!
I have a optimization problem to solve and I would want some hint of you.
I am using the xml framework to work with data from xml file, and the reading of the data is consuming much time.
In my code I do something as:
| stream root |
stream := (FileStream readOnlyFileNamed: aPath) contentsOfEntireFile asString..
root := (XMLDOMParser parse: stream) root.
root allElementsNamed: 'something' do:[ :eachB|
eachB attributeNodes attributeValueAt: 'list'
...
eachB allElementsNamed: 'another something' do:{ :eachD|
. eachD attributeNodes attributeValueAt: 'element'
..
]
]
I know such iteration like that take much time to be executed when the file read is big. There is a another manner to read the data from xml file that consume less time as possible? Or have someone an idea to improve this code?
Julio
View this message in context: XML Data Parsing
Sent from the Moose mailing list archive at Nabble.com.