I'm trying to find the best way to get information from an XML file from control scripting. Untill now Controlscript only support some XML DOM call's but i think results would be much better when i can use Xpath calls. My preffered solution would be to get the result of the Xpath query back into a mapping.
Has someone already done something like this?
Is there someone who has implemented Xpath calls from controlscript?
- michel.eijgermans
- Posts:46
- Joined: Mon Aug 08, 2011 11:50 am
Is there someone who has implemented Xpath calls from controlscript?
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: Is there someone who has implemented Xpath calls from controlscript?
Mr eijgermans,
There are many ways to parse and return the data in an xml stream. But first you need to ask yourself what your target is. Do yiu just want to read, or create a stream, or a combination.
There are excellent libraries that will parse an xml message and store it in memory. You can then iterate through the data quite fast. But if you want to read and write then a different library is needed.
Whatever you decide. Sounds like you need a control dll to do the work for you. Thee are xfiles in the lab describing how to implement such a dll. Should not be too much work.
If yiu just want to ad, then look for a library that allows for fast searching. Might even be faster than your mapping idea.
Good luck
Frenk
There are many ways to parse and return the data in an xml stream. But first you need to ask yourself what your target is. Do yiu just want to read, or create a stream, or a combination.
There are excellent libraries that will parse an xml message and store it in memory. You can then iterate through the data quite fast. But if you want to read and write then a different library is needed.
Whatever you decide. Sounds like you need a control dll to do the work for you. Thee are xfiles in the lab describing how to implement such a dll. Should not be too much work.
If yiu just want to ad, then look for a library that allows for fast searching. Might even be faster than your mapping idea.
Good luck
Frenk