Help needed on listing out all tag names using XML Rules in ExtendScript(InDesign)

Given a document with elements already in place, I am looking for a snippet of code to walk down the XML tree only two levels
deep to printout the names of each of the tags (not attributes).  I am just using javascript in extendscipt to accomplish this.  Ultimately,
I want to provide this list in a checkbox dialog and use those checked items to develop a TOC.  This latter part, I have in place.
It is just the pushing of the tag element names into an array that seems to be cumbersome for me at this point.
Any shortcut snippets out there that someone can provide?
A shorter version of this request....Is there anyway to just list out all element.markupTag.name of an XML tree, not knowing the xpath naming?
Using "//*" obviously is not working....

well..
Document.xmlTags.everyItem().name will get you a array of all the xml tags in the document. Maby that will help you?
another way, and you can use it recursively:
myObject.xmlElements.everyItem().markupTag.name
will get you an array of tag names. use something like: http://stackoverflow.com/a/15806501 to remove duplicates.. and.. enjoy

Similar Messages

  • Can I display or export a list of all field names on a PDF

    In Designer 7, is there a way to display all field names (text fields and checkboxes)? Or is there any way to obtain a list of all field names used on a form?
    In Acrobat 7, all the field names used on the PDF will appear when you select the Text Field Tool. However, this will only happen when the fields were added using the form tools in built into Acrobat. These forms tools are not accessible in Acrobat when the PDF was created using Designer.
    For a PDF created with Designer, you can hover over a field in Acrobat to have a ToolTip display the field name. Unfortunately, this can only be done one field at a time.
    Thanks in advance for any info.

    Here is an example of how to get all the form objects' names within a node in the hierrachy. For a more complex form (with subforms), you will need to check to see if the node is a container. If it is, you will to use this code below to iterate that node.
    var objNode = xfa.resolveNode("xfa.form.form1.page1")
    for (var i = 0; i < objNode.nodes.length; ++i)
    app.alert(objNode.nodes.item(i).name);
    Here is an example:
    http://66.34.186.88/LiveCycleSamples/.3bbb371.pdf

  • An EUL query to list out All the Columns  (Fileds) for each Workbook

    Hi,
    I'm using Discoverer 10.1.2.2 on an Oracle 9.2.0.6.
    Does anyone have the EUL query that lists out all the names of Workbook/Worksheets and the names of their fields/columns. I would greatly appreciate it.
    Thanks

    Hi
    While it is not possible to read the workbook itself, whenever Discoverer runs a worksheet so long as you have enabled the gathering of statistics then a row is written to the EUL5_QPP_STATS table. In that table the column called DOC_NAME is the workbook, the column called DOC_DETAILS is the worksheet, with the CREATED_DATE being the date the worksheet was run. There are other encrypted columns in that table that contain the EUL items that were queried.
    Look at this code:
    SELECT
    QS.QS_DOC_OWNER    USER_NAME,
    QS.QS_DOC_NAME     WORKBOOK,
    QS.QS_DOC_DETAILS  WORKSHEET,
    TRUNC(QS.QS_CREATED_DATE) DOC_DATE,
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,*
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1,  6)) ITEM1,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
    FROM
    EUL5_QPP_STATS QS--,
    --   APPS.FND_USER          USR
    WHERE
    --   QS.QS_DOC_OWNER = '#' || USR.USER_ID AND
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21*
    AND QS.QS_CREATED_DATE > '01-JAN-2009';
    In order to run this you must have run the EUL5.SQL when connected as the owner of the EUL. This script can be found in the $ORACLE_HOME\Discoverer\Util folder of the machine where the Discoverer Administrator tool is installed.
    Try it out for yourself and you will see how it works.
    Best wishes
    Michael

  • Monthly report listing out ALL open PO

    Hi,
    As our management requested, we need a monthly report listing out ALL open PO for CDG, APR   Someone tell me to input cost centre but it is time consuming to input it as we have over 100 cost centers.  Do you know if I can input SPG/profit center or other data to run this report instead ?  Please advise the transaction code and how to perform it, such as need to know the profit center #, organization code etc
    Thanks
    Raja

    hi
    go to ME2N
    then select Scope of list  ALV
    Selection parameters  as           WE101     Open goods receipt   (select as per ur need )
    then execute u will get the list for open po
    now if u want it to specify the  profit center then go to ME2N and select dynamic selecion  (shift +F4)
    now u will get a smaal scrren , in purchaseing doc item selct profit center
    now u can see the profit center selection field ,give a proper profit center and follow the process as given above
    hope it help
    regards
    kunal

  • Is there a way to LIST OUT all of the active images that are currently being used on a page in Dreamweaver?

    Is there a way to LIST OUT all of the active images that are currently being used on a page in Dreamweaver?  Or do I have to click each one and write down the image name by hand?
    Thanks!
    LJ

    Alternatively use a browser:
    Use the Firefox Web Developer Toolbar
    https://addons.mozilla.org/en-US/firefox/addon/60
    Images > View Image Information
    or the List All Images Add On for Firefox
    https://addons.mozilla.org/en-US/firefox/addon/3688
    or the Web Developer tools in IE8 (or earlier), F12 > Image > View Image Report

  • I need a list of all the organizational units, sub organizational units,

    I need a list of all the organizational units, sub organizational
    units,and their security groups which are present in all sub OUs

    Hi,
    There are lots of way to export OU, Sub OU and Security Group.
    1> Open AD console > run query > export with CSV file.
    2> Run “CSVD” command as per your requirement.
    3>Download Manage Engine Software > Install to any computer of Domain member > Set credential for domain controller access > Export the customized information, as per your requirement with XLS, PDF,
    CSV or Ect.
    3rd option is very easy to export customized reports
    Deepak Kotian.
    MCP, MCTS, MCITP Exchange 2010 Ent. Administrator
    Disclaimer:
    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!
    All the opinions expressed here is mine. This posting is provided "AS IS"
    with no warranties or guarantees and confers no right

  • Need a list of all services, processes and servers

    Hi experts,
    i'm totally new to this but i need a list of all services, processes and servers. Is there a easy way to get them?
    I try to create a tool where you are able to virtually shutdown servers and then you can see what happends to the services and processes. Hope someone can help me.
    Thanks
    btw - sorry for my english

    i'm not sure if you all understand what i'm trying to do so i'll ty to explain it
    first i'll try to explain how i understand SOA
    - there are several servers on which the services run
    - a service is only runnable if his server is active
    - a process consists of several services
    - if one of these services isn't runnable anymore the whole process isn't runnable too
    - there are user who use one or more processes
    - if one of the used processes is not able to run the user will be affected
    the tool i'm trying to write should automatically import the descriped information (server-, service-, process- and userlists) from a given SAP-Systemand then you can switch virtually a server to see which services, processes and user would be affected.
    This would be fine if you want to shut down a server for maintance work or something like that.
    so i hope you understand my problem and you are able to help me
    again i want to excuse for my english and my wimpy knowledge about the SOA Architecture of SAP

  • HT201320 I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. H

    I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. Help!!

    Yahoo's servers are notoriously unreliable. Use the "Yahoo" account type when setting it up. If it doesn't work, and you are positive the credentials are correct, wait a while and try again.
    While you're waiting, set up a free gmail or iCloud email account.

  • List/manage all skype names associated with single...

    Hi,
    I have multiple skype names associated with single email id.
    When i click on forgot password, skype asks for email id and when i provide email id(which is associated with say 5 skype names), it randomly selects one of the user name and generates a link/code for reset password.
    Is there any way i can list/manage all skype names associated with single email id.

    jel wrote:
    hi there.
    I've been using Skype for years now with a single Skype name, and I noticed some time ago when doing a password reset that someone has signed up for Skype using my email address. I presume because they failed to spell their own email address correctly. (I get a TON of email coming in addressed incorrectly for various people (not spam) because people can't spell their own name or the name of their friend or acquaintaince - quite annoying really. But I guess that's a problem with using a gmail account.)
    So now I have 3 Skype names associated with my email address, when there should be only 1. Is there any way to have those 2 extra Skype names removed from my email address? I searched on Skype and both of them belong to someone with the same name 'Gabriel' in the United States (I'm in Australia). I assume it's the same person.
    I just don't want people searching for my email address and thinking that person is me...
    Thanks.
    you can simply contact customer support to request to unlink your email address from those unknown accounts;
    How to Contact Skype Customer Service
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • How can i display a list of all the names stored in the Mail app?

    When sending an email, the program shows a list of names according to the first and subsequent letters that I type into the To: field. There are times I cannot recall someone's email user name. How can I display a complete list of all the names Mail has stored? I know that I can go to the To: field then type in the letter A, then write down all listings under A, and then repeat for each letter of the alphabet, but there should be an easier method.
    I have perhaps dozens of names in Mail, but only five names in Address Book, so the latter does me no good.

    On the menubar, Mail > Window > Previous Recipients
    Regards,
    Captfred

  • Listing of all file names in a directory

    Hello everyone,
    Is there a way to get the listing of all file names in a directory
    pointed by an entry in dba_directory in oracle into a collection in
    pl/sql procedure.
    Thank you.
    Tuncay

    this is the same problem I am trying to solve now. I found some ehlp in Tom Kyte articles on java stored procedures.
    create global temporary table DIR_LIST
    ( filename varchar2(255) )
    on commit delete rows;
    create and compile java source named "DirList" as
    import java.io.*;
    import java.sql.*;
    public class DirList
    public static void getList(String directory)
    throws SQLException
    File path = new File( directory );
    String[] list = path.list();
    String element;
    for(int i = 0; i < list.length; i++)
    element = list;
    #sql { INSERT INTO DIR_LIST (FILENAME)
    VALUES (:element) };
    create procedure get_dir_list( p_directory in varchar2 )
    as language java
    name 'DirList.getList( java.lang.String )';
    then you call in your pl/sql and fill your collection from the DIR_LIST table:
    get_dir_list('the name of the directory' );
    ---then you fill the collection by fetching the DIR_LIST table
    good luck,
    Florin

  • Do we have any standard T Code to list out all deleted Handling Units?

    Hi,
    Do we have any standard T Code to list out all deleted Handling Units?
    Thanks
    Krish

    Hi,
    Please find the below link :
    http://www.scribd.com/doc/3262778/SAP-HU-T-CODE
    Regards
    Sreedhar Reddy

  • I need to clear out all the data on my phone so I can give it to someone

    I need to clear out all the data on my phone so I can give it to someone

    There are two ways you could do this.
    1. Go to settings>general>reset then select the option "erase all content and settings"
    2. Restore to factory settings with iTunes on a PC/Mac. The article below can show you how to do this:
    http://support.apple.com/kb/ht1414
    Hope this helps

  • Is there any report in SCCM 2012 to list out all the physcial machine and all the virtual machine?

    Is there any report in SCCM 2012 to list out all the physcial machine and all the
    virtual machine?
    and list all VMs for each physical server.

    Hi,
    there is no such builtin report but you can easily crete one as all information is in the database.
    http://www.scconfigmgr.com/2014/01/24/create-custom-reports-for-configmgr-2012-with-report-builder/
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • List out all on hold POs

    Hi Expert,
    Can you please guide me how to list out all on hold POs? What is the transaction code i can use? How to do it?
    Thanks/Regards,

    Use the Report ME2N,
    Go to Dynamic Selection,
    List down the Folder: Purchasing Document Header, Select the field: Incomplete
    Put the X in Incomplete field and run the report. It will give the POs which are on HOLD.
    Regards
    Vikrant Hande

