Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

GeneralError: Operation failed.

Avatar

Former Community Member
Hi there,



I have the following java script and am trying to load an xml document onto a particular node but it does not work. I have tried this on various other nodes and would like to know what i am doing wrong.



According to the xfa specification this is posible.



Can someone please help as this is urgent and critical to the project which i am busy with.



May Java Script

============================================================

xfa.data.loadXML("/C/Projects/Developement/Data/ImportData_simple.xml", false, true);



Error Message

============================================================

GeneralError: Operation failed.

XFAObject.loadXML:1:click undefined:Exec

Xml parsing error: not well-formed (invalid token) (error code 4), line 1, column 1 of file
1 Reply

Avatar

Former Community Member
The loadXML method takes the actual XML text, not a filename..

xfa.data.loadXML("");

You'd need to get the XML data into a string through some other mechanism (like SOAP or through a data connection) before passing it to loadXML.
--
stevex, Designer Guy
Adobe Systems