Skip to main content
Participant
Feb 20, 2018 2:53 PM UTC
Answered

XML & Indesign image path

Hi,

I'm really new to the xml import part for indesign, but i'm going to need it extensively.

How do I format the xml to be able to import images from a local path or a url path from my server?


I can do everything with text but it doesn't work for image files.

I tried the <image href="localimagepath"></image> but this doesn't work, it says there is an error in my code when importing.

This is on osx and the path is from my terminal.

gabry-elCorrect answer
Inspiring
Jul 6, 2018 8:37 AM UTC

Hi,

The correct syntax for file path is <image href="File:///Path/to/file"></image>

A pretty complete reference can be found here.

Hope it helped.

22 replies

gabry-elCorrect answer
Inspiring
Jul 6, 2018 8:37 AM UTC

Hi,

The correct syntax for file path is <image href="File:///Path/to/file"></image>

A pretty complete reference can be found here.

Hope it helped.

Translate
LMR78
Participating Frequently
Jan 24, 2025 2:37 PM UTC

Hello i'm having the same problem.

I've tried your syntax but it doesn't work, sayng there is an error.

With this sintax there is no error, but also no image:  <image>href=“file:///img/123456.png”</image>

The image folder is in the same xml folder.

 

Thanks in advance.

Translate
Robert at ID-Tasker
Legend
Jan 24, 2025 10:06 PM UTC

@LMR78

 

You've "file" instead of "File".

 

Translate