Difference between revisions of "TXMLDocument/es"

From Lazarus wiki
Jump to navigationJump to search
(→‎Declaración: Use pascal highlighter)
Line 4: Line 4:
  
 
Esto está extraido desde dom.pas
 
Esto está extraido desde dom.pas
<source>
+
<syntaxhighlight lang=pascal>
 
TXMLDocument = class(TDOMDocument)
 
TXMLDocument = class(TDOMDocument)
 
   private
 
   private
Line 18: Line 18:
 
     property XMLVersion: DOMString read FXMLVersion write SetXMLVersion;
 
     property XMLVersion: DOMString read FXMLVersion write SetXMLVersion;
 
   end;
 
   end;
</source>
+
</syntaxhighlight>
  
 
Volver a [[fcl-xml]] resumen.
 
Volver a [[fcl-xml]] resumen.

Revision as of 00:20, 1 March 2020

La clase TXMLDocument alberga datos XML , e.g. desde un fichero. Es hijo de TDOMDocument.

Declaración

Esto está extraido desde dom.pas

TXMLDocument = class(TDOMDocument)
  private
    FXMLVersion: DOMString;
    procedure SetXMLVersion(const aValue: DOMString);
  public
    // Estos campos son extensiones al interface DOM:
    Encoding, StylesheetType, StylesheetHRef: DOMString;

    function CreateCDATASection(const data: DOMString): TDOMCDATASection; override;
    function CreateProcessingInstruction(const target, data: DOMString): TDOMProcessingInstruction; override;
    function CreateEntityReference(const name: DOMString): TDOMEntityReference; override;
    property XMLVersion: DOMString read FXMLVersion write SetXMLVersion;
  end;

Volver a fcl-xml resumen.

Ver también

xmlread, xmlwrite, TDOMDocument