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.
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.
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
Copy link to clipboard
Copied
Hello, do you find a way to do it? I got the same problem...Thanks for your answer!