@dhana03 wrote:
Hi wiebe@CARYA,
Thanks for your reply.
I have build the code which way I wanted to read the XML file by using LibXML and the code attached previous thread.
I had some doubts about my code so only I have requested here.
Thanks for your support.
I don't think there are obvious problems. I didn't run the code, I don't have that XML toolkit installed.
There is a lot of code in one VI though. I'd try to split things up a bit. Depending on how much more of this stuff you have to do, I'd consider a VI (or .vim) that automatically gets the XML from a cluster content from the cluster element labels. If this is it, I wouldn't bother though.
It seems you are getting multiple nodes by a query, and than process them in order. Is there a benefit in doing this? I'd keep it simple: get each child node by it's name and parse the result. But this might just be extra work that doesn't pay off in any way. The result will be simpler though, and easier to understand later on.
Is it faster?