| 795 | } |
| 796 | |
| 797 | XMLNode* XMLText::ShallowClone(XMLDocument* doc) const { |
| 798 | if (!doc) { |
| 799 | doc = _document; |
| 800 | } |
| 801 | XMLText* text = doc->NewText(Value()); // fixme: this will always allocate memory. Intern? |
| 802 | text->SetCData(this->CData()); |
| 803 | return text; |
| 804 | } |
| 805 | |
| 806 | bool XMLText::ShallowEqual(const XMLNode* compare) const { |
| 807 | return (compare->ToText() && XMLUtil::StringEqual(compare->ToText()->Value(), Value())); |
nothing calls this directly
no test coverage detected