You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: failed to encode as pretty: xml.Decoder.Token() - XML syntax error on line 1: expected attribute name in element
when fed this valid XML/RSS file:
<?xml version="1.0" encoding="UTF-8"?>
<rssxmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:content="http://purl.org/rss/1.0/modules/content/"xmlns:atom="http://www.w3.org/2005/Atom"version="2.0">
<channel>
<title>Read Rust - All</title>
<description><![CDATA[All posts on Read Rust]]></description>
<link>https://readrust.net/</link>
<atom:linkrel="self"href="https://readrust.net/all/feed.rss"/>
<lastBuildDate>Tue, 22 Oct 2019 13:00:00 +0000</lastBuildDate>
<item>
<guidisPermaLink="false">79f41426-ad58-4eac-9adb-88b27c2a63ba</guid>
<pubDate>Wed, 9 Oct 2019 00:00:00 +0000</pubDate>
<title>How I handle errors in Rust</title>
<link>https://blog.kiani.io/blog/how-i-handle-errors-in-rust/</link>
<dc:creator>Ashkan Kiani</dc:creator>
<description><![CDATA[derive_more is a crate which has many proc macros, amongst which is a macro for deriving From for structs, enums, and newtypes. From is the basic mechanism for using ? ergonomically in a function which returns Result<T, Error>. Almost everything I write has the derive_more crate as a dependency, and the following pattern for handling errors.]]></description>
</item>
</channel>
</rss>
The error seems to be caused by not handling the angle brackets in Result<T, Error> inside the CDATA.
The text was updated successfully, but these errors were encountered:
faq
fails with this error:when fed this valid XML/RSS file:
The error seems to be caused by not handling the angle brackets in
Result<T, Error>
inside the CDATA.The text was updated successfully, but these errors were encountered: