在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
出自:http://stackoverflow.com/questions/446635/schema-validation-with-msxml-in-delphi uses MSXML2_TLB That is: // Type Lib: C:\Windows\system32\msxml4.dll // LIBID: {F5078F18-C551-11D3-89B9-0000F81FE221} function TfrmMain.ValidXML( const xmlFile: String; const xsdFile: String; out err: IXMLDOMParseError): Boolean; var xml, xsd: IXMLDOMDocument2; cache: IXMLDOMSchemaCollection; begin xsd := CoDOMDocument40.Create; xsd.Async := False; xsd.load(xsdFile); cache := CoXMLSchemaCache40.Create; cache.add('http://the.uri.com/schemalocation', xsd); xml := CoDOMDocument40.Create; xml.async := False; xml.schemas := cache; Result := xml.load(xmlFile); if not Result then err := xml.parseError else err := nil; end; |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论