PackageTrack
Sign in Get early access

github.com/beevik/etree

v1.7.1 #1282 most downloaded on Go modules beevik/etree

What this package is like to depend on

Last release 8 days ago

15 Aug 2026

Release timing varies

gaps range from 8 days to 11 months

Nearly every release is documented

notes for 16 of 16 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

139 releases · first in 2013

3 releases in the last 12 months

see the full history below

Release timeline

139 releases · Jun 2013 to Aug 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 60 of 139
  1. v1.7.1 15 Aug 2026
    Release notes

    Changes

    • Improve efficiency of Element.Text and Element.Tail.
    Open source →
    Release notes

    Changes

    • Improve efficiency of Element.Text and Element.Tail.
    Open source →
  2. v1.7.0 12 Jul 2026
    Release notes

    Breaking changes

    • To address a security issue, it was necessary to add a MaxDepth option to
      ReadSettings to limit the depth of XML trees during parsing. A generous
      default value of 1024 was chosen to avoid breaking most existing code.
      However, if your code is processing XML hierarchies with a depth greater
      than 1024, you will need to assign your Document a ReadSettings that has
      a MaxDepth set to a higher value.

    Security Fixes

    • Limited the depth of XML trees processed by all ReadFrom functions during
      parsing.
    • Fixed a CompilePath index-out-of-range panic that could be caused by a
      missing path filter key.
    • Sanitized the contents of XML text, comment, ProcInst and Directive tokens
      provided by the user.
    Open source →
    Release notes

    Breaking changes

    • To address a security issue, it was necessary to add a MaxDepth option to ReadSettings to limit the depth of XML trees during parsing. A generous default value of 1024 was chosen to avoid breaking most existing code. However, if your code is processing XML hierarchies with a depth greater than 1024, you will need to assign your Document a ReadSettings that has a MaxDepth set to a higher value.

    Security Fixes

    • Limited the depth of XML trees processed by all ReadFrom functions during parsing.
    • Fixed a CompilePath index-out-of-range panic that could be caused by a missing path filter key.
    • Sanitized the contents of XML text, comment, ProcInst and Directive tokens provided by the user.
    Open source →
  3. v1.6.0 22 Aug 2025
    Release notes

    Changes

    • Added new iterator versions of existing functions that return slices of Element pointers: ChildElementsSeq, SelectElementsSeq, FindElementsSeq, and FindElementsPathSeq.
    • Improved performance of functions that return a single element.
    • Because of its use of iterators, this package now requires go 1.23 or later.
    Open source →
    Release notes

    Changes

    • Added new iterator versions of existing functions that return slices of Element pointers: ChildElementsSeq, SelectElementsSeq, FindElementsSeq, and FindElementsPathSeq.
    • Improved performance of functions that return a single element.
    • Because of its use of iterators, this package now requires go 1.23 or later.
    Open source →
  4. v1.5.2-0.20250822224909-df3ff1281614 22 Aug 2025 pre-release

    Nothing published for this version

  5. v1.5.1 15 Apr 2025
    Release notes

    Fixes

    • Fixed a bug in InsertChildAt.
    Open source →
    Release notes

    Fixes

    • Fixed a bug in InsertChildAt.
    Open source →
  6. v1.5.1-0.20250306061641-d7975c45bee3 06 Mar 2025 pre-release

    Nothing published for this version

  7. v1.5.0 30 Jan 2025
    Release notes

    Changes

    • Added Element function CreateChild, which calls a continuation function
      after creating and adding a child element.

    Fixes

    • Removed a potential conflict between two ReadSettings values. When
      AttrSingleQuote is true, CanonicalAttrVal is forced to be false.
    Open source →
    Release notes

    Changes

    • Added Element function CreateChild, which calls a continuation function after creating and adding a child element.

    Fixes

    • Removed a potential conflict between two ReadSettings values. When AttrSingleQuote is true, CanonicalAttrVal is forced to be false.
    Open source →
  8. v1.4.2-0.20250128174814-7cf4882e7581 28 Jan 2025 pre-release

    Nothing published for this version

  9. v1.4.2-0.20240718152344-e732393ea404 18 Jul 2024 pre-release

    Nothing published for this version

  10. v1.4.2-0.20240718152227-8965a489c0b1 18 Jul 2024 pre-release

    Nothing published for this version

  11. v1.4.1 17 Jul 2024
    Release notes

    Updates

    • Minimal go version updated to 1.21.
    • Default-initialized CharsetReader causes same result as NewDocument().
    • When reading an XML document, attributes are parsed more efficiently.
    Open source →
    Release notes

    Changes

    • Minimal go version updated to 1.21.
    • Default-initialized CharsetReader causes same result as NewDocument().
    • When reading an XML document, attributes are parsed more efficiently.
    Open source →
  12. v1.4.1-0.20240716052356-65fc6ef46f45 16 Jul 2024 pre-release

    Nothing published for this version

  13. v1.4.1-0.20240710030836-fdd11bdbc908 10 Jul 2024 pre-release

    Nothing published for this version

  14. v1.4.1-0.20240708061437-e8292cc4b951 08 Jul 2024 pre-release

    Nothing published for this version

  15. v1.4.1-0.20240707195041-7113fd9e29dc 07 Jul 2024 pre-release

    Nothing published for this version

  16. v1.4.1-0.20240706042457-97f4565f23c3 06 Jul 2024 pre-release

    Nothing published for this version

  17. v1.4.1-0.20240706041930-cd0467725258 06 Jul 2024 pre-release

    Nothing published for this version

  18. v1.4.0 13 May 2024
    Release notes

    New Features

    • Add AutoClose option to ReadSettings.
    • Add ValidateInput to ReadSettings.
    • Add NotNil function to Element.
    • Add NextSibling and PrevSibling functions to Element.
    Open source →
    Release notes

    New Features

    • Add AutoClose option to ReadSettings.
    • Add ValidateInput to ReadSettings.
    • Add NotNil function to Element.
    • Add NextSibling and PrevSibling functions to Element.
    Open source →
  19. v1.3.1-0.20240513191811-4fe8b8ce88c0 13 May 2024 pre-release

    Nothing published for this version

  20. v1.3.1-0.20240503224708-cc099d9d9748 03 May 2024 pre-release

    Nothing published for this version

  21. v1.3.1-0.20240428200951-cda5fc441f5d 28 Apr 2024 pre-release

    Nothing published for this version

  22. v1.3.1-0.20240428121254-d21e1ceeed8a 28 Apr 2024 pre-release

    Nothing published for this version

  23. v1.3.0 31 Dec 2023
    Release notes

    New Features

    • Add support for double-quotes in filter path queries.
    • Add PreserveDuplicateAttrs to ReadSettings.
    • Add ReindexChildren to Element.

    Full Changelog: v1.2.0...v1.3.0

    Open source →
    Release notes

    New Features

    • Add support for double-quotes in filter path queries.
    • Add PreserveDuplicateAttrs to ReadSettings.
    • Add ReindexChildren to Element.
    Open source →
  24. v1.2.1-0.20231231204534-d46b199f3e7d 31 Dec 2023 pre-release

    Nothing published for this version

  25. v1.2.1-0.20231223193218-3f4526ce00c8 23 Dec 2023 pre-release

    Nothing published for this version

  26. v1.2.1-0.20230829014414-8da548e3890e 29 Aug 2023 pre-release

    Nothing published for this version

  27. v1.2.1-0.20230715204354-8a4dcdaf5e53 15 Jul 2023 pre-release

    Nothing published for this version

  28. v1.2.1-0.20230715204151-480bc7ed3910 15 Jul 2023 pre-release

    Nothing published for this version

  29. v1.2.1-0.20230715191114-f3d944a38c01 15 Jul 2023 pre-release

    Nothing published for this version

  30. v1.2.1-0.20230605182635-f9721ff411f6 05 Jun 2023 pre-release

    Nothing published for this version

  31. v1.2.0 11 May 2023
    Release notes

    New Features

    • Add the ability to write XML fragments using Token WriteTo functions.
    • Add the ability to re-indent an XML element as though it were the root of the document.
    • Add a ReadSettings option to preserve CDATA blocks when reading an XML document.
    Open source →
    Release notes

    New Features

    • Add the ability to write XML fragments using Token WriteTo functions.
    • Add the ability to re-indent an XML element as though it were the root of the document.
    • Add a ReadSettings option to preserve CDATA blocks when reading and XML document.
    Open source →
  32. v1.1.5-0.20230511180417-ecaabe808842 11 May 2023 pre-release

    Nothing published for this version

  33. v1.1.5-0.20230511153522-a291eec23391 11 May 2023 pre-release

    Nothing published for this version

  34. v1.1.5-0.20230508232633-672dfa1bf646 08 May 2023 pre-release

    Nothing published for this version

  35. v1.1.4 08 May 2023
    Release notes

    New Features

    • Add the ability to preserve whitespace in leaf elements during indent.
    • Add the ability to suppress a document-trailing newline during indent.
    • Add choice of XML attribute quoting style (single-quote or double-quote).

    Removed Features

    • Removed the CDATA preservation change introduced in v1.1.3. It was implemented in a way that broke the ability to process XML documents encoded using non-UTF8 character sets.
    Open source →
    Release notes

    New Features

    • Add the ability to preserve whitespace in leaf elements during indent.
    • Add the ability to suppress a document-trailing newline during indent.
    • Add choice of XML attribute quoting style (single-quote or double-quote).

    Removed Features

    • Removed the CDATA preservation change introduced in v1.1.3. It was implemented in a way that broke the ability to process XML documents encoded using non-UTF8 character sets.
    Open source →
  36. v1.1.4-0.20230507200059-211cdce3bc37 07 May 2023 pre-release

    Nothing published for this version

  37. v1.1.4-0.20230504232214-2f634e1b578c 04 May 2023 pre-release

    Nothing published for this version

  38. v1.1.4-0.20230502181414-3278e30cd0cd 02 May 2023 pre-release

    Nothing published for this version

  39. v1.1.4-0.20230502040559-c04c9615d8a0 02 May 2023 pre-release

    Nothing published for this version

  40. v1.1.3 02 May 2023
    Release notes
    • XML reads now preserve CDATA sections instead of converting them to standard character data.
    Open source →
  41. v1.1.3-0.20230502033806-5a0225a63a4f 02 May 2023 pre-release

    Nothing published for this version

  42. v1.1.3-0.20230502013909-1288176cb1bb 02 May 2023 pre-release

    Nothing published for this version

  43. v1.1.2 02 May 2023
    Release notes
    • Fixed a path parsing bug.
    • The Element.Text function now handles comments embedded between character data spans.
    Open source →
  44. v1.1.1 02 May 2023
    Release notes
    • Updated go version in go.mod to 1.20
    Open source →
  45. v1.1.1-0.20230502000224-63a79760bd8b 02 May 2023 pre-release

    Nothing published for this version

  46. v1.1.1-0.20200718192613-4a2f8b9d084c 18 Jul 2020 pre-release

    Nothing published for this version

  47. v1.1.1-0.20200623191853-977ca2e3ccc7 23 Jun 2020 pre-release

    Nothing published for this version

  48. v1.1.1-0.20191114232641-23e6ba8cc2de 14 Nov 2019 pre-release

    Nothing published for this version

  49. v1.1.1-0.20191105050252-dcd53a58ac74 05 Nov 2019 pre-release

    Nothing published for this version

  50. v1.1.1-0.20190605174243-6e5cd8a30216 05 Jun 2019 pre-release

    Nothing published for this version

  51. v1.1.1-0.20190531201712-ef86ce21ad30 31 May 2019 pre-release

    Nothing published for this version

  52. v1.1.1-0.20190218190655-4ec130554028 18 Feb 2019 pre-release

    Nothing published for this version

  53. v1.1.1-0.20190217061645-ab7d1938ddc3 17 Feb 2019 pre-release

    Nothing published for this version

  54. v1.1.1-0.20190212154729-3c11c35e3321 12 Feb 2019 pre-release

    Nothing published for this version

  55. v1.1.1-0.20190206032026-76880d49f6ce 06 Feb 2019 pre-release

    Nothing published for this version

  56. v1.1.0 02 Feb 2019
    Release notes

    New Features

    • New attribute helpers.
      • Added the Element.SortAttrs method, which lexicographically sorts an element's attributes by key.
    • New ReadSettings properties.
      • Added Entity for the support of custom entity maps.
    • New WriteSettings properties.
      • Added UseCRLF to allow the output of CR-LF newlines instead of the default LF newlines. This is useful on Windows systems.
    • Additional support for text and CDATA sections.
      • The Element.Text method now returns the concatenation of all consecutive character data tokens immediately following an element's opening tag.
      • Added Element.SetCData to replace the character data immediately following an element's opening tag with a CDATA section.
      • Added Element.CreateCData to create and add a CDATA section child CharData token to an element.
      • Added Element.CreateText to create and add a child text CharData token to an element.
      • Added NewCData to create a parentless CDATA section CharData token.
      • Added NewText to create a parentless text CharData token.
      • Added CharData.IsCData to detect if the token contains a CDATA section.
      • Added CharData.IsWhitespace to detect if the token contains whitespace inserted by one of the document Indent functions.
      • Modified Element.SetText so that it replaces a run of consecutive character data tokens following the element's opening tag (instead of just the first one).
    • New "tail text" support.
      • Added the Element.Tail method, which returns the text immediately following an element's closing tag.
      • Added the Element.SetTail method, which modifies the text immediately following an element's closing tag.
    • New element child insertion and removal methods.
      • Added the Element.InsertChildAt method, which inserts a new child token before the specified child token index.
      • Added the Element.RemoveChildAt method, which removes the child token at the specified child token index.
    • New element and attribute queries.
      • Added the Element.Index method, which returns the element's index within its parent element's child token list.
      • Added the Element.NamespaceURI method to return the namespace URI associated with an element.
      • Added the Attr.NamespaceURI method to return the namespace URI associated with an element.
      • Added the Attr.Element method to return the element that an attribute belongs to.
    • New Path filter functions.
      • Added [local-name()='val'] to keep elements whose unprefixed tag matches the desired value.
      • Added [name()='val'] to keep elements whose full tag matches the desired value.
      • Added [namespace-prefix()='val'] to keep elements whose namespace prefix matches the desired value.
      • Added [namespace-uri()='val'] to keep elements whose namespace URI matches the desired value.

    Bug Fixes

    • A default XML CharSetReader is now used to prevent failed parsing of XML documents using certain encodings. (Issue).
    • All characters are now properly escaped according to XML parsing rules. (Issue).
    • The Document.Indent and Document.IndentTabs functions no longer insert empty string CharData tokens.

    Deprecated

    • Element
      • The InsertChild method is deprecated. Use InsertChildAt instead.
      • The CreateCharData method is deprecated. Use CreateText instead.
    • CharData
      • The NewCharData method is deprecated. Use NewText instead.
    Open source →
  57. v1.0.2-0.20200718192613-4a2f8b9d084c 18 Jul 2020 pre-release

    Nothing published for this version

  58. v1.0.2-0.20190201001750-30832cc4f312 01 Feb 2019 pre-release

    Nothing published for this version

  59. v1.0.2-0.20190127080007-346d4ae1e96f 27 Jan 2019 pre-release

    Nothing published for this version

  60. v1.0.2-0.20190126180210-1d33bca5f3a7 26 Jan 2019 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive