Gregory John Casamento
a43c970b66
* Source/NSXMLDocument.m: Remove commented out code
...
from old implementation.
* Source/NSXMLNode.m: Flesh out functions started by
doug to test equality for nodes.
* Source/NSXMLPrivate.h: Remove uneeded ivars.
* Tests/base/NSXMLNode/basic.m: Add tests to for equality.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34701 72102866-910b-0410-8b05-ffd578937521
2012-02-03 03:58:42 +00:00
Gregory John Casamento
cccdbe5428
* Source/NSXMLNode.m: Eliminate warning message which was
...
inadvertantly merged.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34691 72102866-910b-0410-8b05-ffd578937521
2012-02-01 16:33:30 +00:00
Gregory John Casamento
f5fe581719
* base.make.in
...
* ChangeLog
* config/pathtls.m4
* config/pathxml.m4
* configure
* configure.ac
* Documentation/ReleaseNotes.gsdoc
* Headers/Foundation/NSCalendar.h
* Headers/Foundation/NSDate.h
* Headers/Foundation/NSException.h
* Headers/Foundation/NSNetServices.h
* Headers/Foundation/NSString.h
* Headers/Foundation/NSXMLNode.h
* Headers/GNUstepBase/config.h.in
* NSTimeZones/NSTimeZones.tar
* Source/GSFFIInvocation.m
* Source/GSPrivate.h
* Source/GSSocketStream.m
* Source/GSString.m
* Source/NSAffineTransform.m
* Source/NSBundle.m
* Source/NSConnection.m
* Source/NSFileManager.m
* Source/NSHost.m
* Source/NSInvocation.m
* Source/NSJSONSerialization.m
* Source/NSKeyValueCoding.m
* Source/NSNotificationCenter.m
* Source/NSNumberFormatter.m
* Source/NSURLRequest.m
* Source/NSUserDefaults.m
* Source/NSXMLNode.m: Corrected infinite loop. Return an
NSXMLNode for NSXMLInvalidKind per Cocoa documentation.
* Tests/base/NSJSONSerialization/json.m
* Tests/base/NSObject/initialize.m
* Tests/base/NSString/NSString_tests.h
* Tests/base/NSURLRequest/basic.m
* Version: Merge with trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34690 72102866-910b-0410-8b05-ffd578937521
2012-02-01 16:19:50 +00:00
Doug Simons
a7a674de22
added _insertChild:atIndex: private method to replicate Cocoa behavior of allowing adjacent text nodes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34684 72102866-910b-0410-8b05-ffd578937521
2012-02-01 01:12:12 +00:00
Gregory John Casamento
67effbde5f
* Source/NSXMLDocument.m: Minor corrections in
...
initWithContentsOfURL:... to pass along error and mask.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34683 72102866-910b-0410-8b05-ffd578937521
2012-01-31 22:58:32 +00:00
Doug Simons
469c89052e
Fixed a crash that would result from adding a text node child adjacent to another
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34682 72102866-910b-0410-8b05-ffd578937521
2012-01-31 22:15:35 +00:00
Gregory John Casamento
3bfd09d528
Correction for failed test in NSXMLDocument.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34676 72102866-910b-0410-8b05-ffd578937521
2012-01-31 04:01:40 +00:00
Doug Simons
f754ea74cb
Fix and simplify memory management, init methods, other fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34670 72102866-910b-0410-8b05-ffd578937521
2012-01-30 19:28:26 +00:00
Gregory John Casamento
4a7581308d
* Source/NSXMLNode.m: Correct infinite loop in releaseExtraRetains.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34662 72102866-910b-0410-8b05-ffd578937521
2012-01-29 17:28:52 +00:00
Niels Grewe
198cc1a46f
Try to fix attribute removal semantics. We were leaking like a sieve here and
...
could not even remove namespaced attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34641 72102866-910b-0410-8b05-ffd578937521
2012-01-26 21:54:28 +00:00
Niels Grewe
ae94271e12
An attempt to fix NSXMLElement's -addAttribute. Also implement
...
-attributeForName: and add a few tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34640 72102866-910b-0410-8b05-ffd578937521
2012-01-26 21:29:49 +00:00
Doug Simons
2917fb9f3c
add _passExternalRetainsTo: to transfer extra retains when a top node is added to a new tree
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34628 72102866-910b-0410-8b05-ffd578937521
2012-01-25 18:22:56 +00:00
Gregory John Casamento
f7851efd2a
* Source/NSXMLElement.m: Remove setObjectValue: implementation.
...
* Source/NSXMLNode.m: Remove comments around code to replace
nil value.
* Tests/base/NSXMLNode/basic.m: correct test.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34611 72102866-910b-0410-8b05-ffd578937521
2012-01-23 17:10:26 +00:00
Doug Simons
b34c744c20
fix the setRootElement: method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34610 72102866-910b-0410-8b05-ffd578937521
2012-01-23 17:09:25 +00:00
Gregory John Casamento
49b12261cd
* Source/NSXMLDocument.m
...
* Source/NSXMLElement.m
* Source/NSXMLNode.m: Make all tests pass, correct child
issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34605 72102866-910b-0410-8b05-ffd578937521
2012-01-21 11:17:12 +00:00
Doug Simons
0262025e3b
implemented XPath method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34603 72102866-910b-0410-8b05-ffd578937521
2012-01-20 17:13:48 +00:00
Doug Simons
83dfcdf77a
fix a bug when a dictionary contains non-string values
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34597 72102866-910b-0410-8b05-ffd578937521
2012-01-20 01:05:25 +00:00
Doug Simons
83c45d4850
fixed problem with relative xpath expressions
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34596 72102866-910b-0410-8b05-ffd578937521
2012-01-20 01:04:30 +00:00
Gregory John Casamento
a5d9f67a89
* Source/NSXMLNode.m: fixes for issues found in GNUstep unit
...
tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34581 72102866-910b-0410-8b05-ffd578937521
2012-01-18 21:21:32 +00:00
Doug Simons
01ed308814
add methods to keep the entire tree from getting deallocated while there are any external references to any object in the tree
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34579 72102866-910b-0410-8b05-ffd578937521
2012-01-18 20:12:27 +00:00
Gregory John Casamento
e1ac9467bf
* Source/NSXMLDTDNode.m: Remove uneeded releases in dealloc.
...
* Source/NSXMLPrivate.h: Remove ivars from NSXMLDTDNode.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34578 72102866-910b-0410-8b05-ffd578937521
2012-01-18 17:53:11 +00:00
Gregory John Casamento
f3a158c77f
* 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
2012-01-18 17:48:19 +00:00
Doug Simons
ea4ea8e081
fix problem with attribute value getting lost
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34576 72102866-910b-0410-8b05-ffd578937521
2012-01-18 16:23:58 +00:00
Doug Simons
78ccfdae11
added _initWithNode:kind:, changed copyWithZone:, etc.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34575 72102866-910b-0410-8b05-ffd578937521
2012-01-18 15:12:58 +00:00
Gregory John Casamento
0c5781882a
* Source/NSXMLNode.m: Add code to create nodes for comments,
...
pi's and DTDs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34571 72102866-910b-0410-8b05-ffd578937521
2012-01-18 00:10:53 +00:00
Gregory John Casamento
f81a39b90d
* Source/NSXMLDocument.m
...
* Source/NSXMLElement.m: add code to insertChild:atIndex: to
handle edge cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34569 72102866-910b-0410-8b05-ffd578937521
2012-01-17 23:32:57 +00:00
Gregory John Casamento
14ac5c523f
* Source/NSXMLElement.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34563 72102866-910b-0410-8b05-ffd578937521
2012-01-17 09:07:53 +00:00
Gregory John Casamento
96e464fc49
* Source/NSXMLDocument.m
...
* Source/NSXMLNode.m: Add / to xpath if it is not there.
Thes matches behavior observed on Mac OS X/Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34562 72102866-910b-0410-8b05-ffd578937521
2012-01-17 08:51:23 +00:00
Gregory John Casamento
c28fe9a54b
* Source/NSXMLDocument.m: Correct issues with unit tests.
...
ignore nil on setRootElement:. Correct other issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34561 72102866-910b-0410-8b05-ffd578937521
2012-01-17 08:09:01 +00:00
Gregory John Casamento
9f3fe8391a
Document fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34560 72102866-910b-0410-8b05-ffd578937521
2012-01-17 07:02:45 +00:00
Gregory John Casamento
daf08b99a4
* Source/NSXMLElement.m
...
* Source/NSXMLNode.m: Corrections to make "basic" tests pass.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34556 72102866-910b-0410-8b05-ffd578937521
2012-01-16 18:31:17 +00:00
Gregory John Casamento
6a39289591
* Source/NSXMLNode.m
...
* Source/NSXMLPrivate.h: Implement XPath query.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34540 72102866-910b-0410-8b05-ffd578937521
2012-01-15 15:48:44 +00:00
Doug Simons
cedbac254f
fix stringValue for attribute nodes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34524 72102866-910b-0410-8b05-ffd578937521
2012-01-14 07:40:52 +00:00
Doug Simons
d0a8f14c4a
ignore blanks between nodes when parsing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34523 72102866-910b-0410-8b05-ffd578937521
2012-01-14 07:00:28 +00:00
Doug Simons
25ffa3ff82
fix rootElement
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34522 72102866-910b-0410-8b05-ffd578937521
2012-01-14 06:51:13 +00:00
Doug Simons
70b79c28fc
support text nodes; and SET THE NODE
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34521 72102866-910b-0410-8b05-ffd578937521
2012-01-14 06:14:46 +00:00
Doug Simons
d43aa730a1
support creating PI and Comment nodes; implemented attributes method in NSXMLElement
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34520 72102866-910b-0410-8b05-ffd578937521
2012-01-14 05:59:45 +00:00
Doug Simons
e395d2f42a
cleaned up a lot of things and fixed at least one crashing bug
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34519 72102866-910b-0410-8b05-ffd578937521
2012-01-14 05:16:39 +00:00
Doug Simons
f6289a65a1
use clearPrivatePointers() in NSXMLDocument as well as NSXMLNode when copying
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34518 72102866-910b-0410-8b05-ffd578937521
2012-01-14 02:43:18 +00:00
Doug Simons
990bd6274c
more progress
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34517 72102866-910b-0410-8b05-ffd578937521
2012-01-14 01:00:59 +00:00
Gregory John Casamento
db0fefff04
Remove uneeded ivars.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34516 72102866-910b-0410-8b05-ffd578937521
2012-01-13 22:10:41 +00:00
Doug Simons
6983dd6e31
undo change to children for documents
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34515 72102866-910b-0410-8b05-ffd578937521
2012-01-13 20:12:15 +00:00
Gregory John Casamento
3fd92857a4
Cleanup of ivars
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34514 72102866-910b-0410-8b05-ffd578937521
2012-01-13 19:44:55 +00:00
Doug Simons
f7aff866ac
added subNodes ivar to track ownership of nodes in a tree
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34513 72102866-910b-0410-8b05-ffd578937521
2012-01-13 19:24:44 +00:00
Doug Simons
3464a615f5
change _newFromNode: to _objectForNode:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34512 72102866-910b-0410-8b05-ffd578937521
2012-01-13 18:46:19 +00:00
Doug Simons
eaa49d6e39
for documents, use children of rootElement; fix XMLStringWithOptions:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34511 72102866-910b-0410-8b05-ffd578937521
2012-01-13 18:24:10 +00:00
Doug Simons
5667bb4af7
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
2012-01-13 00:44:10 +00:00
Gregory John Casamento
e9907e6d40
* Source/NSXMLElement.m
...
* Source/NSXMLNode.m: Add code to automatically instantiate
the node to fill in the _private pointer if it is not present.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34508 72102866-910b-0410-8b05-ffd578937521
2012-01-12 23:19:26 +00:00
Doug Simons
a9e3ce01aa
cleaned up some more things
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34507 72102866-910b-0410-8b05-ffd578937521
2012-01-12 22:41:55 +00:00
Doug Simons
8772885b71
added XMLStringCopy to properly copy NSStrings as xml strings; use it for setting name
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34505 72102866-910b-0410-8b05-ffd578937521
2012-01-12 18:50:56 +00:00