The OpenD Programming Language

Document.this

Creates a document with the given source data. If you want HTML behavior, use caseSensitive and struct set to false. For XML mode, set them to true.

Please note that anything after the root element will be found in piecesAfterRoot. Comments, processing instructions, and other special tags will be stripped out b default. You can customize this by using the zero-argument constructor and setting callbacks on the parseSawComment, parseSawBangInstruction, parseSawAspCode, parseSawPhpCode, and parseSawQuestionInstruction members, then calling one of the parseUtf8, parseGarbage, or parse functions. Calling the convenience method, enableAddingSpecialTagsToDom, will enable all those things at once.

  1. this(string data, bool caseSensitive, bool strict)
    class Document
    this
    (
    string data
    ,
    bool caseSensitive = false
    ,
    bool strict = false
    )
  2. this()

See Also

Meta