how to link an textframe to his xml element

Explorer ,
Mar 25, 2021 Mar 25, 2021

Copy link to clipboard

Copied

Hi all,

 

I script a function that make some xmlelement on the structure panel, I create some textframes from this but in fact this texframes are not linked to my xmlelement?

 

What I do wrong ?

 

thanks,

 

Americo

TOPICS
Scripting

Views

60

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 25, 2021 Mar 25, 2021

Copy link to clipboard

Copied

We can't really help unless you post the script snippet and/or sample document that you believe to be the issue. 

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
New Here ,
Apr 05, 2021 Apr 05, 2021

Copy link to clipboard

Copied

LATEST

Hi Americo,

 

If you drag xml node onto the document, then the link between the textframe and the xml element can be found with the :

myTextFrame.associatedXMLElement which will be null if none is found or points to the xmlElement if one is found.

 

HTH

 

Loic

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