This content has been marked as final. Show 7 replies
Embed it as a dataObject in the document and then get the contents as a string.
Thanks for the answer. What is this this dataObject and how to embed it in the document? I can't find it in adobe designer 7 help.
You are right there are more than one line in it. But the line which I posted above is the line which parse the string cXMLDoc
Consider the XML document as first introduced in the example following the XMLData.applyXPath
var x = XMLData.parse( cXMLDoc, false );
var y = x.family.name; // An XFAObject
console.println(y.value); // Output to console is "Robat"
Get information about dad.
y = x.family.dad.id; // An XFAObject
console.println(y.value); // Output to console is "m2"
y = x.family.dad.name.value; // y = "Bob"
x.family.dad.name.value = "Robert"; // Change name to "Robert"
y = x.family.dad.name.value; // y = "Robert"
y = x.family.dad.personal.income.value; // y = "75000"
x.family.dad.personal.income.value = "80000"; // Give dad a raise
> Consider the XML document as first introduced in the example following the XMLData.applyXPath