stop rdf parsing at rdf:RDF tag

This commit is contained in:
mmacia committed 2026-07-14 20:51:34 +00:00
1 parent ecc2286733
commit c4b70323c6
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ defmodule FeedReader.Formats.RDF do
limits: XMLResourceLimits.new(opts),
frames: [],
channel: nil,
root_closed: false,
error: nil
}
+2 -1
View File
@@ -96,5 +96,6 @@ defmodule FeedReader.Formats.RDF.Handler do
{:ok, %{state | frames: [%{parent | children: children} | rest]}}
end
defp close_element(_frame, _value, state), do: {:ok, state}
defp close_element(_frame, _value, %{frames: []} = state),
do: {:halt, %{state | root_closed: true}}
end