run the XML content in a document

Right now I use the following for a placement of XML workflow. Import XML with a script from the CS5 Scripting Guide. I shoot to the top of the group structure and I drag and drop the root XML element in the document, the document automatically adds pages and inserts the contents of the XML file. That's exactly what I would like to be able to do, but with a script. How can I accomplish this? Also, what would be the term appropriate for this sort of thing? I think that "reinvest the XML content in the document", but I wonder if there is a more precise term.

Thanks for having an and any assistance provided.

Pretty much just that, I think:

var doc = app.activeDocument;
var frame = doc.masterSpreads[0].textFrames[0].override(doc.pages[0]);
frame.markup(doc.xmlElements[0]);

(Not tested).

Jeff

Tags: InDesign

Similar Questions

  • How can I save xml file n, run the xml file? Please help me

    How can I save xml file n, run the xml file? Please help me

    Hello

    The question you have posted will be well suited in the MSDN forum. Click on the link below.

    http://social.msdn.Microsoft.com/forums/en/categories/

    In the meantime, I suggest you to return the item mentioned below.

    How to use XML Notepad to create an XML document

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

  • Make a Table of the dynamic contents for a document with a liquid layout... Help!

    * Running LiveCycle ES4 and use of the 'action' to code generator *.

    I have a HUGE document (70 + pages) that needs a dynamic table of content that updates the user adds information that can push all the sections that follow to the new page numbers.  There are sections AND subsections under each article, but for this, lets keep things simple and just talk sections.  I had to face to find a way to do this for months and I need to have done this week. I already have the table of contents and click on each section heading, it sets the focus to the PDF for the first text field in this section.  (each section has a text field just after the title of section)


    To make it dynamic, I added 2 pieces for each section:

    (1) a field of visible text on the Table of contents page with the default page number that the article is on until the user enters information

    2) an invisible digital field placed just before the first text field in each section that of value is set on "property page number: current runtime" so he always holds the current page number


    Using the constructor Action, what I do is every time a textfield is changed, change the value of the table visible from the field content of this section to the value of the invisible digital field that is now the current page number.  There are 7 sections, so if the text of article 2 field is changed, then update the Table of contents to sections 3-7.


    Screen Shot 2015-01-27 at 12.05.36 PM.png


    When I tested on a single article, it worked.  But now it does not work and I do not know why.


    Here are some properties of the object than my being at the origin of the problems too. If anything sticks?


    Visible box on the table of contents page

    Domain: Type = text field

    Value: Type = Protected (I was cycling through all THE different types, but the only time where it worked, it was the Type of value)


    Invisible box above the first textfield in each section

    Domain: Type = numeric field

    Value: Type = calculated - read-only property of execution: current Page number


    any suggestions? Thank you!

    This has never answered, but I understand on mine.  Figured since it had 66 times, I would like to share what I found.  It was actually an easy fix.

    I added a textfield (set to display the current page number of the page on which it is) at the beginning of each section that appears in the table of contents and set it to always stay with the first line of text in this section as well as the document grew, the page number, in that the section begins will remain correct.  Place to hide it.  In the "binding" tab, I put the name is the same name as the corresponding heading in the table of contents.

    Hope this helps someone who is in my place last year. =)

  • Assign the XML content to dynamic text fields

    Hey there,

    After the search in the forums, I found that I can load files XML and content to animate CC using the XMLHttpRequest, but how do I load content in a specific dynamic text field?

    I found a few answers that confirm that we should use XMLHttpRequest and some users who made it work, but not how. Any help would be much appreciated.

    Below is how I added the request and how the dynamic field has been implemented.

    This.frame_0 = function() {}

    var xhttp = new XMLHttpRequest();

    xhttp.onreadystatechange = function() {}

    If (xhttp.readyState == 4 & & xhttp.status == 200) {}

    myFunction (xhttp);

    }

    };

    xhttp. Open ("GET","profil.xml", true);

    xhttp. Send();

    Function myFunction (xml) {}

    var xmlDoc = xml.responseXML;

    document.getElementsByTagName("nameTextField").innerHTML = / * this part is not correct, but so far I have found no better solution * /.

    xmlDoc.getElementsByTagName ("title") [0] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue;

    }

    }

    And for the text field (created by animate CC):

    this.nameTextField is new syc. Text ("", "53px 'Arial'");
    this.nameTextField.name = "nameTextField";
    this.nameTextField.textAlign = 'center ';
    this.nameTextField.lineHeight = 61;
    this.nameTextField.lineWidth = 388;
    this.nameTextField.setTransform (265,124.4);

    this.timeline.addTween (syc. Tween.get (this.nameTextField). Wait (2));

    I really hope someone can help, I spent hours looking and trying solutions.

    See you soon,.

    Luke

    As already said:

    this.mydynamictextfield.text = "hello I am text in a dynamic text field";
    

    If you need really, really specific, it would be in this case:

    this.mydynamictextfield.text = animals[0];
    
  • How to write the xml content of a file (Blob data Type) with other columns in file system

    Team,
    We are currently working on oracle 11 g. Suppose that we consider the SCOTT. EMP table for our creation of the table.
    All existing columns of SCOTT along. EMP table allows to assume that this table has an additional column name emp_xml, which is of TYpe of BLOB data and it holds xml data.
    the size of the data blob for each record in this col is greater than 32 KB (normally about 1 GB), now I want to write the contents of this column along
    with enmae, empno, hiredate into an external file. Assume that if we are only to the BLOB column that is emp_xml then the code below works

    Start

    for c in (select emp_xml from your_table)

    loop

    dbms_xslprocessor.clob2file (emp_xml.getclobval (), 'YOUR_LOCATION', 'YOUR_DYNAMIC_FILENAME')
    end loop;
    end;

    but I want empno, enmae, hiredate with blob emp_xml written in the external file. Any assistance in this case welcome.

    Concerning

    max_linesize

    Maximum number of characters for each line, including the newline character,
    for this file (minimum 1, maximum value 32767). If not specified, Oracle
    provides a default value of 1024.

    Defines how much you can read or write to a single call. I have to loop through the clob object and I write a pieces of 1024. So there is no limit to how much she can write. Just test it, IT will WORK!

  • To access the webcenter content/imaging of documents using a URL

    Hello
    I would like to know if there is any possibility to access the content of WC by using a URL.
    For example:
    There is a document called "Invoice1232.pdf" in the content of the WC.
    I want to download from a custom web application.
    Can I open/download using a url similar to "http://myserver:, / Invoice1232.pdf?

    Thanks in advance,
    Marc

    . Insert documents, the web application at the WC. I guess with persistent URL or an IdcCommand... I don't know what is the best...

    I would go with CRMI (if your application is written in Java) or web service (other languages). A sample of CRMI is available, for example, here: Re: how to check the file exists in the path specified in the content server or not

  • Muse of update and changes made to the homepage now get this error... error message by calling the selection function: security error: cannot read the iframe content of html document

    Changes made on my homepage and it looks a lot like the preview in the browser, but when I upload it to my server I get the below error message. Help, please!

    muse-error.jpg

    It is common for opening a locally implemented Web site containing social widgets or any other third part code to generate errors of security because it will be loaded in the browser using the file:// Protocol. When a site is presented as a preview of Muse (Muse or in the browser) or transferred to a hosting provider, it is served using the http:// (or https://) Protocol and security errors do not occur.

    Frequently, the code of third party that comes with using social widgets or any other things that rely on the third party and/or services code is not designed to work through the file:// Protocol.

  • Retrieve / search a specific node of the XML file

    Hello

    I have a question about reading the XML (search) in PL SQL file:

    There is an XML file with the following structure:
    <root>
      <Hnode1 attr1="value1" />
      <Hnode2 attr1="value1" /> 
         <node1_of_Hnode2 id="10" personname="Steven"/>
         <node2_of_Hnode2 id="20" personname="Christian"/>
         <node3_of_Hnode2 id="30" personname="Arnold"/>
         .
         .
      <Hnode2/>
    <root/>
    How it is possible to filter a node by one of its attribute value. For example:
    The id of a person - I guess that id = 20. In this case I would like to get the whole node (in this case node2_of_Hnode2) to get the personname = > 'Christian '.
    Just like a SELECT statement (WHERE ID = 20)

    Is it possible to get it in a single order or should it be buckled on all the lines in the Document. Can you please provide an example for me.

    Thank you for advice!

    The basic version is 10.

    Sorry, this is not a version.
    For example:

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
     
    

    The use of the extraction of the values?
    1. better in a Select statement. assignment directli in a variable, or by using the xmlquery function?

    PL/SQL or SQL calls to the XMLType methods such as getStringVal() or extract() function should be equivalent (save the change of context).
    However, none of them are the right way to retrieve a scalar value of a given node.
    You must use the rather extractValue() function (SQL only) for immediate release< 11.2="" and="" xmlcast/xmlquery="" starting="" with="">

    Another Question:

    I've seen a lot of options for dealing with XML files.

    In my case only query data in XML files is relevant.

    I've seen to many API called XMLDOM, DMBS_XMLDOM, XMLTYPE...

    When to use these APIs. Can you give me feedback on this please?

    It is a broad topic.
    An appropriate response will depend on your condition.

    -You have to deal with large files and if so what size?
    -Performance/memory management is a concern for you?
    -You want to extract unique values or process the XML content in the form of relational data?

    If you have any specific test cases to show us, please post in the {forum: id = 34} forum and make sure to include all the necessary details (see the FAQ).

    Published by: odie_63 on 23 Feb. 2012 11:35

  • Display the XML in a relational manner attributes

    Dear people,

    I have an XML file that I must read and analyze several columns.

    The file is cleverly structured to avoid almost entirely using the XML elements for the use of attributes, so my usual method of learning (try to change the examples until something works) seems perfectly inoperative.

    Here's what the file looks like:
    <?xml version='1.0' encoding='UTF-8'?>
      <filterbox name="global">
        <filter
             name="SOME_NAME_OR_OTHER1"
             metriclabel="Metric:"
             metricshow="Sum"
             metricof="Tally"
             view="Default"
             viewtype="global"
             sql="State = 0 AND ID = 3">
        </filter>
        <filter
             name="SOME_NAME_OR_OTHER2"
             metriclabel="Metric:"
             metricshow="Sum"
             metricof="Tally"
             view="Default"
             viewtype="global"
             sql="State = 1 AND ID = 0">
        </filter>
      <filterbox name="global">
    This is the only way in which this DataSet interacts with XML in some way, and performance/flexibility are not major issues, so I am considering just write some PL/SQL to parse the document.

    Or does anyone have ideas for a way relatively simple to solve this problem?

    Hi David,

    Have the XML content loaded in an XMLType variable, either an XMLType table and XMLTable can divide it into columns and relational rows.

    For example:

    SQL> WITH sample_data AS (
      2    SELECT xmltype('
      3      
     11      
     12      
     20      
     21    ') as xml_doc
     22    FROM dual
     23  )
     24  SELECT x.*
     25  FROM sample_data t
     26     , XMLTable(
     27        '/filterbox/filter'
     28        passing t.xml_doc
     29        columns name varchar2(30) path '@name'
     30              , metriclabel varchar2(30) path '@metriclabel'
     31              , metricshow varchar2(30) path '@metricshow'
     32              , metricof varchar2(30) path '@metricof'
     33              , "VIEW" varchar2(30) path '@view'
     34              , viewtype varchar2(30) path '@viewtype'
     35              , sql varchar2(100) path '@sql'
     36       ) x
     37  ;
    
    NAME                   METRICLABEL        METRICSHOW       METRICOF      VIEW           VIEWTYPE         SQL
    ---------------------- ------------------ ---------------- ------------- -------------- ---------------- -----------------------
    SOME_NAME_OR_OTHER1    Metric:            Sum              Tally         Default        global           State = 0 AND ID = 3
    SOME_NAME_OR_OTHER2    Metric:            Sum              Tally         Default        global           State = 1 AND ID = 0
     
    
  • How to check if a node exists in the XML file?

    I was asked to program a method to import data from xml files in our Coldfusion 8 Web site, I am new to the use of XML.

    My method worked however I encountered the following error:

    Element NETWORKORDER. SECONDARYADDRESS. CONTACTNAME is undefined in MYDOC.

    Investigation on the node in the XML file was not present.

    Is there a method I can use to resolve this error by checking if a node exists in the xml file, which works with my current code below?

    <!--> reading XML file
    < cffile action = "read" file = "D:\website\XML\#FileName#" variable = "myxml" >
    < cfset mydoc = XmlParse (myxml) >

    <!--> to extract data from the XML of NDS file
    < cfset aPrimaryContactName =(#mydoc.NetworkOrder.PrimaryAddress.ContactName#) >
    < cfset aPrimaryContactNumber =(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactNumber = tostring(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactAddressLine1 =(#mydoc.NetworkOrder.PrimaryAddress.line1#) >
    < cfset aPrimaryContactAddressLine2 =(#mydoc.NetworkOrder.PrimaryAddress.line2#) >
    < cfset aPrimaryContactAddressLine3 =(#mydoc.NetworkOrder.PrimaryAddress.line3#) >
    < cfset aPrimaryContactAddressLine4 =(#mydoc.NetworkOrder.PrimaryAddress.line4#) >
    < cfset aPrimaryContactAddressLine5 =(#mydoc.NetworkOrder.PrimaryAddress.line5#) >
    < cfset aPrimaryContactCity =(#mydoc.NetworkOrder.PrimaryAddress.City#) >
    < cfset aPrimaryContactPostcode =(#mydoc.NetworkOrder.PrimaryAddress.PostalCode#) >
    < cfset aPrimaryContactCounty =(#mydoc.NetworkOrder.PrimaryAddress.CountrySubdivision#) >
    < cfset aPrimaryContactCountryCode =(#mydoc.NetworkOrder.PrimaryAddress.CountryCode#) >
    < cfset aPrimaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >
    < cfset aSecondaryContactName =(#mydoc.NetworkOrder.SecondaryAddress.ContactName#) >
    < cfset aSecondaryAttentionOfName =(#mydoc.NetworkOrder.SecondaryAddress.AttentionOfName#) >
    < cfset aSecondaryContactNumber =(#mydoc.NetworkOrder.SecondaryAddress.ContactNumber#) >
    < cfset aSecondaryContactAddressLine1 =(#mydoc.NetworkOrder.SecondaryAddress.line1#) >
    < cfset aSecondaryContactAddressLine2 =(#mydoc.NetworkOrder.SecondaryAddress.line2#) >
    < cfset aSecondaryContactAddressLine3 =(#mydoc.NetworkOrder.SecondaryAddress.line3#) >
    < cfset aSecondaryContactAddressLine4 =(#mydoc.NetworkOrder.SecondaryAddress.line4#) >
    < cfset aSecondaryContactAddressLine5 =(#mydoc.NetworkOrder.SecondaryAddress.line5#) >
    < cfset aSecondaryContactCity =(#mydoc.NetworkOrder.SecondaryAddress.City#) >
    < cfset aSecondaryContactPostcode =(#mydoc.NetworkOrder.SecondaryAddress.PostalCode#) >
    < cfset aSecondaryContactCounty =(#mydoc.NetworkOrder.SecondaryAddress.CountrySubdivision#) >
    < cfset aSecondaryContactCountryCode =(#mydoc.NetworkOrder.SecondaryAddress.CountryCode#) >
    < cfset aSecondaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >

    Since you already have the XML parsed in a document, the easiest is to use xmlSearch(). Take a look at the doc, it is pretty easy to use. Something as simple as:

    To the most complex as:

    And in both cases:

    Read the doc and google is your friend "coldfusion xmlsearch.

  • How can I activate 3D in PDF content using Adobe Document Cloud?

    I can turn it on when I download the file, but I need to activate it in the cloud, using the default viewer.

    Using the cloud, the yellow bar which allow us to activate the 3D content as in Adobe Acrobat or Reader doesn´t appear.

    I m try with player applications Android/IOS and cloud.acrobat.com

    Hi thomazd76662147,

    It is not possible to activate the 3D content in a document PDF on mobile devices to it gets flattened.

    It will only work on your system.

    Kind regards

    Aadesg

  • Change the content of the xml document as data selected with SQLX functions

    Hi all
    I have seen several examples of database xml documents using SQLX functions but they seem to be simple queries, which we reproduce the same forest of xml in all elements. What I'm trying to do is to create something like the following:


    < billing xmls = "http://blurb.com" >
    < header >
    < timestamp > 2008-12-11 13:28:46 < / timestamp >
    < source > ORCL < / source >
    < / header >
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 36866320 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 092220082100 < / transaction-group-id >
    < ok >
    < charged to date > 2008-09-22T 10: 20:43 - 05:00 < / beak-date >
    < /OK. >
    < / billing-transaction-response >
    < invoice-transaction-response >
    < invoice-transaction-id > 37617490 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 112020082100 < / transaction-group-id >
    < error >
    reasons <>
    < reason >
    < text > impossible to derive information of customer SHIP_TO < / text >
    < / reason >
    < / reasons >
    < / error >
    < / billing-transaction-response >
    < / billing-transaction-answers >
    < / billing >


    I can see how to generate the individual components of the xml document, but I don't know how to put this together in a single select statement:


    SQL > SELECT XMLElement ("billing", XMLAttributes (http://blurb.com LIKE "xmls")
    2, XMLElement ("header"
    3, XMLElement ("timestamp", TO_CHAR (SYSDATE, ' YYYY-MM-DD HH24:MI:SS'))))
    4, XMLElement ("source", "ORCL'"))).extract('/*') xml
    5 FROM DUAL;

    XML
    ----------------------------------------------------------------------------------------
    < billing xmls = "http://blurb.com" >
    < header >
    < timestamp > 2008-12-11 13:28:46 < / timestamp >
    < source > ORCL < / source >
    < / header >
    < / billing >


    SQL > SELECT XMLElement ("billing transaction-answers"
    2, XMLAgg (XMLElement ("billing-transaction-reply"
    3, XMLElement ("billing transaction id", billing_transaction_id)
    4, XMLElement ("billing-transaction-type", billing_transaction_type)
    5, XMLElement ("transaction-group-id", transaction_group_id)
    6, XMLElement ("ok"
    7, XMLElement ("beak-date", billed_date))).extract('/*') xml
    8 FROM table_a
    9 status WHERE! = 'E';

    XML
    ----------------------------------------------------------------------------------------------------
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 36866320 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 092220082100 < / transaction-group-id >
    < ok >
    < charged to date > 2008-09-22T 10: 20:43 - 05:00 < / beak-date >
    < /OK. >
    < / billing-transaction-response >
    < / billing-transaction-answers >



    MDACFS@CORPD23 > SELECT XMLElement ("billing transaction-answers"
    2, XMLAgg (XMLElement ("billing-transaction-reply"
    3, XMLElement ("billing transaction id", billing_transaction_id)
    4, XMLElement ("billing-transaction-type", billing_transaction_type)
    5, XMLElement ("transaction-group-id", transaction_group_id)
    6, XMLElement ("error"
    7, XMLElement ("patterns"
    8, XMLElement ("reason"
    9, XMLElement ("text", error_message))).extract('/*') xml
    10 FROM table_a
    * 11 situation WHERE = 'E '; *

    XML
    -------------------------------------------------------------------------------------
    < transaction and billing-answers >
    < invoice-transaction-response >
    < invoice-transaction-id > 37617490 < / billing-transaction-id >
    ORDER of < invoice-transaction-type > < / billing-transaction-type >
    <-group-id of transaction > 112020082100 < / transaction-group-id >
    < error >
    reasons <>
    < reason >
    < text > impossible to derive information of customer SHIP_TO < / text >
    < / reason >
    < / reasons >
    < / error >
    < / billing-transaction-response >
    < / billing-transaction-answers >

    This is my first attempt to generate xml from the database if it is not a correct approach then please notify. Any help much appreciated.

    See you soon,.
    Paul.

    Given you already wrote each song as a separate statement which refers to what you want, you already have the concept and just need to merge the three queries SQL in one alone. Here is an example of the fusion of your first two SQL set statements.

    SELECT XMLElement("billing", XMLAttributes('http://blurb.com' AS "xmls")
            ,XMLElement("header"
              ,XMLElement("timestamp", TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS'))
              ,XMLElement("source", 'ORCL')
             ),
             (SELECT XMLElement("billing-transaction-replies"
                      ,XMLAgg(XMLElement("billing-transaction-reply"
                       ,XMLElement("billing-transaction-id", rownum))))
               FROM dual
               CONNECT BY level <= 5
             )) rslt
    FROM DUAL;
    
    returns
    
    
         
    2008-12-12 09:21:39 ORCL
    1 2 3 4 5
  • Dialog box States: the document is not valid. The xml index file is missing. What should I do?

    Tried to open a file of numbers. Dialog box shows: the invalid document___is. The xml index file is missing. I can retrieve this file? Suggestions?

    Yes, all you have to do is probably make sure you run the version of numbers which is located in your main Applications folder and open the document with this version.  Probably, you try to open it with the old version of numbers.

    SG

  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

  • How to add content in the xml element?

    I need to insert a word sqrt (plain text without tags) in the xml element of m:msqrt as below:

    enter image description here

    I tried,

         

    var path = (app.activeDocument.fullName.parent.fsName) m:System.NET.SocketAddress.ToString () replace (/ \ / g, ' /'); document path (sample.indd) active

    var xmlPath = (app.activeDocument.fullName.parent.fsName) m:System.NET.SocketAddress.ToString (.replace(/\\/g, '/')) + "" / with_aid2.xml ";"

    xmlFile = file (xmlPath);

    {if (xmlFile.Exists)}

    xmlFile.open ();

    var myString = xmlFile.read ();

    xmlFile.close ();

    myXml = new XML ();

    myXml = XML (myString);

    var msqrtCount = myXml.xpath("//m:msqrt");

    } else {alert (xmlPath + "does not exist!") ;}}

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

    var added = msqrtCount [i];

    added.contents = "sqrt";

    }

    I get an error indicates the invalid content property.

    Try this,

    var myDoc = app.activeDocument;
    mySqrtTag(myDoc)
    function mySqrtTag(elm)
    {
        for (var i = 0; i < elm.xmlElements.length; i++)
        {
            if(elm.xmlElements[i].markupTag.name.toString() == "m:msqrt")
            {
                elm.xmlElements[i].insertionPoints[0].contents = "sqrt";
            }
            mySqrtTag(elm.xmlElements[i]);
        }
    }
    

Maybe you are looking for

  • Calendar of future events is not displayed

    Calendar does not show future events in the search & spotlight search also

  • Back panel Lenovo Z500

    I can't remove my rear panel to replace a bad fan. I remove all of the screws fixing and used some old credit cards to try to get it open, but alas, it won't come off. What is the problem?

  • Blank e-mail in OEX, all of a sudden? I also get: error 25 - 0X800CCC7D

    Yesterday, all of a sudden the emails (received, sent, stored, drafts, all the) show a blank page, I can see only the title-to-from-date-hour-etc. do you know something? I have an AV, installed AVG. I can, however, open attachments. I can't answer, o

  • LaserJet 1020: Custom page size that partially prints

    I have a number of Word documents that I customized the size. All this allows to print ok before the upgrade to windows 10. (I just used to cut the paper down set the charger on the printer & print or I used before paper-cutting).  I tried to do it t

  • Inbox Hotmail displays does not correctly

    I connect to my hotmail account and it does not display properly and is all messed up!, I use vista and chrome, please help me to find an urgent solution that I can't use it.