anchor.diff:    Result := S_OK = CheckHR(HR);
   end;
   
  +function r(const c: cardinal; m: string): rErrorDecription; inline;
  +begin
  +  Result.Code := c;
  +  Result.Message := m;
  +end;
  +
  +begin
  +
  +  XMLLiteErrorMessages := TXMLLiteKnownErrors.Create(
  +
  +    r($C00CEE01, 'unexpected end of input'),
  +    r($C00CEE02, 'unrecognized encoding'),
  +    r($C00CEE03, 'unable to switch the encoding'),
  +    r($C00CEE04, 'unrecognized input signature'),
  +
  +    r($C00CEE21, 'whitespace expected'),
  +    r($C00CEE22, 'semicolon expected'),
  +    r($C00CEE23, '">" expected'),
  +    r($C00CEE24, 'quote expected'),
  +    r($C00CEE25, 'equal expected'),
  +    r($C00CEE26, 'wfc: no "<" in attribute value'),
  +    r($C00CEE27, 'hexadecimal digit expected'),
  +    r($C00CEE28, 'decimal digit expected'),
  +    r($C00CEE29, '"[" expected'),
  +    r($C00CEE2A, '"(" expected'),
  +    r($C00CEE2B, 'illegal xml character'),
  +    r($C00CEE2C, 'illegal name character'),
  +    r($C00CEE2D, 'incorrect document syntax'),
  +    r($C00CEE2E, 'incorrect CDATA section syntax'),
  +    r($C00CEE2F, 'incorrect comment syntax'),
  +    r($C00CEE30, 'incorrect conditional section syntax'),
  +    r($C00CEE31, 'incorrect ATTLIST declaration syntax'),
  +    r($C00CEE32, 'incorrect DOCTYPE declaration syntax'),
  +    r($C00CEE33, 'incorrect ELEMENT declaration syntax'),
  +    r($C00CEE34, 'incorrect ENTITY declaration syntax'),
  +    r($C00CEE35, 'incorrect NOTATION declaration syntax'),
  +    r($C00CEE36, 'NDATA expected'),
  +    r($C00CEE37, 'PUBLIC expected'),
  +    r($C00CEE38, 'SYSTEM expected'),
  +    r($C00CEE39, 'name expected'),
  +    r($C00CEE3A, 'one root element'),
  +    r($C00CEE3B, 'wfc: element type match'),
  +    r($C00CEE3C, 'wfc: unique attribute spec'),
  +    r($C00CEE3D, 'text/xmldecl not at the beginning of input'),
  +    r($C00CEE3E, 'leading "xml"'),
  +    r($C00CEE3F, 'incorrect text declaration syntax'),
  +    r($C00CEE40, 'incorrect xml declaration syntax'),
  +    r($C00CEE41, 'incorrect encoding name syntax'),
  +    r($C00CEE42, 'incorrect public identifier syntax'),
  +    r($C00CEE43, 'wfc: pes in internal subset'),
  +    r($C00CEE44, 'wfc: pes between declarations'),
  +    r($C00CEE45, 'wfc: no recursion'),
  +    r($C00CEE46, 'entity content not well formed'),
  +    r($C00CEE47, 'wfc: undeclared entity'),
  +    r($C00CEE48, 'wfc: parsed entity'),
  +    r($C00CEE49, 'wfc: no external entity references'),
  +    r($C00CEE4A, 'incorrect processing instruction syntax'),
  +    r($C00CEE4B, 'incorrect system identifier syntax'),
  +    r($C00CEE4C, '"?" expected'),
  +    r($C00CEE4D, 'no "]]>" in element content'),
  +    r($C00CEE4E, 'not all chunks of value have been read'),
  +    r($C00CEE4F, 'DTD was found but is prohibited'),
  +    r($C00CEE50, 'Invalid xml:space value'),
  +
  +    r($C00CEE61, 'illegal qualified name character'),
  +    r($C00CEE62, 'multiple colons in qualified name'),
  +    r($C00CEE63, 'colon in name'),
  +    r($C00CEE64, 'declared prefix'),
  +    r($C00CEE65, 'undeclared prefix'),
  +    r($C00CEE66, 'non default namespace with empty uri'),
  +    r($C00CEE67, '"xml" prefix is reserved and must have the http://www.w3.org/XML/1998/namespace URI'),
  +    r($C00CEE68, '"xmlns" prefix is reserved for use by XML'),
  +    r($C00CEE69, 'xml namespace URI ( http://www.w3.org/XML/1998/namespace ) must be assigned only to prefix "xml"'),
  +    r($C00CEE6A, 'xmlns namespace URI ( http://www.w3.org/2000/xmlns/ ) is reserved and must not be used'),
  +
  +    r($C00CEE81, 'max element depth was exceeded'),
  +    r($C00CEE82, 'max number of expanded entities was exceeded'),
  +
  +    r($C00CEF01, 'writer: specified string is not whitespace'),
  +    r($C00CEF02, 'writer: namespace prefix is already declared with a different namespace'),
  +    r($C00CEF03, 'writer: cannot use prefix with empty namespace URI'),
  +    r($C00CEF04, 'writer: duplicate attribute'),
  +    r($C00CEF05, 'writer: can not redefine the xmlns prefix'),
  +    r($C00CEF06, 'writer: xml prefix must have the http://www.w3.org/XML/1998/namespace URI'),
  +    r($C00CEF07, 'writer: xml namespace URI ( http://www.w3.org/XML/1998/namespace ) must be assigned only to prefix "xml"'),
  +    r($C00CEF08, 'writer: xmlns namespace URI ( http://www.w3.org/2000/xmlns/ ) is reserved and must not be used'),
  +    r($C00CEF09, 'writer: namespace is not declared'),
  +    r($C00CEF0A, 'writer: invalid value of xml:space attribute (allowed values are "default" and "preserve")'),
  +    r($C00CEF0B, 'writer: performing the requested action would result in invalid XML document'),
  +    r($C00CEF0C, 'writer: input contains invalid or incomplete surrogate pair'),
  +
  +    r($C00CE01D, 'XML: Invalid decimal digit.'),
  +    r($C00CE01E, 'XML: Invalid hexadecimal digit.'),
  +    r($C00CE01F, 'XML: Invalid Unicode characters.'),
  +    r($C00CE06E, 'XML: Invalid charset encoding.')
  +
  +  );
  +
   end.
  
positive.code:                                       const Value: PWideChar; const ValueLength: Cardinal ): HRESULT; stdcall;
  
          function WriteCData(const pwszText: PWideChar): HRESULT; stdcall;
          function WriteCharEntity(const wch: WideChar): HRESULT; stdcall;
          function WriteChars(const Chars: PWideChar; const Count: Cardinal): HRESULT; stdcall;
  
          function WriteComment(const pwszComment: PWideChar): HRESULT; stdcall;
  
negative.code:     XmlStandalone_No = 2
      );
  
    XmlWriterProperty = (
      XmlWriterProperty_MultiLanguage = 0,
      XmlWriterProperty_Indent = 1,
  