mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* Source/NSXMLNode.m: Add code in initWithKind
* Source/NSXMLDTDNode.m: Remove attributes, use libxml2 structures instead. * Source/NSXMLPrivate.h: Add define for MY_DTD. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ea4ea8e081
commit
f3a158c77f
4 changed files with 26 additions and 24 deletions
|
@ -629,6 +629,9 @@ NSArray *execute_xpath(NSXMLNode *node,
|
|||
case NSXMLEntityDeclarationKind:
|
||||
case NSXMLElementDeclarationKind:
|
||||
case NSXMLNotationDeclarationKind:
|
||||
case NSXMLAttributeDeclarationKind:
|
||||
node = xmlNewNode(NULL, (xmlChar *)"");
|
||||
((xmlNodePtr)node)->type = XML_ATTRIBUTE_DECL;
|
||||
theSubclass = [NSXMLDTDNode class];
|
||||
break;
|
||||
|
||||
|
@ -645,6 +648,14 @@ NSArray *execute_xpath(NSXMLNode *node,
|
|||
node = xmlNewText((xmlChar *)"");
|
||||
break;
|
||||
|
||||
case NSXMLNamespaceKind:
|
||||
node = xmlNewNs(NULL,(xmlChar *)"",(xmlChar *)"");
|
||||
break;
|
||||
|
||||
case NSXMLAttributeKind:
|
||||
node = xmlNewProp(NULL,(xmlChar *)"",(xmlChar *)"");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue