Skip to content

Instantly share code, notes, and snippets.

@marianomike
Created September 6, 2016 05:45
Show Gist options
  • Save marianomike/d5f877b601ad1639e7dc00def79a9fd5 to your computer and use it in GitHub Desktop.
Save marianomike/d5f877b601ad1639e7dc00def79a9fd5 to your computer and use it in GitHub Desktop.
//create the xml file
var xmlData = [xmlObj XMLDataWithOptions:NSXMLNodePrettyPrint];
//name the xml file the name of the layer and save it to the folder
[xmlData writeToFile:file_path+layerName+".xml"];
var alertMessage = layerName+".xml saved to: " + file_path;
alert("Layer XML Exported!", alertMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment