• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replace XML content having tag

Participant ,
Mar 30, 2022 Mar 30, 2022

Copy link to clipboard

Copied

Hi, 

I need to replace the xml content(having HTML tag <br /> to be replaced as '\t') after fetching the xml content using the script. Please guide me on this...

-Monisha
TOPICS
How to , Scripting

Views

176

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2022 Mar 30, 2022

Copy link to clipboard

Copied

I would run a find/replace in Notepad++ (or Mac equivalent), outside of InDesign.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 30, 2022 Mar 30, 2022

Copy link to clipboard

Copied

Hi @Eric Dumas 

It's an requirement for my client to get the XML content without having the chnaging the content. In InDesign Document we used Find&Replace script for replacing the tag value.

-Monisha

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2022 Apr 19, 2022

Copy link to clipboard

Copied

You coulod create an action script that fetches the file, ideally same name/place everytime, replaces what's needed and applies formatting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2022 Apr 19, 2022

Copy link to clipboard

Copied

LATEST

You could have an XSLT written to apply to the XML during import into InDesign. I'm pretty sure the XSLT could process the XML to remove the <br/> tag and replace with \t.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines