🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.acrobat.sdk
Article #143

Re: Using SDK to Extract Form Data to XML

#143
From: Tarek_Adnan_Faham
Date: Thu, 26 Mar 2009 02:47
29 lines
1755 bytes
Dear PDL,

I am now back on the same project, but this time, I need to write a VB.NET Program to fix a field value on a couple of hundreds of LiveCycle Forms.

I used before this IAC command:

jso.xfa.data.saveXML()

to Access the Field Data in XML Format, and everything worked fine.

Now, I want to use "loadXML()" to do the opposite, ie, change the values of some data fields.

I am using .NET XML Document, to manipulate the data fields as follows:

Dim XMLdoc As New Xml.XmlDocument
Dim theXML as string = jso.xfa.data.saveXML()
XMLdoc.LoadXml(theXML)

Then I am navigating inside the XMLDoc object, change the elements as required.

Then, I am using this command to update back the XML:

jso.xfa.data.loadXML(XMLDoc.innerXML, 0 , 1)

I noticed that the above command will work successfully only for plain English text, but if the some of the element values have Arabic Text in them, they will be converted to dots "......." ???!!! The Arabic Text encoding I am using is UTF-8.

I tried everything possible to make it work, but no luck !

Do you have any idea how I can use "loadXML" and make it work for Arabic Unicode Text UTF-8 ?
Technical Details
Message-ID: <59b4be28.48@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b4be28.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10177e,15bd3d3457f0f3fc
X-Google-Attributes: gid10177e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Tarek_Adnan_Faham@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.acrobat.sdk
Subject: Re: Using SDK to Extract Form Data to XML
Message-ID: <59b4be28.48@webcrossing.la2eafNXanI>
Date: Wed, 25 Mar 2009 19:47:22 -0700
References: <59b4be28.-1@webcrossing.la2eafNXanI>
Lines: 37
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit