I'm using IXMLDOMNode::get_childNodes() with preserveWhiteSpace set to true, which causes it to treat carriage returns between elements as nodes. In my child list, I get a few nodes with the name #text.
Is there any way to remove these nodes from my list? I have a CComPtr<IXMLDOMNodeList> object, and there are no members that allow me to add/remove to it.
I'm thinking of using selectNodes() instead, and passing an expression that ignores all nodes with the name #text. Would this be possible?
I just tried selectNodes() and passed the expression //*[not(self::#text)], but that doesn't seem to work.