草庐IT

PartoBeetaXMLVersion

全部标签

xml - Delphi 和 XML CDATA

如何使用Delphi从XML文件中提取CData?这是我的XML文件: 最佳答案 与OmniXML你会这样做:usesOmniXML,OmniXMLUtils;functionGetScriptCData(constfileName:string):stringvarxml:IXMLDocument;beginResult:='';xml:=CreateXMLDoc;ifXMLLoadFromFile(xml,fileName)thenResult:=GetNodeCData(xml.SelectSingleNode('/root/