PrefixResolver resolver =
getXPathContext().getNamespaceContext();
if (resolver instanceof WhitespaceStrippingElementMatcher)
{
WhitespaceStrippingElementMatcher wsem =
(WhitespaceStrippingElementMatcher) resolver;
try
{
if (wsem.shouldStripWhiteSpace(
getXPathContext(), (org.w3c.dom.Element) parent))
{
continue;
}
}