How do I check if the associated PageItem is there/exists from a XMLElement ?


hi,

 

i have following structure:

 

  • extension builder 1.5;
  • indesign 5.0;
  • image (rectangule frame);
  • xml tag associated image.

 

the following scenario:

 

  • i have application checks if strucuture available , intact, is, user has not deleted tag (xmlelement) and/or rectangule frame(pageitem);
  • i not want loop through allpageitems (the page should have many of them - more 1000) , xmlelement;
  • so, loop on xmlelements , associated pageitem through xmlelement.xmlcontent property;
  • the document images properties (image, epss, etc) never populated (document.epss.length = 0);
  • i can validate if tag deleted or untaged easy.

 

the problem:

 

  • user deletes image/rectangule frame (pageitem) , keep xml tag (untag xmlelement);
  • the isvalid property (xmlelement.isvalid = true) true;
  • the associated pageitem becomes text , valid well;

 

the question:

 

  • how do i check if the associated pageitem is there/exists from a xmlelement ?

 

regards

 

marcos



More discussions in Creative Suite Extension Builder


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support