* 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:
Gregory John Casamento 2012-01-18 17:48:19 +00:00
parent ea4ea8e081
commit f3a158c77f
4 changed files with 26 additions and 24 deletions

View file

@ -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;
}