Skip to content

Commit

Permalink
Added OnixXmlTextReader class and OnixReplaceExtensions module.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaerith committed Mar 10, 2021
1 parent 1fa2d3c commit e6ef83b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OnixData/OnixData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<ItemGroup>
<Compile Include="Extensions\OnixDataExtensions.cs" />
<Compile Include="Extensions\OnixParserExtensions.cs" />
<Compile Include="Extensions\OnixReplaceExtensions.cs" />
<Compile Include="Legacy\OnixLegacyAudience.cs" />
<Compile Include="Legacy\OnixLegacyAudRange.cs" />
<Compile Include="Legacy\OnixLegacyBaseProduct.cs" />
Expand Down Expand Up @@ -74,6 +75,8 @@
<Compile Include="OnixLegacyParser.cs" />
<Compile Include="OnixLegacyPlusParser.cs" />
<Compile Include="OnixParser.cs" />
<Compile Include="OnixPlusParser.cs" />
<Compile Include="OnixXmlTextReader.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Version3\Content\OnixContentItem.cs" />
<Compile Include="Version3\Epub\OnixEpubUsageConstraint.cs" />
Expand Down
16 changes: 16 additions & 0 deletions OnixData/OnixXmlTextReader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.IO;
using System.Xml;

namespace OnixData
{
public class OnixXmlTextReader : XmlTextReader
{
public OnixXmlTextReader(FileInfo poFileInfo) : base(poFileInfo.FullName) { }

public override string NamespaceURI
{
get { return ""; }
}
}
}

0 comments on commit e6ef83b

Please sign in to comment.