MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlValidateSkipIgnorable

Function xmlValidateSkipIgnorable

ThirdParty/libxml2/vtklibxml2/valid.c:4629–4652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4627 */
4628
4629static xmlNodePtr
4630xmlValidateSkipIgnorable(xmlNodePtr child) {
4631 while (child != NULL) {
4632 switch (child->type) {
4633 /* These things are ignored (skipped) during validation. */
4634 case XML_PI_NODE:
4635 case XML_COMMENT_NODE:
4636 case XML_XINCLUDE_START:
4637 case XML_XINCLUDE_END:
4638 child = child->next;
4639 break;
4640 case XML_TEXT_NODE:
4641 if (xmlIsBlankNode(child))
4642 child = child->next;
4643 else
4644 return(child);
4645 break;
4646 /* keep current node */
4647 default:
4648 return(child);
4649 }
4650 }
4651 return(child);
4652}
4653
4654/**
4655 * xmlValidateElementType:

Callers 1

xmlValidateElementTypeFunction · 0.85

Calls 1

xmlIsBlankNodeFunction · 0.85

Tested by

no test coverage detected