Xfa.form.export xml into field

Avatar

Avatar

buildmeup

Avatar

buildmeup

buildmeup

19-11-2020

Hello i have a question about how to export xml into fields, because i cant find a way to do it, is it possible?

 

i know how to export our pdf into xml, by using 

xfa.host.exportData("", 0);

but how to export it on textfield, for example i have textField named with "xmlfield".

 

what should i do, ..xml.field.rawValue = ?? or xfa.host.exportData("..xmlfield", 0); its not working

Thanks in advance.

Export XML into Fields

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

19-11-2020

I think what you want to do is the saveXML() function:

Kosta_Prokopiu1_0-1605799313066.png

Kosta_Prokopiu1_1-1605799361262.png

 

Answers (1)

Answers (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

19-11-2020

Just use the saveXML() method.

 

Textfield.rawValue = xfa.data.saveXML("pretty");