【问题标题】:How to parse XML file via InDesign script如何通过 InDesign 脚本解析 XML 文件
【发布时间】:2018-04-17 15:33:46
【问题描述】:

标题不言自明。我试图在 JavaScript 中寻找解析器,但它们似乎在 InDesign 中不起作用。有人知道怎么做吗?

【问题讨论】:

标签: javascript xml dom adobe-indesign


【解决方案1】:

var xmlFile = File( "/some/xml/file/url" );
xmlFile.open("r");
var myXMLObject = XML ( xmlFile.read() );
xmlFile.close();
alert( myXMLObject.name() );

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 1970-01-01
    • 2018-05-23
    相关资源
    最近更新 更多