This sounds like a Flex question rather than Data Services. Try reposting on the Flex forums.
No, I need to do this with in pdf Ineractive Form.
I think it possible.
Here is my scipt // don't work
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
app.alert(projectXML); // don't work
var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Title>Title of my test project</Title>
<DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
Sorry for the confusion. I thought you were working with a Flex form.
This forum is for Data Services, which is a server product with client APIs that are primarily Flex/ActionScript APIs.
I think the forum you want for PDF forms is this one:
There are other PDF-related forums here:
Thank you Mike, I posted my question in suggested forum.