27 Commits (master)

Author SHA1 Message Date
Kevin Darlington 1145e04eb0 added SelectNodesDirect function 8 years ago
Guido Witmond 305e0dc0da Fixed a needless conversion to byte and string. 8 years ago
Guido Witmond 17e1b69620 Added Node.SetValue(string) method. 8 years ago
Bob Uhl 4a541f77a5 Rolled back mistaken bugfix 9 years ago
Shaun Duncan ecf8264ac7 Fixed inadvertent recursion in SelectNodes. Updated/add tests for this behavior 9 years ago
Matthew Dawson 38e440df97 Fix the value fetcher to deal with NT_TEXT nodes. 9 years ago
Felix Geisendörfer b3124cf4a7 Implement text nodes / content escaping 9 years ago
Felix Geisendörfer 08c0943149 fix: String() handled ns prefixes incorrectly 9 years ago
Matthew Kanwisher 199b36f234 cleaning up remove function 9 years ago
Matthew Kanwisher 3236d1c7cb more helper methods 9 years ago
Matthew Kanwisher d59371c359 add some new helper methods 9 years ago
jimt 79b9108a49 Adds a more complete set of numeric type conversion methods to Node. 10 years ago
jimt c085b35fb9 Adds optional indented output for the Node.String() and Node.Bytes() 10 years ago
Rodrigo Damazio 0459b7b32e Making the recursive SelectNodes a separate function and adding tests 10 years ago
Rodrigo Damazio 05fda09c14 Allowing recursive node selection - e.g. when getting all nodes from a given namespace, or simply all nodes 10 years ago
jim teeuwen 6e76dc96aa gofix for weekly.2012-01-27 11 years ago
jim teeuwen b5c33469fa fix for weekly 2011.12.06 11 years ago
jim teeuwen fb24618017 fix for weekly 2011.12.06 11 years ago
jim teeuwen 8a9dae755c gofix go1rename 11 years ago
jim teeuwen 4b31ea924d gofix error 11 years ago
jim teeuwen 4f7417ecbc Minor improvements in Node.Bytes() implementation. Some test case tweaking. 11 years ago
jim teeuwen 2a2a591c08 Add wildcard support for node names. Allows selecting of all child nodes with a specific namespace (See issue #4). 11 years ago
jim teeuwen ea7fc45209 Got rid of depracated Node api functions. Removed dependency on go-iconv in favor of go-charset (See README). go-charset is a native Go package and thus requires no CGO functionality. Meaning go-pkg-xmlx and go-pkg-rss can now be used in Google AppEngine. Some speed and memory efficiency improvements added. Should now do a lot less []byte -> string conversions. 11 years ago
jim teeuwen 882ba8d0bb Switch to more liberay CC0 public domain license 12 years ago
jim teeuwen 5fff1fb51a Allow SelectNode() calls with a wildcard as the namespace name ("*"). This allows us to find nodes if we do not strictly care about what namespace it carries. Same deal for attributes. node.SelectNode("*", foo") finds any node named "foo", regardless of what namespace it has. 12 years ago
jim teeuwen 9b53d04d9d Making package easily usable with goinstall. Including the reference to go-iconv. 12 years ago
jim teeuwen e36a8d35b8 Fix for Go release 2011-01-19/20 12 years ago
jim teeuwen 02d19ed0bd Fix issue 1: Added dependency to go-iconv. this lib is needed to ensure we pass valud UTF-8 encoded data to the XML tokenizer. 12 years ago
jim teeuwen bacbff0e71 Node.GetValueXXX() and Node.GetAttrX() functions are now changed to Node.X() and Node.AX() functions. The old ones still exist, so your code will not break, but we recommend you use the shorter names from now on. These have been added to reduce the amount of typing needed when using this package to extract typed node/attribute values. Added node.B() and node.Ab() to retrieve boolean values. README updated to reflect the changes. 12 years ago
jim teeuwen 8c492695c1 Changed slice code to use append() 12 years ago
jim teeuwen db4230b809 Reworked README and xmlx/entitymap.go. Now includes conversion of named xml entities instead of just numeric ones. Eg: π and π to a unicode character and vice-versa. It also came to my attention that lack of a proper opensource license might put people off of using this package. I therefor added a 1-clause BSD license under which this code now falls. 12 years ago
jim teeuwen 6d8b8289d8 Refactored some code to be faster and a little more elegant. 12 years ago
jim teeuwen 6a776b0cda fixed some slice copy routines 12 years ago
jim teeuwen 664e4ae0d2 Added *node.Unmarshal() method 13 years ago
jim teeuwen aa1df539c3 modified: src/node.go 13 years ago
jim teeuwen 20b96782df modified: src/node.go 13 years ago
jim teeuwen 0a655c2756 new file: README 13 years ago