Forum Discussion
Hi ckattookaran
Can you please develop on this? I had a look at the PDF api and cannot find any info. Neither on KB nor Community.
The only info I find is in below. Have you got a sample to share with us? Thanks
Dim si As _-_0_-_
Dim xml As _-_1_-_
Dim zipFileBytes() As _-_2_-_
Dim fileName As _-_3_-_
Dim systemXmlFileType As SystemXmlFileType
Dim applicationXmlFileType As ApplicationXmlFileType
Dim options As XmlLoadOptions
Dim value As TaskActivityItem
value = _-_4_-_.StartLoadXml(si, xml, zipFileBytes, fileName, systemXmlFileType, applicationXmlFileType, options)
Dim backgroundTask As TaskActivityItem = Nothing
ZipFile.CreateFromDirectory($"{strRuleLocation}", $"{strRuleLocation.Replace("Directory","")}\Rules.zip")
Dim bZipRules As Byte() = File.ReadAllBytes($"{strRuleLocation.Replace("Directory","")}\Rules.zip")
'Execute the load as a Background Task
backgroundTask = XmlLoadWcf.StartLoadXml(si, "", bZipRules, "Rules.zip", SystemXmlFileType.Unknown, ApplicationXmlFileType.ApplicationZipFile, Nothing)
This is a rule I'm using to Zip multiple XMLs and load them. The XML option (2nd parameter) is the XML string (if you are using one XML. The 3rd one is useful if you are loading a zip file (a package). If you are loading an Application XML, then you can set the SystemXMLFileType to Unknown. I've not used XMLLoadOptions.
- NicolasArgente2 years agoValued Contributor
Thanks. I will investigate that. For now I took the easy road with the ZIP.
Related Content
- 5 months ago
- 12 months ago