WinXP在不同机器上的IDE.LibXML2.dll从2010年到2012年,两台机器的版本/日期各不相同.
我libxml2.pas从SourceForge(2.7.3)安装我在XE2上创建了3个应用程序,一个控制台和一个VCL表单,在D2007上创建了一个VCL表单.
如果我在Libxml2.dll我的app运行中没有引用一个函数,如果我引用一个函数,例如Doc:=xxmlParseFile(xnldocptr)应用程序在启动时崩溃了InitUnits.
program Project25;
uses
Forms,
Unit26 in 'Unit26.pas' {Form26};
{$R *.res}
begin<---------- Access violation here
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm26, Form26);
Application.Run;
end.
Run Code Online (Sandbox Code Playgroud)

// Main Firm使用Libxml2;
{$R *.dfm}
procedure TForm26.FormCreate(Sender: TObject); var Doc: xmlDocPtr;
begin
Doc:=xmlParseFile('c:\a.xml');
xmlFreeDoc(Doc);
end
Run Code Online (Sandbox Code Playgroud)
我可以看到已加载模块LibXML2.
我做的事情愚蠢还是缺少某些东西?
使用Delphi XE2 TXMLDocument和MSXML
<description>£1.00 x 100</description> parsing error as does
<description><![CDATA[£1.00 x 100]]></description> parsing error as does
Run Code Online (Sandbox Code Playgroud)
£字符未标记为无效字符.
这是一个问题吗?更重要的是建议的解决方法.
TIA
以法莲