How to edit xml link?

First a few words about my context:
I received a layout made on a CS3 version of InDesign. Now I am trying to create a procedure to automate the production of several pdf based on this layout. Manually the process would be to open the layout; edit the xml link with each xml source and create a corresponding pdf...
First issue:
In CS4 when I want to manually edit the xml link, the opened dialog prevent me (xml files are in gray) to select xml files, is it a well-known issue? How can I avoid it?
Second question:
How to edit the xml link from script?
Last question - applescript question - :
How to skip application dialogs? Like "This document miss some links, would you continue?"
If you'd be able to help me, thanks in advance!

Dear Loic_aigon
   Many thanks!
But I used what you said!.
But Still I'm facing the same problem [ not find : "image"]
Here the below tag I used..
<Figure id="f0020"><label>Figure 2 </label><caption>Dummy Figure </caption>
<image href="C:/Program %20Files/VUG/clouds.jpg"></image></Figure>
Program :
//============== Start =====================//
#include "E:/HariharaSudhan/XMDOM_TEST/xml_for_script-3.1/jsXMLParser/xmldom.js";
var myFile = File("E:/HariharaSudhan/XMDOM_TEST/xml/test.xml");
myFile.open("r");
var myXMLString = String(myFile.read());
var objDom = new XMLDoc(myXMLString, undefined);
var domTree = objDom.docNode;
$.writeln(domTree);
var myImage = domTree.getElements("image");
var myDoc = app.open(File("E:/HariharaSudhan/XMDOM_TEST/Indd/test.indd"), true);
$.writeln(myImage);
for(var i=0; i<myImage.length; i++)
$.writeln( myImage[i].name);
myImage[i].getAttribute("href").replace('file:///','');
  var myPage = doc.pages[0].duplicate(LocationOptions.AT_END);
  var myFrame = myPage.pageItems.item("image");
  myFrame.place(File(myImage[i].getAttribute("href").replace('file:///','')));
  app.pdfExportPreferences.pageRange = myPage.name;
  app.pdfExportPreferences.viewPDF  = false;
  myDoc.exportFile(ExportFormat.pdfType, File("E:/HariharaSudhan/XMDOM_TEST/PDF/" +(i+ 1)+".pdf"), undefined, undefined, undefined, undefined);
myDoc.close(SaveOptions.NO);
//===================== End ============================//
So please kindly see the attached xml file, and please send me the solutions.
Please this is my humble request.
Thanks & Regards
T.R.Harihara SudhaN

