aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/xml/xml_reader.odin
Commit message (Collapse)AuthorAgeFilesLines
* Remove all `core:os` imports from JS targetsJeroen van Rijn6 days1-14/+0
| | | | Fix `local_tz_name` on FreeBSD.
* `core:os` -> `core:os/os` for CSV, INI, and XMLJeroen van Rijn7 days1-9/+9
| | | | | Also had to vendor `core:encoding/ini` into `core:os/os2` for the user directories on *nix, as it used that package to read `~/.config/user-dirs.dirs`, causing an import cycle.
* encoding/xml: pass allocator on destroyIsabella Basso2026-01-251-1/+2
|
* Comments before first emlement not being capturedStudebakerGuy2026-01-071-1/+1
| | | | | | The xml library was not correctly detect that a comment occured before the first element. This addresses the issue, but the comment incorrectly includes --.
* Address issue identifying of CDATAStudebakerGuy2025-12-231-1/+2
| | | | | | The XML library wasn't identifying CDATA and skipping over it. This was found when CDATA contained a <. This patch addresses that issue.
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-281-1/+1
| | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* Render examples.Jeroen van Rijn2025-10-101-3/+3
|
* Fix #4705Jeroen van Rijn2025-06-091-1/+2
| | | | Allocate `doc.tokenizer`, and free it in `destroy`.
* Add commentJeroen van Rijn2025-04-191-0/+4
|
* Fix parsing of CDATA tags (#5059)Jeroen van Rijn2025-04-191-44/+55
| | | Fixes #5054
* core: improve package doc comments for the documentation generatorLaytan Laats2024-09-031-23/+5
|
* Update XML reader to normalize whitespace, part 1.Jeroen van Rijn2024-06-121-10/+14
|
* Update numerous package declaration namesgingerBill2024-04-181-1/+1
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-2/+2
|
* Fix comments in xml_reader.odin for better rendering in documentationKostas Tsiligkiris2024-01-171-130/+53
|
* Fix formatting of package documentation stringKostas Tsiligkiris2024-01-171-18/+18
|
* Fix #2684Jeroen van Rijn2023-07-281-27/+15
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-101-1/+3
|
* Minor name changes within `core:encoding/xml` for consistencygingerBill2022-05-121-26/+24
|
* [xml] Add `parse_from_string` overload.Jeroen van Rijn2022-04-301-3/+10
| | | | | `parse` now takes either a `[]u8` slice or a string. `load_from_file` takes a path string.
* [i18n] QT Linguist TS reader.Jeroen van Rijn2022-04-291-1/+0
|
* [xml] Speedup.Jeroen van Rijn2022-04-281-128/+148
|
* [xml] Initial optimization.Jeroen van Rijn2021-12-061-22/+46
|
* [xml] Add option.Jeroen van Rijn2021-12-051-3/+23
|
* [xml] Implement optional unboxing of CDATA and decoding of tag values.Jeroen van Rijn2021-12-051-21/+20
|
* [core:encoding/entity] Add new package to decode &<entity>; entities.Jeroen van Rijn2021-12-051-2/+0
| | | | Includes generator to generate a lookup for named entitiess.
* [xml] Improvements.Jeroen van Rijn2021-12-051-0/+2
|
* [xml] Improve CDATA + comment handling in tag body.Jeroen van Rijn2021-12-051-34/+2
|
* [xml] Slight optimization.Jeroen van Rijn2021-12-051-2/+2
| | | | | | About a 5% speed bump. More rigorous optimization later.
* [xml] Robustness improvement.Jeroen van Rijn2021-12-051-24/+51
| | | | Can now parse https://www.w3.org/2003/entities/2007xml/unicode.xml no problem.
* [xml] Use `io.Writer` for `xml.print(doc)`.Jeroen van Rijn2021-12-051-1/+1
|
* [xml] Initial implementation of `core:encoding/xml`.Jeroen van Rijn2021-12-051-0/+651
A from-scratch XML implementation, loosely modeled on the [spec](https://www.w3.org/TR/2006/REC-xml11-20060816). Features: - Supports enough of the XML 1.0/1.1 spec to handle the 99.9% of XML documents in common current usage. - Simple to understand and use. Small. Caveats: - We do NOT support HTML in this package, as that may or may not be valid XML. If it works, great. If it doesn't, that's not considered a bug. - We do NOT support UTF-16. If you have a UTF-16 XML file, please convert it to UTF-8 first. Also, our condolences. - <[!ELEMENT and <[!ATTLIST are not supported, and will be either ignored or return an error depending on the parser options. TODO: - Optional CDATA unboxing. - Optional `&gt;`, `&#32;`, `&#x20;` and other escape substitution in tag bodies. - Test suite MAYBE: - XML writer? - Serialize/deserialize Odin types?