You are right, the level isn't present in the nodefactory. The solution you are using seems to be the best for me, cause all other options (fetching the level from the Document or via GetXmlNodeById or something) are to 'expensive'. If you are using .Net 3.5 you can write an ExtensionMethod, so you can use the function directly on the node instance.
nodeFactory "level" attribute?
I'm trying to get the "level" attribute from the node factory, but it doesn't seem to be available. Does anyone know how to get it at all?
At the minute I'm looking at getting the path, splitting it it, and the subtracting the count -1. But that's a bit rubbish, although effective.
Is there another solution that anyone else can recommend?
Thanks in advance.
You are right, the level isn't present in the nodefactory. The solution you are using seems to be the best for me, cause all other options (fetching the level from the Document or via GetXmlNodeById or something) are to 'expensive'. If you are using .Net 3.5 you can write an ExtensionMethod, so you can use the function directly on the node instance.
hth, Thomas
is working on a reply...