Hi - I've been trying embed the c# version and don't need the indexing portion, so I have tried to use the light version.
It seems that in the regular version
doesn't exist in the light version. Is this done puposely?
I've also noticed a lot of protection level changes for example
VTDNav.toRawString(int i, int j)
is public in the regular build and protected in the light build…
I ask this as my code breaks when trying to use the light version.
I think you should stick with the standard version as the light version is a slim down version of vtd that does not support indexing, xpath and modification
thanks for the response jimmy… but i'm simply paring and xml document and reading from it.
I am simply iterating over the nodes using VTDNav and I would like to get the content between two tags. I was under the impression i would not be using indexing,xpath or modification?
here is my code:
if ((l = vn.getContentFragment()) != -1)
result = vn.toRawString((int)l, (int)(l >> 32));
is there another way i can accomplish this?
I understand that if we add getContentFragment() then you problem would be solved, but it is possible that you come back later and want another call that is not available in the light version… what is the limiting factor of you regarding the standard edition of vtd-xml?
Well i was just trying to keep things as lightweight as i could.
It just seems strange that methods like:
Are public in one distribution, and protected in another.
I can use the full, not a big deal. I just thought using the "lightweight" there might be some extra performance gains.
performance is not really that much different,. toRAwString(int i, int j) turns out to be a bad/confusing function, someone brought the issue up and we removed it…
So how would you accomplish the "getContentFragment()" method functionality otherwise?
cut and paste from standard version and compile it DIY
Log in to post a comment.