|
@@ -1555,7 +1555,11 @@ public:
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
Load an XML file from disk. You are responsible
|
|
Load an XML file from disk. You are responsible
|
|
|
- for providing and closing the FILE*.
|
|
|
|
|
|
|
+ for providing and closing the FILE*.
|
|
|
|
|
+
|
|
|
|
|
+ NOTE: The file should be opened as binary ("rb")
|
|
|
|
|
+ not text in order for TinyXML-2 to correctly
|
|
|
|
|
+ do newline normalization.
|
|
|
|
|
|
|
|
Returns XML_NO_ERROR (0) on success, or
|
|
Returns XML_NO_ERROR (0) on success, or
|
|
|
an errorID.
|
|
an errorID.
|
|
@@ -1665,11 +1669,7 @@ public:
|
|
|
Delete a node associated with this document.
|
|
Delete a node associated with this document.
|
|
|
It will be unlinked from the DOM.
|
|
It will be unlinked from the DOM.
|
|
|
*/
|
|
*/
|
|
|
- void DeleteNode( XMLNode* node ) {
|
|
|
|
|
- TIXMLASSERT( node );
|
|
|
|
|
- TIXMLASSERT( node->_parent );
|
|
|
|
|
- node->_parent->DeleteChild( node );
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ void DeleteNode( XMLNode* node );
|
|
|
|
|
|
|
|
void SetError( XMLError error, const char* str1, const char* str2 );
|
|
void SetError( XMLError error, const char* str1, const char* str2 );
|
|
|
|
|
|