Commit Graph

16 Commits

Author SHA1 Message Date
Matthew Kanwisher d59371c359 add some new helper methods 2013-08-29 17:29:22 -04:00
jimt 79b9108a49 Adds a more complete set of numeric type conversion methods to Node.
These now cover all the bit sizes for signed and unsigned numbers.
Methods have been implemented for Node values and attributes.

This addresses issue #8
2012-12-11 12:36:39 +01:00
jimt c085b35fb9 Adds optional indented output for the Node.String() and Node.Bytes()
methods. Set the global `IndentPrefix` var to a tab or spaces to
enable indented output. The existing API has not been changed.

This addresses issue #7.
2012-11-25 23:46:56 +01:00
Rodrigo Damazio 0459b7b32e Making the recursive SelectNodes a separate function and adding tests 2012-07-29 16:28:03 -03:00
Rodrigo Damazio 05fda09c14 Allowing recursive node selection - e.g. when getting all nodes from a given namespace, or simply all nodes 2012-07-29 10:06:21 -03:00
jim teeuwen 6e76dc96aa gofix for weekly.2012-01-27 2012-01-27 11:51:02 +01:00
jim teeuwen b5c33469fa fix for weekly 2011.12.06 2011-12-07 13:57:00 +01:00
jim teeuwen fb24618017 fix for weekly 2011.12.06 2011-12-07 13:53:17 +01:00
jim teeuwen 8a9dae755c gofix go1rename 2011-11-09 14:56:55 +01:00
jim teeuwen 4b31ea924d gofix error 2011-11-02 16:50:45 +01:00
jim teeuwen 4f7417ecbc Minor improvements in Node.Bytes() implementation. Some test case tweaking. 2011-09-30 12:06:20 +02:00
jim teeuwen 2a2a591c08 Add wildcard support for node names. Allows selecting of all child nodes with a specific namespace (See issue #4). 2011-07-13 05:17:00 +02:00
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. 2011-05-11 17:44:09 +02:00
jim teeuwen 882ba8d0bb Switch to more liberay CC0 public domain license 2011-03-19 14:50:46 +01:00
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. 2011-02-01 15:29:35 +01:00
jim teeuwen 9b53d04d9d Making package easily usable with goinstall. Including the reference to go-iconv. 2011-01-20 22:48:03 +01:00
Renamed from xmlx/node.go (Browse further)