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

79

Likes

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
Adobe Community Professional ,
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.

Likes

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

Likes

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
Adobe Community Professional ,
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.

Likes

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
Adobe Community Professional ,
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.

Likes

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