How can I save the references to the elements of the xml elements page?

Hello

I am trying to add coordinates of the page elements to their associated as xml attributes xml elements.

I can easily create xml help items

myDocument.mapStylesToXMLTags ();

Now, I want to browse the xml document and find details of each element of the associated page and then add them in the corresponding as attributes xml node.

In other words, I'm trying a code (assuming that all the nodes as children of the root for simplicity) as follows:

for (var i = 0; i < myRootXMLElement.xmlElements.length; i ++) {}

var myElement = myRootXMLElement.xmlElements.item (i);

var myElementsPageItem = * did not find a reference of function / correct documents *.

var myBounds = myElementsPageItem.visibleBounds;

addORupdate (myElement, "y1", myBounds [0]);

addORupdate (myElement, ' x 1', myBounds [1] ");

addORupdate (myElement, "y2", myBounds [2]);

addORupdate (myElement, ' x 2', myBounds [3] ");

}

In my example of document all the xml that is created by mapStylesToXMLTags() are history of type.

So I need a way to refer to the corresponding (or rectangle) page element of the history so that I can add information about contact information item xml as attributes.

Thank you very much...

myElement.xmlContent.parentTextFrames was not defined in the xml document that is generated by mapStylesToXMLTags()

After some research the object model, I found my data in

myElement.xmlContent.textContainers [0]

Thank you

Halin

Tags: InDesign

Similar Questions

  • How can I save the iphoto for flash player library

    How can I save the iphoto for flash player library

    Where is the flash player? It is external, or what?

    Barry

  • How can you save the background image contained in a Thunderbird e-mail message

    How can you save the background image contained in a Thunderbird e-mail message

    Have you read the instructions which preceded the right click? What of their suite?

  • I need to reinstall my Linux Mint, therfore also Thunderbird. How can I save the addresses and all my messages (copy and again after installation Thunderbird)

    I need to reinstall my Linux Mint 17 companion, therfore also Thunderbird. How can I save the addresses and all my messages (copy and again after Thunderbird installation)?

    You will need to backup your Thunderbird profile.
    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Backing_Up_and_Restoring #Manually_back_up_the_profile

  • My space Icloud is used because of the backup of the Ipad and I use three devices under ID so my iphone always gives the warning of small footprint. How can I save the back upward on my PC so that I can delete of I have cloud and free space

    My space Icloud is used because of the backup of the Ipad and I use three devices under ID so my iphone always gives the warning of small footprint. How can I save the back upward on my PC so that I can delete of I have cloud and free space

    Hello

    You want to know is explained here: https://www.apple.com/support/iphone/backup/

    If you want to delete the backups that are currently clogging up your iCloud-storage space, use this: iCloud: delete a backup device iOS to iCloud

  • How can you save the image to a google map that is contained in a Web site?

    How can you save the image to a google map that is contained in a Web site? I use a macbook at the beginning of 2011 pro and functional on OS X Yosemite 10.10.5. I would like to capture the image of the map and print it with a good quality.

    Take a screenshot and print that

    Google mapsHow to take a screenshot on your Mac - Apple Support

  • When you save the file GIF grace to save for Web how can I save the original?

    Hello.

    When you save the file GIF grace to save for Web how can I save the original?

    I need the original and not optimized.  Help, please

    ilyag58620179 wrote:

    But I need to GiF animation file

    And by definition, a GIF image is optimized! A GIF is not the same size of the PSD file, and you are mistaken in thinking that you want it to be. If you are trying to achieve the slightest loss of quality, regardless of the size of the file, then you need to adjust your settings to save for Web.

  • How can I disable the message ' exit page / stay on the page.

    How can I disable the message ' exit page / stay on the page "Please explain step by step so if he is inserting java script.

    Thank you

    Install this Greasemonkey script should help: https://userscripts.org/scripts/show/23865

    (Note that this might break some sites, and is not approved/controlled by Mozilla in any way shape.)

  • How can I track the number of pages that have been printed?

    How can I track the number of pages that have been printed?

    I have a HP Officejet Pro 8500 has more and I'm ptinting since a Mac Pro OS10.7.3 running.

    From the home screen, press the right arrow, and then select Setup.

    Touch of the reports, and then select Printer Status Report.

  • How can I obtain the XML

    Hello

    I have not followed the example of XML file and I want to get items from this XML file. How can I get the XML elements?

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
     
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
     
     
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
     
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    XML
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
      <skos:Concept rdf:about="http://my.site.com/#Acoustics">
        <skos:ID>12033</skos:ID>
        <skos:NO>150</skos:NO>
        <skos:ANO>232</skos:ANO>
        <skos:prefLabel>Acoustics</skos:prefLabel>
        <skos:historyNote>http://www.theiet.org/resources/inspec/</skos:historyNote>
        <skos:altLabel rdf:resource="http://my.site.com/#Sound"/>
        <skos:broader rdf:resource="http://my.site.com/#Physics"/>
        <skos:narrower rdf:resource="http://my.site.com/#Aeroacoustics"/>
        <skos:narrower rdf:resource="http://my.site.com/#Vibrations (Acoustics)"/>
        <skos:narrower rdf:resource="http://my.site.com/#Acoustic materials"/>
        <skos:THES>PHYS</skos:THES>
        <skos:STA>Candidate</skos:STA>
      </skos:Concept>
      <skos:Concept rdf:about="http://my.site.com/#Sound">
        <skos:NO>450</skos:NO>
        <skos:ID>1483636</skos:ID>
        <skos:USE>Acoustics</skos:USE>
      </skos:Concept>
    </rdf:RDF>
    Thanks in advance.

    Published by: 876991 on July 26, 2012 12:02

    However, if I need to include "skos: narrower" elements then what I have to do? I have to write PL/SQL code to this and this information separately? or I can get the items in the recurring SQL query?

    I knew you would ask this, which is why I predicted in my previous answer:

    However, if you want to retrieve recurring nodes such as , you must decide how you want the output to look like (collections nested etc..).

    So, how do you store repetitive items?

    For example, you can use a collection type:

    create type narrower_t is object ( res varchar2(2000) );
    /
    
    create type narrower_coll is table of narrower_t;
    /
    
    select x.ID
         , x.NO
         , cast(
             multiset(
               select res
               from xmltable(
                      xmlnamespaces(
                        'http://www.w3.org/1999/02/22-rdf-syntax-ns#' as "rdf"
                      , 'http://www.w3.org/2004/02/skos/core#' as "skos"
                      )
                    , '/skos:narrower'
                      passing x.narrowers
                      columns res varchar2(2000) path '@rdf:resource'
                    )
             )
             as narrower_coll
           ) as narrowers
    from th_xml t
       , xmltable(
           xmlnamespaces(
             'http://www.w3.org/1999/02/22-rdf-syntax-ns#' as "rdf"
           , 'http://www.w3.org/2004/02/skos/core#' as "skos"
           )
         , '/rdf:RDF/skos:Concept'
           passing t.in_file_1
           columns
             ID         number       path 'skos:ID'
           , NO         number       path 'skos:NO'
           , narrowers  xmltype      path 'skos:narrower'
         ) x
    ;
    
  • This program of windows xp is on a Macbook Pro with a PC emulator. The drive needs to be replaced. How can I save the data from the side PC?

    This program of Windows XP (my wife) is on a MacBook Pro with a PC emulator (Bootcamp).  The drive needs to be replaced.  How can I save data from the PC to an external hard drive?

    Hi Alan,

    Thanks for posting in the Microsoft Community.

    I understand you are trying to backup the data on external hard drive since you replace the hard drive.

    I will definitely help you with this.

    Please visit the links; This should help you in files and backup files.

    How to use the backup utility to back up files and folders in Windows XP Home Edition

    http://support.Microsoft.com/kb/320820

    http://support.Microsoft.com/kb/308422

  • How can I save the video published on a DVD?

    Original title: can not take MORE than 2

    First mistake was to use the software download from Sony, then found a way to convert it then discovered vmi Movie Maker for editing.    Now I can't save the Movie Maker on a DVD.   I can record on my counter top, but nowhere else.   Quickly becoming a love, hate relationship with shooting video...  Seriously, this film has a meaning and I need to finish this project or to pack... Help

    Original title: can not take MORE than 2

    First mistake was to use the software download from Sony, then found a way to convert it then discovered vmi Movie Maker for editing.    Now I can't save the Movie Maker on a DVD.   I can record on my counter top, but nowhere else.   Quickly becoming a love, hate relationship with shooting video...  Seriously, this film has a meaning and I need to finish this project or to pack... Help

    ==========================================
    The following article is maybe worth a visit:

    How to burn Windows Movie Maker WMV to DVD video
    http://www.online-tech-tips.com/computer-tips/burn-WMV-to-DVD/

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I save the page settings in the Notepad. I wish to record the size of A4 paper but just default to 'Letter' every time that I re - open Notepad.

    I can't save the page settings in the Notepad. I wish to record the size of A4 paper but just default to 'Letter' every time that I re - open Notepad.

    Hello

    Included with Windows Notepad text editor allows you to configure the layout including headers, footers and margins. These options are normally not saved between sessions, but with this Notepad tweak can be done to save the changes. Please try this method and answer us.

    Open your registry database and find or create the key below.

    A. go to start and regedit and press ENTER.

    B. HKEY_CURRENT_USER\Software\Microsoft\Notepad

    C. create a new DWORD value called "fSavePageSettings" and there the value '1' to save the settings page.
    D. create a new DWORD value called "fSaveWindowPositions" and it "1" to record the position of the window.
    E. restart Windows for the change to take effect.

    To do: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    322756 (http://support.microsoft.com/kb/322756/ )
    How to back up and restore the registry in Windows

  • How can I save the changes on viewing options?

    Whenever I use Acrobat Reader DC I need to change the options of visualization of 'exposure of individual page' to 'Enable scrolling. How can I save this change on viewing options?

    And another question: when I open the Acrobat Reader DC, a tab appears on the right side with the options 'Export to PDF', "Create a PDF file" and others. How can I activate this tab does not appear when I open the Acrobat Reader DC?

    Hi daniel0108746,

    For your first question, I recommend you to go to the Edit Menu-> preferences-> category accessibility-> substitute Page display and choose "single Page continuous."

    And for the second query, please see the following doc: hide the Tools panel permanently in Acrobat and Acrobat Reader DC

    Kind regards
    Rahul

  • How can I save the project?

    I asked before how I can create 3D canvas looking for image

    and Terri gave me this tutorial, which has worked very nice.

    http://www.rtbmediaonline.com/blog/?p=129

    Now my question is if and how can I save this project together in order to be

    power to apply it later to other images without going through the process with each image manually?

    You can do this is to aid. You can save a set of changes you apply to an image, save the action and play later by another image, or even apply it to a batch of images.

    Press F9 to open the Actions Panel.

    Then, create a new Action...

    Name it and change the settings. Here you can assign a keyboard shortcut for your new Action:

    Then, click record to begin recording.

    Follow all the steps in the tutorial, and then stop the Action:

    Now you can play the action again for any image!

    Find out about Actions :

    http://help.Adobe.com/en_US/Photoshop/CS/using/WSfd1234e1c4b69f30ea53e41001031ab64-7451a.h tml

    To learn how to use the commands for multiple images:

    http://PSD.tutsplus.com/tutorials/photo-effects-tutorials/batch-editing-and-automated-proc Esser in photoshop.

    I hope this helps!

    Julia

  • How can I change the margins of page on the HP 4620?

    On my HP 4620 all-in-One default page margins are too narrow. The top and bottom of the lines on the printed page are cut off. How can I change the page pargins by default at least 0.25 inches at the top and bottom of the page? I use standard paper in the print bed. I searched through manuals and online and am coming up with nothing. I use a MAC with the latest OSX computer. Thank you.

    Thanks for your reply. I'll do some checking double and let you know what happens. I just printed page 36 of the User Guide, and it printed fine. The other document that did not print correctly was a form which I had filled out on the internet and then print a copy of what I had filled out. I'll try to print a page or two of my Mac Pages document and see if that print very well. I appreciate your comments. Thanks again.

Maybe you are looking for