Xml.Win.msxmldom.LoadFromXMLString
Delphi
function LoadFromXMLString(const Doc: IXMLDOMDocument; const XML: string): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall LoadFromXMLString(const _di_IXMLDOMDocument Doc, const System::UnicodeString XML);
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | Xml.Win.msxmldom.pas Xml.Win.msxmldom.hpp |
Xml.Win.msxmldom | Xml.Win.msxmldom |
Beschreibung
Lädt ein DOM-Dokument aus einem XML-String. Verwenden Sie zum Laden eines XML-Strings in ein TMSDOMDocument den folgenden Code:
// Doc is a TMSDOMDocument Doc := TMSDOMDocument.Create(CreateDOMDocument); LoadFromXMLString(Doc.MSDocument, '<t>v</t>');
Auch der folgende Code ist möglich:
// Doc is a TMSDOMDocument Doc := TMSDOMDocument.Create(CreateDOMDocument); Doc.MSDocument.loadXML('<r>s</r>');