Quantcast
Channel: Adobe Community : Unanswered Discussions - General and cross-application scripting
Viewing all articles
Browse latest Browse all 84

XML parsing with JS works on Mac -not Windows HELP!

$
0
0

Hi,

I created an Illustrator CS3 JS script that parses XML successfully on Mac.

When run on Windows it fails to recognize the elements.

Client is waiting for this to work and I am out of answers...

 

Any ideas/thoughts?

Are the paths different?

 

on Mac: FundXmlCount=17

on Windows: FundXmlCount=0

Here's the script:

var dataFolderPath = /path/to/directory/";

var dataFile = new File(dataFolderPath+dataFileName);

dataFile.open ("r");

dataFile.seek(0);

var xmlText = dataFile.read ();

var FundXmlObject = new XML (xmlText);

var FundXmlCount = FundXmlObject.Fund.length();

return FundXmlCount;


Viewing all articles
Browse latest Browse all 84

Latest Images

Trending Articles





Latest Images