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
Doug Simons
065ac2bce2
fix setRootElement:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34504 72102866-910b-0410-8b05-ffd578937521
2012-01-12 18:49:13 +00:00
Gregory John Casamento
7fc9ff45c5
Redo last commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34503 72102866-910b-0410-8b05-ffd578937521
2012-01-12 17:16:31 +00:00
Gregory John Casamento
4dcda8401d
* Source/NSXMLNode.m: Get final methods implemented on NSXMLNode
...
except for XPath/XQuery methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34497 72102866-910b-0410-8b05-ffd578937521
2012-01-11 17:54:44 +00:00
Gregory John Casamento
c81e66eb31
* Source/NSXMLDocument.m: Added forward declarations for private
...
methods on NSXMLNode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34490 72102866-910b-0410-8b05-ffd578937521
2012-01-11 01:21:59 +00:00
Doug Simons
d9db64516a
defined StringFromXMLString
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34489 72102866-910b-0410-8b05-ffd578937521
2012-01-11 01:12:35 +00:00
Gregory John Casamento
8eadbe4163
* Source/NSXMLNode.m: Changes to move NSXML classes to using libxml
...
more directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34488 72102866-910b-0410-8b05-ffd578937521
2012-01-11 01:05:35 +00:00
Doug Simons
ac22f7ff4a
fixed a few little things
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34487 72102866-910b-0410-8b05-ffd578937521
2012-01-11 00:29:28 +00:00
Doug Simons
4096c0a471
NSXMLDocument is starting to compile now
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34485 72102866-910b-0410-8b05-ffd578937521
2012-01-10 22:25:22 +00:00
Gregory John Casamento
7566c5da55
Changes for NSXML (DOES NOT COMPILE)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34484 72102866-910b-0410-8b05-ffd578937521
2012-01-10 20:42:32 +00:00
Gregory John Casamento
439d2050f2
create branch for working on XML changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34483 72102866-910b-0410-8b05-ffd578937521
2012-01-10 20:41:06 +00:00
Richard Frith-MacDonald
bf2386269b
small efficiency fixes from last caching change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34478 72102866-910b-0410-8b05-ffd578937521
2012-01-10 09:56:57 +00:00
Richard Frith-MacDonald
fb47a4fcb7
improve caching of bundle content paths
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34477 72102866-910b-0410-8b05-ffd578937521
2012-01-10 09:38:23 +00:00
Richard Frith-MacDonald
83edf4c5fc
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34472 72102866-910b-0410-8b05-ffd578937521
2012-01-09 22:57:10 +00:00
Richard Frith-MacDonald
aa3b6f76c5
crude caching of directory contents
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34471 72102866-910b-0410-8b05-ffd578937521
2012-01-09 20:49:01 +00:00