ox
ox copied to clipboard
Ruby Optimized XML Parser
Hello! It possible use `StringIO` in `Ox::Builder`? ```ruby require 'ox' io = StringIO.new b = Ox::Builder.io(io, indent: 2) # Here I get an exception: `io': expected an IO that has...
I have a PR ready to go for this feature but this can be for discussion of the general concept. - Background info: https://en.wikipedia.org/wiki/String_interning - Available to C extensions since...
Request to include a new mode to load which prepends xml attributes with a given string or a default
At the moment there is no way of discerning if the hash returned from `Ox.load(xml, mode: :hash)` contains attributes, and if it does, which keys they are. Another hash mode...
Here's a corner case I ran into when trying to parse the chemical-mime project's XML: ``` irb(main):002:0> Ox::VERSION => "2.14.5" irb(main):003:0> Ox::load_file('/home/okeeblow/Works/DistorteD/CHECKING-YOU-OUT/mime/packages/third-party/chemical-mime/chemical-mime-database.xml.in') (irb):3:in `load_file': invalid format, dectype not terminated at...
Hello again :) I've been experimenting with `Ractor`s since upgrading to Ruby 3.0 for https://github.com/ohler55/ox/issues/275 but quickly ran into `Ractor::UnsafeError` when trying to call `Ox::sax_parse` in anything except the main...
Hello Peter, thank you so much for so efficient `Ox` and `Oj` gems! I am trying to replace `Savon` (which uses `Nokogiri` for XML parsing) with `Ox` in multiple heavily...
Ox.load fails with UTF-8 characters in xml element names in hash mode ``` xml = "TEST" Ox.load(xml, mode: :hash) EncodingError: invalid symbol in encoding US-ASCII :"\xC5\x84" ```
``` [:start_element, :child], [:end_element, :child], ? [:error, "Start End Mismatch: element 'top ' not closed", 4, 0], ? (null) ? ??? [:end_element, :top]] =============================================================================== ....................................................3: [:error, "Start End Mismatch: element...
Forth run a the autofixing the Layout related Rubocop rules. Most of these have options allowing overriding specific things if they style isn't preffered. This is the last of the...
Hi there, I've been working on a new fuzzer for Ruby, and I used your library as a test harness. I've found a number of AddressSanitizer memory violations occurring when...