Skip to content

XML::DTD constructor documentation #168

@slimdave

Description

@slimdave

I may be misunderstanding, but https://xml4r.github.io/libxml-ruby/LibXML/XML/Dtd.html gives public class methods of:

XML::Dtd.new("DTD string") → dtd
XML::Dtd.new("public", "system") → dtd
XML::Dtd.new("name", "public", "system", document) → external subset dtd
XML::Dtd.new("name", "public", "system", document, false) → internal subset dtd
XML::Dtd.new("name", "public", "system", document, true) → internal subset dtd 

The source identifies arguments as:

  // 1 argument -- string                            --> parsujeme jako dtd
  // 2 arguments -- public, system                   --> bude se hledat
  // 3 arguments -- public, system, name             --> creates an external subset (any parameter may be nil)
  // 4 arguments -- public, system, name, doc        --> creates an external subset (any parameter may be nil)
  // 5 arguments -- public, system, name, doc, true  --> creates an internal subset (all but last parameter may be nil)

Is the documentation incorrectly placing the "name" as the first parameter instead of the third in examples thre, four and five?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions