Can i create a xmlDocument in Adobe ExtendScript toolkit

Apr 11, 2013

Copy link to clipboard

Copied

hi all,

i am using Adobe extendScript toolkit to write plugin for Adobe illustrator.

and the same time i also want to convert my application object in to xml Document .

first of all i want to know whether its is possilble? if yes know how ?

as of know i used the given below code but its throwing some error "DOMParser dont not have constructor "


function createXmlDocument(string)
{
    var doc;
    if (window.DOMParser)
    {
        parser = new DOMParser();
        doc = parser.parseFromString(string, "application/xml");
    }
    else // Internet Explorer
    {
        doc = new ActiveXObject("Microsoft.XMLDOM");
        doc.async = "false";
        doc.loadXML(string);
    }
    return doc;
}

NOTE: actully i want to convert app.activeDocument in to xml documents (exc : docutmen1.xml).

thanks

Regards

Ashish.

TOPICS
SDK

Views

693

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Can i create a xmlDocument in Adobe ExtendScript toolkit

Apr 11, 2013

Copy link to clipboard

Copied

hi all,

i am using Adobe extendScript toolkit to write plugin for Adobe illustrator.

and the same time i also want to convert my application object in to xml Document .

first of all i want to know whether its is possilble? if yes know how ?

as of know i used the given below code but its throwing some error "DOMParser dont not have constructor "


function createXmlDocument(string)
{
    var doc;
    if (window.DOMParser)
    {
        parser = new DOMParser();
        doc = parser.parseFromString(string, "application/xml");
    }
    else // Internet Explorer
    {
        doc = new ActiveXObject("Microsoft.XMLDOM");
        doc.async = "false";
        doc.loadXML(string);
    }
    return doc;
}

NOTE: actully i want to convert app.activeDocument in to xml documents (exc : docutmen1.xml).

thanks

Regards

Ashish.

TOPICS
SDK

Views

694

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 11, 2013 0
Guide ,
Apr 12, 2013

Copy link to clipboard

Copied

This is the forum for the C++ SDK, I think you'd have better luck posting your question in the scripting forum:

http://forums.adobe.com/community/illustrator/illustrator_scripting

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 12, 2013 0
Paul5C92 LATEST
Dec 03, 2020

Copy link to clipboard

Copied

Hello, do you find a way to do it? I got the same problem...Thanks for your answer! 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 03, 2020 0
Resources