| 974 | |
| 975 | |
| 976 | XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const |
| 977 | { |
| 978 | if ( !doc ) { |
| 979 | doc = _document; |
| 980 | } |
| 981 | XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern? |
| 982 | text->SetCData( this->CData() ); |
| 983 | return text; |
| 984 | } |
| 985 | |
| 986 | |
| 987 | bool XMLText::ShallowEqual( const XMLNode* compare ) const |
nothing calls this directly
no test coverage detected