Skip to main content
Participant
February 20, 2018
Answered

XML & Indesign image path

  • February 20, 2018
  • 1 reply
  • 5485 views

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.

Correct answer gabry-el

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.

1 reply

gabry-elCorrect answer
Inspiring
July 6, 2018

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.

LMR78
Participating Frequently
January 24, 2025

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.

Robert at ID-Tasker
Legend
January 24, 2025

@LMR78

 

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