Commit Graph

  • 76f54ee732 Merge pull request #24 from lmas/master master Jim Teeuwen 2015-12-01 02:29:46 +0100
  • b5ae4aeda6 Ops, some leftover crap. A. Svensson 2015-11-30 20:31:22 +0100
  • 6abeb2c101 Do not atempt to set nil user agents. A. Svensson 2015-11-30 19:32:32 +0100
  • fb6cebc8dc Allow setting custom user agent string. A. Svensson 2015-11-30 19:30:01 +0100
  • cf505b97c7 Merge pull request #22 from kdar/select-nodes-direct Jim Teeuwen 2015-02-03 22:44:45 +0100
  • 1145e04eb0 added SelectNodesDirect function Kevin Darlington 2015-02-03 13:30:24 -0800
  • 89d27a9dee Merge pull request #21 from gwitmond/master Jim Teeuwen 2015-01-05 23:05:01 +0100
  • 305e0dc0da Fixed a needless conversion to byte and string. Guido Witmond 2015-01-05 20:54:53 +0100
  • 17e1b69620 Added Node.SetValue(string) method. Guido Witmond 2015-01-05 17:13:46 +0100
  • 745ca85455 Merge pull request #20 from WesTower/master jimt 2014-01-29 14:35:56 -0800
  • 4a541f77a5 Rolled back mistaken bugfix Bob Uhl 2014-01-29 14:27:00 -0700
  • 3623786eeb Merge pull request #15 from MJDSys/FixValueFetchers jimt 2013-10-25 18:14:50 -0700
  • 6bc115078b Merge pull request #17 from shaunduncan/develop jimt 2013-10-25 18:11:59 -0700
  • 72c0afcf93 Reworked the tests just a bit Shaun Duncan 2013-10-25 17:31:10 -0400
  • ecf8264ac7 Fixed inadvertent recursion in SelectNodes. Updated/add tests for this behavior Shaun Duncan 2013-10-25 16:44:32 -0400
  • 38e440df97 Fix the value fetcher to deal with NT_TEXT nodes. Matthew Dawson 2013-09-30 01:09:47 -0400
  • d5a758279d Merge pull request #14 from ThomsonReutersEikon/master jimt 2013-09-11 05:28:50 -0700
  • b3124cf4a7 Implement text nodes / content escaping Felix Geisendörfer 2013-09-10 23:18:13 +0200
  • 662d1a3eaa Merge pull request #13 from ThomsonReutersEikon/master jimt 2013-09-03 17:21:14 -0700
  • 08c0943149 fix: String() handled ns prefixes incorrectly Felix Geisendörfer 2013-09-04 00:35:22 +0200
  • 089e94f17d Merge pull request #12 from mattkanwisher/master jimt 2013-08-29 15:49:32 -0700
  • 199b36f234 cleaning up remove function Matthew Kanwisher 2013-08-29 18:19:26 -0400
  • 3236d1c7cb more helper methods Matthew Kanwisher 2013-08-29 17:38:55 -0400
  • d59371c359 add some new helper methods Matthew Kanwisher 2013-08-29 17:29:22 -0400
  • 6de2878785 Merge pull request #10 from cgrinds/patch-1 jimt 2013-03-28 13:12:26 -0700
  • f41a2d1569 CDATA is overwritten, append instead Chris Grindstaff 2013-03-28 17:05:49 -0300
  • f2fb9084dd Merge pull request #9 from anschelsc/master jimt 2013-03-19 10:49:48 -0700
  • ab85624fd0 Allow fetching with arbitrary *http.Client. Anschel Schaffer-Cohen 2013-03-19 09:49:00 -0400
  • 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. jimt 2012-12-11 12:36:39 +0100
  • 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. jimt 2012-11-25 23:46:56 +0100
  • 88d4341915 Merge pull request #6 from rdamazio/master jimt 2012-07-29 14:57:44 -0700
  • 0459b7b32e Making the recursive SelectNodes a separate function and adding tests Rodrigo Damazio 2012-07-29 16:28:03 -0300
  • 05fda09c14 Allowing recursive node selection - e.g. when getting all nodes from a given namespace, or simply all nodes Rodrigo Damazio 2012-07-29 10:06:21 -0300
  • 672384faa8 Small fixes in README jim teeuwen 2012-04-05 11:35:46 +0200
  • 91731c5264 Another minor README fix. jim teeuwen 2012-03-20 02:29:13 +0100
  • 45769307c0 Rename README to README.md and fix contents. jim teeuwen 2012-03-20 02:27:54 +0100
  • 032fe9d27c Run gofmt and fix the Unmarshal test. jim teeuwen 2012-02-29 11:42:39 +0100
  • 6da9091d5a Add a descriptive comment to the CharsetFunc type. jim teeuwen 2012-02-29 11:27:52 +0100
  • 817a15ca8b Remove CharsetFunc as field for Document type and instead supply it as a parameter for all Document.LoadXXX methods. There should be no need to store the function pointer in the Document struct. jim teeuwen 2012-02-29 11:21:35 +0100
  • ebbd6b3656 Remove deprecated Verbose field from Document type. jim teeuwen 2012-02-29 11:10:05 +0100
  • fcfc98fd64 Add CharsetReader function pointer to Document struct as a public field. This allows the caller to specify their own charset conversion handler when loading xml content. jim teeuwen 2012-02-29 11:08:37 +0100
  • b14dd79d8d No more Makefiles. Use go command to build and install. Temporarily removed dependency of external go-charset package. It is incompatible with new Go versions and is not updated by the author. We should find a replacement for it. This may cause problems with xml files supplied in non-utf8 encodings. jim teeuwen 2012-02-09 17:30:21 +0100
  • 6e76dc96aa gofix for weekly.2012-01-27 jim teeuwen 2012-01-27 11:51:02 +0100
  • b5c33469fa fix for weekly 2011.12.06 jim teeuwen 2011-12-07 13:57:00 +0100
  • fb24618017 fix for weekly 2011.12.06 jim teeuwen 2011-12-07 13:53:17 +0100
  • 8a9dae755c gofix go1rename jim teeuwen 2011-11-09 14:56:55 +0100
  • 4b31ea924d gofix error jim teeuwen 2011-11-02 16:50:45 +0100
  • 0ecfd7fd99 Changed code to use new rune type unicode code points. jim teeuwen 2011-10-26 12:24:45 +0200
  • 4f7417ecbc Minor improvements in Node.Bytes() implementation. Some test case tweaking. jim teeuwen 2011-09-30 12:06:20 +0200
  • 2a2a591c08 Add wildcard support for node names. Allows selecting of all child nodes with a specific namespace (See issue #4). jim teeuwen 2011-07-13 05:17:00 +0200
  • 29e84b1aeb Fix for weekly.2011-05-22 jim teeuwen 2011-05-23 15:18:45 +0200
  • 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. jim teeuwen 2011-05-11 17:44:09 +0200
  • 882ba8d0bb Switch to more liberay CC0 public domain license jim teeuwen 2011-03-19 14:50:46 +0100
  • 5e421dfebb Amended README with wildcard additions. jim teeuwen 2011-02-01 15:33:47 +0100
  • 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. jim teeuwen 2011-02-01 15:29:35 +0100
  • c07619da34 Fixed potential case issue in correctEncoding(). As per issue#2. jim teeuwen 2011-01-30 23:19:52 +0100
  • c271c20e08 Fix bug in document.correctEncoding() which failed to properly parse xml doctypes. jim teeuwen 2011-01-27 22:10:38 +0100
  • 9b53d04d9d Making package easily usable with goinstall. Including the reference to go-iconv. jim teeuwen 2011-01-20 22:48:03 +0100
  • e36a8d35b8 Fix for Go release 2011-01-19/20 jim teeuwen 2011-01-20 12:13:49 +0100
  • 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. jim teeuwen 2011-01-18 21:31:56 +0100
  • 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. jim teeuwen 2010-12-19 21:45:42 +0100
  • d0d1c2f9f5 Fixed bug in Document.LoadStream() function. jim teeuwen 2010-12-19 20:45:57 +0100
  • 15ec07ab1a Some minor error handling fixes. jim teeuwen 2010-12-16 21:08:01 +0100
  • 28e474f91f Fix for Go release.2010-02-12 jim teeuwen 2010-12-03 15:22:39 +0100
  • 8c492695c1 Changed slice code to use append() jim teeuwen 2010-11-05 01:26:35 +0100
  • 18011ea2f0 Fixed 2 incorrect function signatures jim teeuwen 2010-10-10 20:04:58 +0200
  • 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. jim teeuwen 2010-09-26 22:59:14 +0200
  • 24f48a058b Fix for recent Go release. jim teeuwen 2010-08-25 21:22:14 +0200
  • 6d8b8289d8 Refactored some code to be faster and a little more elegant. jim teeuwen 2010-08-22 05:07:38 +0200
  • 79794996d0 Updated code to use more recent go idioms. Yielding more compact xml processing. Hopefully better performant. jim teeuwen 2010-05-26 02:24:44 +0200
  • 6a776b0cda fixed some slice copy routines jim teeuwen 2010-05-06 05:36:48 +0200
  • 379dfddd5b rewrote loadNonStandardEntities() to use a more reliable token representation for each character: "\uxxxx" notation. jim teeuwen 2009-12-02 21:44:02 +0100
  • 664e4ae0d2 Added *node.Unmarshal() method jim teeuwen 2009-12-02 19:38:35 +0100
  • ccb91f470e Added *document.LoadUri() method to load documents from the web (over http) jim teeuwen 2009-11-25 02:50:06 +0100
  • 5bbe4dbe10 added HtmlToUTF8() and UTF8ToHTML() functions for converting non-standard html entities. jim teeuwen 2009-11-24 17:49:27 +0100
  • dcae3f9bff rewrote README with better information jim teeuwen 2009-11-24 14:50:37 +0100
  • 4246be06b8 Added document.Verbose field which prints errors to Stderr while reading xml data. Set to false by default. jim teeuwen 2009-11-24 14:37:17 +0100
  • b95492ab55 cleaned up the LoadString() loop a bit. jim teeuwen 2009-11-24 14:20:12 +0100
  • b62b923ed2 modified: src/entitymap.go modified: src/xmlx_test.go jim teeuwen 2009-11-23 19:41:06 +0100
  • 0cc509e738 modified: src/entitymap.go jim teeuwen 2009-11-23 19:00:44 +0100
  • 4857865daf modified: src/Makefile modified: src/document.go new file: src/entitymap.go jim teeuwen 2009-11-23 18:28:44 +0100
  • e0fdc48cf7 modified: src/document.go jim teeuwen 2009-11-23 17:50:29 +0100
  • aa1df539c3 modified: src/node.go jim teeuwen 2009-11-23 06:40:57 +0100
  • 20b96782df modified: src/node.go jim teeuwen 2009-11-23 06:15:40 +0100
  • 3ae1eaa620 modified: src/xmlx_test.go jim teeuwen 2009-11-23 05:49:44 +0100
  • 0a655c2756 new file: README new file: src/Makefile new file: src/document.go new file: src/io.go new file: src/node.go new file: src/test.xml new file: src/xmlx_test.go jim teeuwen 2009-11-23 05:16:27 +0100