> hello, i need help evaluating xpath expresion, > when i evalute an expresion, i get the values of the expresion, > but i want the tags of xml too, i am evaluating whit this code: > > XObjectPtr theResult( > theEvaluator.evaluate( > theDOMSupport, > theDocument, > XalanDOMString(argv[2]).c_str(), > thePrefixResolver)); > assert(theResult.null() == false); > cout << theResult->str(); > > when i print the result, i get values of my xml, and i need the > xml whit all the tags
You've called the str() function on a node-set, which gives you the string value of the node-set, which is not markup. Take a look at the SerializeNodeSet sample. Dave
