Expand my Community achievements bar.

xml http request from pdf

Avatar

Former Community Member

Hi All,

One of my client has provided a url which provides me a simple xml file.

I just need to retrieve the xml tag values from the xml and use it in the pdf. I couldn't find a way to do it.

Is it there any way i can retrieve these xml values in my pdf?

Please find the code to retrive xml data using javascript.

xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

if (window.XMLHttpRequest)

{// code for IE7+, Firefox, Chrome, Opera, Safari

xmlhttp=new XMLHttpRequest();

}

else

{// code for IE6, IE5

xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

}

xmlhttp.open("GET","url link

",false);

Message was edited by: Abhishek110486

1 Reply

Avatar

Former Community Member

You will have to save the xml to a local file. Then you can create a new data connection from Designer and bind the fields on the form to the nodes in your xml structure. Once that is done you can open the form in Acrobat/Reader and import the xml file and the bindings that you setup will put the data from the ppropriate node into the bound field.

Make sense?

paul