Results 1 to 6 of 6

Thread: SgmlReader NuGet Package?

  1. #1

    Default SgmlReader NuGet Package?

    Hi All,

    Have you thought about making a NuGet package for SgmlReader? It'll make it a lot easier for people to start using the library. I'd be happy to create one for you and post it to the feed to get started.

    If you haven't heard of NuGet, please check out my blog post here: http://haacked.com/archive/2010/10/0...e-manager.aspx

    and the CodePlex website - http://nuget.codeplex.com/

    If I create one for you, should I simply list "Mindtouch" as the author?

    Phil

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Haacked,

    That's a great idea. I've been meaning to look into it, but just haven't gotten around to it. You can find the most recent version on GitHub. Let me know if there's anything I can help with.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  3. #3

    Default

    Hello,

    I just migrated my application from SgmlReader 1.8.7 (which I download from GitHub) to 1.8.8 (which I installed from Nuget) and my application stop working correctly. I spend some time to investigate and I believe than Nuget version does not contain all components of the library. It does not contain DTD schema so it is not producing correct output xhtml. Also the file size for version 1.8.7 is 143 kbyte and for 1.8.8 62 kbyte

    Is it possible to fix it?

    Thanks,
    Alex.
    Last edited by shapovalov; 01-08-2013 at 04:15 AM.
    Alex Shapovalov - .net software developer
    developer resume

  4. #4

    Default

    The problem can be solved by putting Html.dtd file in the folder with application and setting SystemLiteral property with the path to file
    Code:
                    sgmlReader.DocType = "Html";
                    sgmlReader.SystemLiteral = "Html.dtd";
    But still having it as embedded resources will be easy i believe, especially for developers who just start using the library.
    Alex Shapovalov - .net software developer
    developer resume

  5. #5
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Thanks for reporting this. I'm taking a look right now. The built-in DTD is a must. That's core to what SgmlReader is supposed to do. The nuget integration was done through a pull request by another user. I frankly do not have a whole lot of experience with nuget, so I never looked into it. And since there was no feature changes otherwise, I never tried the newer build either.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  6. #6
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    The DTD is embedded in the build as it should. However, the DocType needs to be set explicitly. Did you see this page for instructions? http://developer.mindtouch.com/en/docs/SgmlReader It's also in the readme.md file that is included on GitHub.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts