GithubHelp home page GithubHelp logo

hs-dtd-text's Introduction

dtd-text

A Haskell library which provides means to parse XML Document Type Declaration (DTD) documents. This library is meant to be used in concert with dtd-types. Itself is based around the xml-types package.

This fork initially updates some of the libraries and dependencies. The following libraries are no longer needed:

  • attoparsec-text
  • blaze-builder

Upper bounds on all packages, except dtd-types, has been relaxed as this seems to be a general best practice among the Haskell community moving forward. dtd-text also does not have any external library dependencies.

For more basic information please check the Project page.

LICENSE

dtd-text is licensed via BSD3

hs-dtd-text's People

Contributors

m15k avatar

Watchers

 avatar  avatar

Forkers

jamesdbrock

hs-dtd-text's Issues

Parser stops on attribute-value or entity-value

Attribute values must be pruned as an example:

<!ELEMENT square EMPTY>
<!ATTLIST square width CDATA "0">

will fail on square width attribute for square. the following will work fine:

<!ELEMENT square EMPTY>
<!ATTLIST square width CDATA #REQUIRED>

This would force the developer to either put in a 'with default' attribute lookup or smart constructor. Not to mention that it does take the serialization format out of sync between parties.

Does not handle Internal or External DTD Declaration

Must prune !DOCTYPE element the following examples will not parse:

<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>

(OR)

<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "note.dtd">
...

Add CHANGELOG

Add file 'CHANGELOG' in root project folder. Hackage2 supports this feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.