* Source/NSXMLPrivate.h: Remvoe unused ivars.

* Source/NSXMLDocument.m: Get DTD from node and and validation
in init methods.
* Source/NSXMLDTD.m: Implement.
* Source/NSXMLNode.m: No children for attribute nodes.
* Tests/base/NSXMLNode/basic.m: Test empty attribute children


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34943 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-03-17 13:57:58 +00:00
parent cc6968f8d6
commit d3e3f4e17c
6 changed files with 255 additions and 50 deletions

View file

@ -101,9 +101,9 @@ int main()
PASS_EQUAL([attr URI], nil, "attr node URI is nil");
PASS_EQUAL([attr objectValue], @"value", "attr node object value works");
PASS_EQUAL([attr stringValue], @"value", "string value on attr node works");
// In libxml2 the value is on a child node
//PASS_EQUAL([attr children], nil, "attr node children is nil");
//PASS([attr childCount] == 0, "No child on attr node");
// In libxml2 the value is on a child node, but we don't report that
PASS_EQUAL([attr children], nil, "attr node children is nil");
PASS([attr childCount] == 0, "No child on attr node");
[attr setName: @"name"];
PASS_EQUAL([attr name], @"name",