Similar Messages

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • How to edit personalize link on desktop

    Hi Experts,
      I have a doubt in desktop customization,can any one tell how to edit the personalize link or remove that personalize link and i also want to know how to add some custom link beside this personalize link.
    Regards
    Rahul

    Hi Rahul,
    Remove the role eu_role assigned to you so as to remove the Personalize link.
    To Add a custom link besides personalize, see the thread
    How to add or remove link in Portal Masthead
    Hope this helps,
    Nikhil

  • How to edit xml using jdom

    hi
    how to read and edit xml file using jdom, i tried using
    javax.xml.transform.*; // JAXP
    javax.xml.transform.dom.DOMSource; //
    i can read xml file . but iam not able to edit the xml file.
    how to achive this

    1. Select nodes to be modified with the JDom XPath class selectSingleNode and selectNodes methods.
    SAXBuilder saxBuilder=new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    org.jdom.Document jdomDocument=saxBuilder.build(new File("c:/input.xml"));
    org.jdom.Element node= (org.jdom.Element)(XPath.selectSingleNode(jdomDocument,"/root/node"));
    2. Modify the node values with the Element class setter methods.
    3. Output document with the XMLOutputer class.

  • How to edit XML parsed data and save on iPhone app

    Hi,
    How to edit and XML retrieved data that is displayed on an iPhone app and save again in the same XML file using iPhone SDK.
    In other words I want to change the XML file data or edit and save.
    Thnx in advance.
    Regards
    Amit

    Hello amit,
    No, not at all. Surely you will parse your XML file using the NSXMLParser class. OK! i think i get it now, do you wants to change/modify the value of any tag in the XML file? For that you will be required to parse your XML file using NSXMLParser class, and fill out some data structure (according to the the XML format) do some changes into your data structure, and then write your XML to the file (according to the edited data structure) using the method i told u earlier. This is what my preferred method is, and i am pretty much sure that it is not a bad way to do this at all.
    Hope this clarifies some of your queries.
    Best regards,
    Obaid

  • How to edit xml using AS3

    I want to edit xml file on run time dynamically using AS3
    Plzzzzzzzz if it possible send the tutorials links or sample script.

    Flash player 10 has support for accessing local system file. This can be done using the FileReference class. You can browse a loca file, rad it and then save it back. But at the time of saving, the user is prompted to choose a location for saving the file.
    Else you can use some server side technology with your app to read and write files.

  • JEditorPane - How to display XML Linked HTML File in JEditorPane ?

    Dear Friends,
    I have a HTML File consisting of stylesheet, xml linked (for data) and with headers, footers...
    When i called a ordinary html file using setpage property of JEditorpane..it's working no problem...but when i call the html file having xml linked or buttons...it's not properly displayed....
    If anybody hits this problem....pls...help me....
    Regards,
    V.Prasanna

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • How to edit and link nav. tabs?

    I can edit my navigation tabs on  my first index.html page,  byt on my sencond page (photos.html) My cursor is a circle with a line, and i cant link them.  Here is a video:

    file:///C:/Users/Jared/Documents/Shelbina%20Fire%20Site/Templates/index.html
    <html>
    <head>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>WEBSITE</title>
    <!-- TemplateEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    body {
              background-color: #000;
    .main_content {
              font-family: Verdana, Geneva, sans-serif;
              color: #CCC;
              background-image: url(../Images/Index_24.jpg);
              height: 719px;
              width: 836px;
    </style>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- Save for Web Slices (WEBSITE.psd) -->
    <table width="901" height="1001" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
              <tr>
                        <td colspan="5" rowspan="2">
                                  <img src="../images/Index_01.jpg" width="201" height="152" alt=""></td>
                        <td colspan="8" rowspan="3">
                                  <img src="../images/Index_02.jpg" width="601" height="156" alt=""></td>
                        <td>
                                  <img src="../images/Index_03.jpg" width="48" height="48" alt=""></td>
                        <td colspan="2">
                                  <img src="../images/Index_04.jpg" width="50" height="48" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="48" alt=""></td>
              </tr>
              <tr>
                        <td colspan="3" rowspan="6">
                                  <img src="../images/Index_05.jpg" width="98" height="187" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="104" alt=""></td>
              </tr>
              <tr>
                        <td colspan="5">
                                  <img src="../images/Index_06.jpg" width="201" height="4" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="4" alt=""></td>
              </tr>
              <tr>
                        <td rowspan="4">
                                  <img src="../images/Index_07.jpg" width="23" height="79" alt=""></td>
                        <td colspan="2" rowspan="2"><a href="index.html"><img src="../images/Index_08.jpg" alt="" width="133" height="58" border="0"></a></td>
                        <td rowspan="4">
                                  <img src="../images/Index_09.jpg" width="31" height="79" alt=""></td>
                        <td colspan="2" rowspan="3"><a href="Photos.html"><img src="../images/Index_10.jpg" alt="" width="99" height="66" border="0"></a></td>
                        <td rowspan="4">
                                  <img src="../images/Index_11.jpg" width="60" height="79" alt=""></td>
                        <td rowspan="2">
                                  <img src="../images/Index_12.jpg" width="142" height="58" alt=""></td>
                        <td rowspan="4">
                                  <img src="../images/Index_13.jpg" width="56" height="79" alt=""></td>
                        <td rowspan="2">
                                  <img src="../images/Index_14.jpg" width="83" height="58" alt=""></td>
                        <td rowspan="4">
                                  <img src="../images/Index_15.jpg" width="57" height="79" alt=""></td>
                        <td>
                                  <img src="../images/Index_16.jpg" width="103" height="52" alt=""></td>
                        <td rowspan="4">
                                  <img src="../images/Index_17.jpg" width="15" height="79" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="52" alt=""></td>
              </tr>
              <tr>
                        <td rowspan="3">
                                  <img src="../images/Index_18.jpg" width="103" height="27" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="6" alt=""></td>
              </tr>
              <tr>
                        <td colspan="2" rowspan="2">
                                  <img src="../images/Index_19.jpg" width="133" height="21" alt=""></td>
                        <td rowspan="2">
                                  <img src="../images/Index_20.jpg" width="142" height="21" alt=""></td>
                        <td rowspan="2">
                                  <img src="../images/Index_21.jpg" width="83" height="21" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="8" alt=""></td>
              </tr>
              <tr>
                        <td colspan="2">
                                  <img src="../images/Index_22.jpg" width="99" height="13" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="13" alt=""></td>
              </tr>
              <tr>
                        <td colspan="2" rowspan="2">
                                  <img src="../images/Index_23.jpg" width="34" height="765" alt=""></td>
                        <td colspan="13"><!-- TemplateBeginEditable name="main_content" -->
                          <div class="main_content">Home</div>
                        <!-- TemplateEndEditable --></td>
                        <td rowspan="2">
                                  <img src="../images/Index_25.jpg" width="30" height="765" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="719" alt=""></td>
              </tr>
              <tr>
                        <td colspan="13">
                                  <img src="../images/Index_26.jpg" width="836" height="46" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="1" height="46" alt=""></td>
              </tr>
              <tr>
                        <td>
                                  <img src="../images/spacer.gif" width="23" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="11" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="122" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="31" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="14" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="85" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="60" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="142" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="56" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="83" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="57" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="103" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="15" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="48" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="20" height="1" alt=""></td>
                        <td>
                                  <img src="../images/spacer.gif" width="30" height="1" alt=""></td>
                        <td></td>
              </tr>
    </table>
    <!-- End Save for Web Slices -->
    </body>
    </html>

  • [ASK] how to edit URLattachment link in worklist FM SAP_WAPI_ATTACHMENT_ADD

    hi,
    i have problem when i click URL attachment in my worklist in web-ui
    i used fm SAP_WAPI_ATTACHMENT_ADD when i create that URL attachment in BOR ZUS2010020.
    i used this code in my method :
       URL1 = 'zcrm_mkt_001/cmpgn_approval.htm?work_item_id='.
       URL2 = lv_work_item_id+6(6).                          
       concatenate URL1 URL2 into URL.                       
    ls_Att_header-FILE_TYPE      = 'T'.                     
    ls_Att_header-FILE_NAME      = 'Decision Link'.         
    ls_Att_header-FILE_EXTENSION = 'URL'.                   
    ls_Att_header-LANGUAGE       = sy-langu.                
        CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'              
        EXPORTING                                            
           WORKITEM_ID          = lv_work_item_id            
           ATT_HEADER           = ls_Att_header              
           ATT_TXT              = url                        
           DOCUMENT_OWNER       = SY-UNAME                   
           LANGUAGE             = SY-LANGU                   
           DO_COMMIT            = 'X'                        
        IMPORTING                                            
           RETURN_CODE          = rv_value                   
           ATT_ID               = att_id.                    
    that code is succeed and it create url attachment.
    but when i click that URL attachment in my worklist, its can't not display the page that i want.
    it always go to this link :
    http://crmxxx.xxx.xxx/sap(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0=)/bc/bsp/sap/crm_ui_frame/zcrm_mkt_001/cmpgn_approval.htm?work_item_id=484152
    the link that i want is :
    http://crmxxx.xxx.xxx/sap(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0=)/bc/bsp/sap/zcrm_mkt_001/cmpgn_approval.htm?work_item_id=484152
    without /"CRM_UI_FRAME/"
    anybody can help me to solve my problem?
    thx a lot.
    Edited by: saintmutsu on May 26, 2010 1:40 PM

    Hi
    Redefine GET_P method of your attribute where you want your attachment link to be working. Put this code:
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
    Get value of your URL through your logic here
    lv_url = 'XYZ'.
    rv_value = lv_url .
    endcase.
    I hope this helps.
    Thanks
    Vishal

  • How to edit xml data

    newbie alert:
    ok, ive worked through some samples with SAX and DOM. Ive parsed xml, ive filtered out elements and handled parsing events. What parts of the various API's let you edit the text nodes ?

    in DOM, Document.createTextNode()

  • How to edit xml files in flex builder 3

    Hello Forum
    I'm new to flex, trying to learn my way around it.  I usually use Flash to write my actionscript, but the eclipse interface seems intruiging...
    First question:  I am setting up a config.xml file where the main variables are set for the application.  For some reason Flex Builder 3 doesn't really let me edit or even create xml files?  What is the reason for that?  Do I need to install something additional? What am I missing?
    This is a pure actionscript application by the way...
    Any advice is much appreciated.
    Thank you
    sk

    Hi Stephan,
    never the less the way to install plugin.
    Help - Software updates - Find and install...
    "Search new features and install" Next
    "Europa Discovery Site" Finish
    Choose any nearest mirror for your location.
    Find "Web and JEE Development" folder.
    There are "Eclipce XML Editors and Tools" and
    "Web Standard Tools (WST) Project" check them to install. This plugins requier some other plugins, so it's easer to click "Select required" button on left side  to check them all automaticaly.
    After that standart installing procedure: Licence agreement, downloading and so on.
    Hope this helpful.

  • Editing XML File

    Any idea or url around for an example how to edit XML files
    with ASP.VB ?
    thanks fpr any reply
    Sebastian

    To modify an XML document obtain a DOM stucture of the XML file, select nodes with XPath expression, and modify nodes.
    http://otn.oracle.com/pub/notes/technote_domparser.html

  • How do i edit the links in the top nav bar on an enterprise wiki site?

    I would like to edit and change the links in the top nav bar on my enterprise wiki.
    Currently the links are "About this wiki" and "Recent" a drop down menu with links.
    I would like to change "About this wiki" to a "Home" page link and remove the "Recent" drop down menu and links. I also would like to be able to add more links to the to the top nav bar.
    I there anyway I can do this one an enterprise wiki site?
    Thanks
    James T.F

    Hi,
    According to your post, my understanding is that you wanted to edit the links in the top navigation bar on an enterprise wiki site.
    I try to reproduce the issue, however, my enterprise wiki site don’t have the drop down menu.
    How did you add the Recent link?
    How did you create the drop down menu?
    Did you use the seattle master page or olso master page?
    It will be better if you can descript more detail and provide some screenshots.
    You can use JavaScript to add and remove the items in the drop down menu.
    More information:
    Add items in Drop Down List or List Box using Javascript
    Asim Sajjad: DropDownList Add/Remove Item Using Javascript
    HTML DOM Select remove() Method
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to Edit perticular node in XML

    How to edit Perticular XML node ?
    <root>
    <node1>
    <data1>   dsfs  </data1>
    <data2>   dsfs  </data2>
    <data3>   dsfs  </data3>
    <data4>   dsfs  </data4>
    </node1>
    </root>What should i do to change data3 value, means edit data of <data3> ??
    help me

    Retriece data3 node with XPath or DOM. Set node value with setNodeValue() method.

  • How to edit the existing data in the XML file from java programming.

    Hi all
    i am able to create XML file with the sample data as below from java programming.
    i need sample code on how to edit the existing data in the XML file?
    for example
    <?xml version="1.0"?>
       <mydata>
               <data1>
                         <key1>467</key1>
                        <name1>Paul</name1>
                        <id1>123</id1>
              </data1>
              <data2>
                         <key2>467</key2>
                        <name2>Paul</name2>
                        <id2>123</id2>
              </data2>
        </mydata>
    i am able to insert the data in the XML.
    now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
    Regards
    Sunil
    [points will be always rewardable]

    hi
    u need a parser or validate the xml file for to read the xml file from java coding u need for this
    xml4j.jar u can download this file  from here
    http://www.alphaworks.ibm.com/tech/xml4j
    or we can use the SAX(simple API for XML)
    some sample applications for this
    http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
    http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
    http://www.xml-training-guide.com/e-xml44.html
    let me know u need any other info
    bvr

Maybe you are looking for

  • Sorry, something went wrong

    Hi All, I am using Power BI version, I have created a data model with all the relationships correct, when I am putting a question in Power BI Q&A it is showing me an error "Sorry Something went wrong There was a mismatch in the metadata. This usually

  • Change toc link in generated help?

    Is it possible to change a link in the TOC after it has been generated? I edited all the files I thought were relevant but the change I wanted did not occur. I modified whlstt0, whlstt1, and whdata0.xml ... all of which contained the link I wanted to

  • Drill down in Pl Book

    Hi I am facing a weird problem in DP Pl book. After i load a selection and drill down by a char by just 2 values in details(filter), it shows correct. Later when i second drill down by another char by just 2 values out of 10. It shows up all 10 value

  • Installing Windows using a different computers install disk

    I am trying to install Windows using bootcamp. It says I need " A Mac OS X Leopard installation disk, which can be either of the following: Â a Mac OS X Leopard disc (included with all purchased copies of Leopard) Â a Mac OS X Install Disc 1 (include

  • Foldarizing Discoverer Workbooks

    Hi We are using Disco 10G. My client is using Disco plus for Adhoc reporting purpose. Each user has so many work books in different subject area, they were asking, whether it is possible to foldarize the discoverer workbooks,i.e. Subject area A, will