I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

Hi,
May the below code is useful for you, but I dont know how to sort.
Edit the tag as per your job request.
alert(app.activeDocument.xmlElements[0].contents)
//Second alert
var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
alert(xe.length)
for(i=0; i<xe.length; i++)
    alert(xe[i].texts[0].contents)
Regards
Siraj

Similar Messages

  • Can any one please tell me how to write labview program for data logging in electric motor bike.

    Can any one please tell me how to write labview program for data logging in electric motor bike. I am going to use CompactRIO for getting wide range of data from various sensors in bike. I need to write labview program for data logging of temperature, voltage and speed of the bike. Can any one help me?

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • Can someone please tell me how to extend a piece of music I have created in garageband, I cannot find anything in the help topics and i am new to the system.

    Can someone please tell me how to extend a piece of music that I have created in garageband.  I am new to the system and cannot find any info in the help topics.  The music is currently only 1 minute and I need it to be 1.39sec to fit in with the film it will be used with in iMovie.  Thanks.

    Yes, it helps.
    You are using a version of the newest GarageBand 10.0, and not GarageBand '11 as in your original post.  And I was sending you screenshots from GarageBand '11, LOL!
    In GarageBand  10.0 is the end-of-song marker hiding behind the zoom controls. Zoom out as far as possible by shifting the zoom scrollbar to the left. Then you should be able to see a corner of the end-of-song marker peeping out behind the zoom control. Try to grab it with the mouse pointer and shift it to the time you want.

  • Could  you please tell me how to write efficient SQL queries?

    Hi
    Could you please tell me how to tune or write an efficient SQL query?
    Regards,

    Hi user576726
    Pls study & try this ....
    When your query takes too long ...
    hope it helps....
    Regards,
    Abdetu...

  • Will the new 2012 Mac pros boot on Snow Leopard (10.6.8, installed on a HD in a 2008 Mac pro and then moved to the 2012 model).

    I keep getting fuzzy answers on this (firmware, future updates, etc.). I can make a 2 partition HD on my 2008 (3.1), with Snow Leopard 10.6.8 on 1, and Lion on the other, and then put this HD in the 2012 3.06ghz. Will it work? (It does on the 2010 2.93ghz).

    Tony https://discussions.apple.com/thread/4051765?tstart=0 Never got back and until someone who received a "new" Mac Pro 5,1 (5,2? just for laughs?) to know.
    Apple ties OS build and fiirmware and Mac ID.
    It should after all nothing really changed. In this case it has the same latest firmware that shipped iwth some 2010s
    We had discussions about this when Mac Pro 2010 started shipping with Lion last... summer/fall.
    A true Lion only system ships not only without DVDs, and with Lion, but can do a network install (it grabs a small boot loader) to pull down the installer and has enough code in the firmware. Same with AHT.
    A. It (10.6.8) works and you are fine
    B. It works only with Lion.
    What is the real question? do you need to run 10.6.8?
    There is a 1/20 chance too that it has a later build of 10.7.4, right?
    Bing: Mac OS X Builds:
    Mac Pro
    Date introduced
    Original Mac OS X included
    (see Tips 1 and 3)
    Later Mac OS X included
    (see Tip 1)
    Mac OS X Build(s)
    (see Tip 2)
    Mac Pro (Mid 2012)
    Jun 2012
    10.7.3
    11D2001
    Mac Pro (Mid 2010)
    Aug 2010
    10.6.4
    10.7, 10.7.2, 10.7.3
    10F2521, 10F2554, 11A511a, 11C74, 11D2001
    http://support.apple.com/kb/HT1159#mac_pro

  • It appears "save as" was removed in the creation of Yosemite.  How can I save a spreadsheet as a new document and then change all the data

    "save as" was removed in the creation of Yosemite (File > Save as)  How can I save an existing spreadsheet so that I can modify the data, rename it , and save it as a new document?

    rkaufmann87
    To address the first part of your response; as unnecessary as it was; save as has not been gone for years!!  It is predicated on the operating system in play on ones computer.  The software that I was using as recent as six months ago had a "Save as" option in the menu bar.  Further, as you may have noted in "babowa's response it is clear that it still exists to this day in apple's most recent software "Yosemite 10.10.2.  This appears to be true whether talking about numbers or pages (apps.)  Oh, and by the way I am employing the most recent versions offered by Apple!  Your car may be five years old but I am sure you still find it very useful.  Case and point; it's not gone!!!

  • Please help. Photoshop CS6 configuration error 1. What to do? Can't reinstall because then removed all the plugins, brushes, textures, etc.

    Помогите, пожалуйста.
    Photoshop CS6 configuration error 1. Что делать? Не могу переустановить, т.к после этого удалятся все плагины, кисти, текстуры и т.д..

    You need to reinstall. There is no way around it.
    Mylenium

  • Please tell me how can  declare an array of object.

    how to create a two dimentional array object of a class.
    let,
    class abc{
    abc(){
    is it posible--
    abc ss=new abc[10][10]
    please tell me how can declare an array object.

    then always use String and don't consider
    StringBuffer at the outset. 'best practices' need not
    be seen as premature optimization. besides, if it is
    abstracted, does not matter how it is stored
    internallyNot sure I would agree with this example - a String is immutable, if I want to change the object then using a StringBuffer makes sense (conveys the intend, yada, yada, yada).
    Although, I do agree with you that some optimizations are best practices and should be used. I also come from the old days when optimization was always on our mind. Also, I would not expect someone to do something like re-calculate a value every time it is needed instead of storing the value in a variable, just to avoid optimization.
    I just think that the example of using a 1-dimensional array when a 2-dimentional array is a better representaion of the "real world" will both obscure the intention and compicate the code.

  • Please tell me how to set up GMAIL on IMAP on my E...

    I am a good man... I have not harmed anyone in my life..... I pay Taxes, and I give to Charity generously... !
    Please tell me how to set up GMAIL on IMAP on my E71 before I shoot myself !!!
    The NOKIA instructions on the manual are carp, and I cannot follow it !!! ( I have a masters degree in computer science and I still cant set up this damm email..)
    OK..this is what I want to happen... :
    1. I want my GMAIL emails to be pushed onto my E71 realtime, and I want a nice 'beep' to tell me I have a new email.
    2. I want email notifications 24 hours a day..
    2. I want to keep my GPRS on all the time so I get realtime GMAILs arriving on my E71.
    Please... can anyone help me...
    Thank you from Harry (alive so far....)
    Solved!
    Go to Solution.

    Hi, If any is interested in how to set GMAIL up on the build in Email on the E71 you can follow the below instructions:
    1. Go to messaging (same place as your SMS-inbox), select options and choose Settings
    2. in the settings menu choose E-mail
    3. In the E-mail menu select Options and choose New mailbox
    4. Then an information comes "Information is needed to activate existing mailbox. Needed information varies, depending on e-mail service provider. Answer the following queries".
    5. Select start and answer Yes to " Allow connection" and then "Connecting to Server" will be displayed shortly.
    6. Then 2 new options are possible - chose E-mail
    7. Enter your E-mail address on GMAIL ([email protected])
    8. Enter your E-mail password on GMAIL (??)
    9. Then "Defining Email Settings" is displayed shortly and then "Wizzard completed" - Your Gmail is now ready to use on your E71.
    Hope this helps,
    HP2Watch

  • HI, could anyone please tell me how you can delete more than 1 photo at a time or ipad or ipod touch?

    HI there, could anyone please tell me how you can delete more than 1 photo at a time on ipad and ipod touch??

    Delete multiple pictures at 1 go.
    1. Click the box with arrow on top right of Album.
    2. Select pictures to delete
    3. Tap Delete
    http://i1224.photobucket.com/albums/ee374/Diavonex/86e1a2c37a805bca2ccacc66c95ce 934.jpg

  • How to write Java Scripts in Apex

    Hi All,
    Can any on tell me how to write Java Scripts in Apex.
    Thanks in Advance,
    Mukund

    If you want to link your custom JavaScripts to an Apex page, you have several options:
    1. Add an HTML Region on Page 0 (Script will be written to every page) called something like "JavaScript & CSS". In this region add your Script to the region source like this:
    <script language="JavaScript">
    function hell ()
    alert ("Hello World");
    </script>
    2. Add a similar region to the page you are working on (can only be accessed on this page)
    3. Create an external JavaScript file and either load it into the WORKSPACE or into the images (/i/) directory on the server. You can then link the JS into you page via modifying the Page Template.
    Hope that makes sense. Let me know if you want any further help with option 3.
    Duncs

  • If i make a new Itunes account/Apple ID and I log into it on a computer and sync it to my phone, will I loose all the content on my phone?

    I used to share an Itunes account but I recently made my own through my phone.  I have all my stuff from my phone backed up on the computer on my old Apple ID/Itunes account.  I want to back up all my current content on my phone to my NEW Apple ID/Itunes account but I'm afraid things will erase if I try to do so.  How can I do this and still keep all the content on my phone currently?

    You can't back up iTunes store content to a different account on your oomputer.

  • What's the easiest way to create a new VLAN and then move all existing devices to it?

    One of our locations was implemented using VLAN1 as the main (native) VLAN. My goal is to create a new sub-interface on the router and then move all the existing switches (all Layer 2) into the new VLAN, without disrupting the network (and remotely). I am trying to determine the best way to proceed. Thanks.

    I wanted to shed a little more light on the situation. The "new" VLAN has actually been in existence since the network was initially setup. The network runs VTP and the new VLAN already has an interface on the router and already shows up on all the switches when you do a "sh vlan" command. We have about 10 VLANs in all. In reality, I am simply trying to migrate about 8 switches from VLAN1 (which they never should have been on) to the new VLAN. I know that I need to create an interface for the new VLAN on each of the switches and then swap the management IP to that interface. If I could connectly directly into each switch via the console port, this would be a simple task. However, the switches are in extremely remote locations with special circumstances, thus I have no physical access to them. This fact has me a little reluctant to making the changes, as we can't afford any mistakes that would potentially cause network downtime. I am looking for some guidance on exactly the steps to take to achieve my goal. Let's call the new vlan, VLAN2. During testing, I logged into a local switch that was on VLAN1 (that's where it had it's management address). It did have VLAN2-VLAN10 as well, via VTP. I created an interface for VLAN3 on the switch and then accessed it via VLAN3 to swap the main management interface from VLAN1 to VLAN2. The changes took, but I couldn't access it via VLAN2. I am assuming this is because the router still has VLAN1 listed as the native vlan and the VLAN2 IP address is still assigned to VLAN1 on the router. What would be the best way for me to make the required changes on the 8 switches that need swapped, without losing remote access? It wouldn't hurt if the network went down for 5 minutes or less, but we can't have a big outage. Thanks.

  • I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    Is this happing because the external is formatted to PC and not mac?
    Yes that is correct.
    Will I need to get a mac external hard drive if I wish to continue to save my documents like this?
    If you no longer use a PC you could format this drive for the Mac. However be aware that formatting a drive will erase all the data on it. So you would need someplace to copy the data off this drive to while you did the re-format and then you could copy the data back.
    You could get another drive, format it for the Mac and copy the data to it. Then re-format the original drive and use it as a backup drive. Always good to have backups.
    Post back with the drive type and size of the current drive, if you are doing backups now and how and if you still need to access this drive from a PC.
    regards

  • My mozilla does't opening new tabs & I am having very problem with my work due to this.Please tell me how can i resolve this problem.

    My mozilla does't opening new tabs & I am having very problem with my work due to this.Please tell me how can i resolve this problem

    The Ask Toolbar is causing that in the Firefox 3.6.13 version. Evidently something in that extension isn't compatible with a Firefox security fix. Disable that extension or un-install it.

Maybe you are looking for

  • E65 and Outloo Notes and email

    With an E65 is it possible to synch Notes and Inbox from Outlook 2007? (this can be done using Windows Mobile / Active Sync)? Thanks

  • How do I get my product changed from monthly to prepaid

    I bought the software license to photoshop elements 13 and premiere elements 13.  I had to get help from them to download.  The first time I went to use it I was told I needed to be connected to the internet so I realised it had been registered incor

  • Regarding restart of services

    Hi Frnds, Can i know what is the sequence to restart the services i.e services like open ldap,Shared services,analytic services,administration services and also the sequence to shut down/restart. Thanks, KRK.

  • After Install of Office Pro 2013 Plus from downloaded iso file Outlook can't find any outlook.pst

    Have just installed  - apparently error-free - Office 2013Pro Plus. Can't open Outlook because it's missing the dataset C:\users\xyz...\documents\outlook-data\OUTLOOK.PST. There is NO outlook.pst on the entire computer, in other words it seems that t

  • Getting a -60 error

    I am getting a -60 error when installing all cs6 apps through the application manager. I have restarted multiple times and reinstalled the manager. Is there a remedy for this? Thanks Dale