mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
cleaned up some more things
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e9907e6d40
commit
5667bb4af7
2 changed files with 6 additions and 1 deletions
|
@ -219,8 +219,12 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
|
|||
[children release];
|
||||
internal->rootElement = (NSXMLElement*)root;
|
||||
*/
|
||||
xmlElementPtr newrootnode;
|
||||
NSAssert(root != nil, NSInvalidArgumentException);
|
||||
// Set
|
||||
xmlDocSetRootElement(MY_DOC,[root _node]);
|
||||
newrootnode = MY_DOC->children;
|
||||
newrootnode->_private = root; // hmmm, this probably isn't where this belongs, but try it...
|
||||
}
|
||||
|
||||
- (void) setStandalone: (BOOL)standalone
|
||||
|
|
|
@ -613,7 +613,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
xmlNodePtr node = (xmlNodePtr)[self _node];
|
||||
xmlChar *buf = NULL;
|
||||
xmlDocPtr doc = node->doc;
|
||||
xmlBufferPtr buffer = NULL;
|
||||
xmlBufferPtr buffer = xmlBufferCreate(); //NULL;
|
||||
int error = 0;
|
||||
int len = 0;
|
||||
|
||||
|
@ -621,6 +621,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
buf = buffer->content;
|
||||
len = buffer->size;
|
||||
string = StringFromXMLString(buf,len);
|
||||
xmlBufferFree(buffer);
|
||||
AUTORELEASE(string);
|
||||
|
||||
return string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue