We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb202c commit 48ab4f4Copy full SHA for 48ab4f4
FB2Library/FB2File.cs
@@ -103,7 +103,7 @@ public void Load(XDocument fileDocument,bool loadHeaderOnly)
103
104
105
_styles.Clear();
106
- IEnumerable<XElement> xStyles = fileDocument.Elements(_fileNameSpace + StyleElement.StyleElementName).ToArray();
+ IEnumerable<XElement> xStyles = fileDocument.Root.Elements(_fileNameSpace + StyleElement.StyleElementName).ToArray();
107
// attempt to load some bad FB2 with wrong namespace
108
if (!xStyles.Any())
109
{
0 commit comments