Maybe you are looking for

  • Mid year go live issue

    Hi its mid year go live i uploaded april to nov. legacy payroll, then run inlk schema . then set the  with each month payroll with releasing and exiting the controll record. then i run December month payroll  with regular schema . now system is not c

  • How do I get my movies and /or photos from the iPad to my Mac?

    I've taken a lot of photos and movies with my iPad but now I'd like to get them on my Mac so I can edit them. Other than e-mailing them to myself, how do I get them off the iPad and on to the computer?

  • User Authentication - Log in User (PHP)

    The Log in User server behavior fails to redirect at the header functions (LoginFailed or LoginSuccess). PHP 5 server environment. The attached code works correctly with valid or invalid username/password inputs, but stalls on my login page (no redir

  • I have a homepage, however Firefox also opens up an annoying tab with news. how do i disable this

    This is something new for Firefox, however it is very annoying like a virus. i want 1 tab to open when i click my browser. Firefox opens up an additional tab along with my homepage. i want this disabled if i want Firefox news i will visit a forum for

  • IPod 4G Home Button Jammed?

    My iPod Home Button recently got SUPER jammed into my iPod. It started out as not that bad, I could still push it, but I just had to use a little effort, but it's gotten so terrible that now I can't even push it. It's not like it's non-responsive bec