Expand my Community achievements bar.

xfa.host.importdata enquiry

Avatar

Level 1

Hi,

I am using the above product to design my forms.

and i am able to import xml file using xfa.host.importdata("myxmlfile.xml");

Is there a way i can import using xml string object itself?

i.e. xfa.host.importdata("<?xml version="1.0" encoding="UTF-8"?>.............................");

or any other form, other than using file name.

Regards

1 Reply

Avatar

Level 5

Hi,

You should be able to use the  XMLData object.

var cXMLDoc = "<family name = 'Robat'><grandad id = 'm1' name = 'A.C.' gender='M'><child> m2 </child><personal><income>100000</income></personal></grandad></family>"

var myXML= XMLData.parse( cXMLDoc, false);

Hope this helps

Malcolm