Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8050631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:07:40+00:00 2026-06-05T07:07:40+00:00

i am trying to import an xml in actionscript. I a mworking with the

  • 0

i am trying to import an xml in actionscript. I a mworking with the indesgin SDK.

Now the SDK is telling me the following:

importXML(fromParam:File = null):void Imports the specified XML file
into an InDesign document.

And a the moment i’m doing it this way:

document.importXML(File.desktopDirectory.resolvePath("baseXml.xml"));

But the problem is that i cant ask the user to add an xml file to their desktop so i can import it when needed. So i added the xml to my project. I added it to the package:

resources/xml/baseXml.xml

Now my problem is that i cant seem to be able to my File object to this path and thus cant select the xml file. Can anyone help me solve this please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:07:42+00:00Added an answer on June 5, 2026 at 7:07 am

    The XML file isn’t in your desktop directory, it’s in the application folder. Try:

    document.importXML(File.applicationDirectory.resolvePath("resources/xml/baseXml.xml")); 
    

    The files in the application directory are read-only, however, so if you plan on modifying the XML file you can copy it to somewhere in the applicationStorageDirectory using copyTo.

    The other option is to allow the user to choose the file path by using file.browseForOpen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to read a file to xml with the following code: import
I'm trying to import an xml file into vb.net XmlDocument but am getting the
I'm just learning scala and im trying to import an XML file to a
I'm new to xml parsing, I am trying to parse the following xml file
I trying to import an XML file, and send bits and pieces to a
I am trying to import my XML to mySQL. However what I have now,
I am trying to import an XML file into MS Access 2003, through File>Get
I have been trying to parse a file with xml.etree.ElementTree : import xml.etree.ElementTree as
I'm trying to import an XML file that contains a list of points for
I'm trying to import an XML that's provided by twitter into a readable format

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.