How to 'import xml' in my script

Hi All,
Below "Script 1" is working fine, now I want to call the '.xml' file which was placed in Template folder(see script code).
How to import xml in 'New.indd' file("Line 27:-->var source = File(path + '/New.indd')".
Please add import xml code in 'Script 1"
Script 1:
var path = Folder.selectDialog ("Select folder");
if(path==null)
exit();
var files = path.getFiles(/\.(indd?|indt?)$/i);
if(files==0)  
  alert("There is no 'indd'/'indt' file in your folder");
  exit();
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
try
myDocument = app.open(new File(files));
MasterpageScriptLabel();
TableCellStyleCreation();
myDocument.save(new File(path + "/New.indd"));
var folder = new Folder(path + '/Updated_Folder');
folder.create();
myDocument.close();
var source = File(path + '/New.indd');
var dest = new File(folder + '/New.indd');
source.copy(dest);
source.remove();
catch(e)
alert ("Your folder permissible only one file of 'INDD' or 'INDT' file");
exit();
function MasterpageScriptLabel()
var myDoc=app.activeDocument;
var myXMLElement=myDoc.xmlElements[0];
if(myXMLElement.isValid)
    var myParentStory=myXMLElement.parentStory;
    var myTextContainers=myParentStory.textContainers;
    for(var i=0;i<myTextContainers.length;i++)
        myTextContainers[i].label="S_TF";
var myDoc=app.activeDocument;
var mspreads=myDoc.masterSpreads;
for (i=0;i<mspreads.length;i++)
if(mspreads[i].textFrames.length>1)
    var txfmlength=mspreads[i].textFrames;
    for (j=0;j<txfmlength.length;j++)
        if(txfmlength[j].nextTextFrame!=null)
        {txfmlength[j].label="S_TF";}
        if(txfmlength[j].previousTextFrame!=null)
        {txfmlength[j].label="S_TF";}
function TableCellStyleCreation()
    var cestyle = myDocument.cellStyles;
    var array = ["TBL_COLH", "TBL_BODY"];
    var i = array.length;
    while(i--)
            try{
                var style = myDocument.cellStyles.add();
                style.name = array[i++];
            catch(e)
                style.remove();
                alert("'" + array[i-1] + "'"+ " Already exists in the document.")
            i--;
main();
function main(){
      var progress_win = new Window ("palette");
var progress = progress_bar(progress_win, 2, 'Processing ... Completed');
    delay(1);
      progress.value = progress.value+1;
    delay(1);
    progress.parent.close();
// delay function found here
//found here http://www.wer-weiss-was.de/theme157/article1143593.html
  function delay(prmSec){
  prmSec *= 1000;
  var eDate = null;
  var eMsec = 0;
  var sDate = new Date();
  var sMsec = sDate.getTime();
  do {
  eDate = new Date();
  eMsec = eDate.getTime();
  } while ((eMsec-sMsec)<prmSec);
* Taken from ScriptUI by Peter Kahrel
* @param  {Palette} w    the palette the progress is shown on
* @param  {[type]} stop [description]
* @return {[type]}      [description]
function progress_bar (w, stop, labeltext) {
var txt = w.add('statictext',undefined,labeltext);
var pbar = w.add ("progressbar", undefined, 1, stop);
pbar.preferredSize = [300,20];
w.show ();
return pbar;
by
hasvi

DECLARE @x xml=N'
<Jobs>
<Job>
<JobCode>123</JobCode>
<JobTitle>Years</JobTitle>
<JobSubCode>
<div>
<Ol>
<li>2001</li>
<li>2002e</li>
<li>2003</li>
<li>2004</li>
</Ol>
</div>
</JobSubCode>
</Job>
</Jobs>'
SELECT J.c.value('(JobCode/text())[1]', 'varchar(10)') AS JobCode,
       J.c.value('(JobTitle/text())[1]', 'nvarchar(40)') AS JobTitle,
       L.c.value('.', 'varchar(10)') AS Years
FROM   @x.nodes('/Jobs/Job') AS J(c)
CROSS  APPLY J.c.nodes('JobSubCode/div/Ol/li') AS L(c)
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • I need to know how to import xml files into indesign cs6.

    My client wants to send me xml text files to import into Indesign for a multi-page publication. I don't have a clue where to start. Can you point me to a tutorial that would help me figure this out?
    I have a sample file that looks like this:
    <?xml version="1.0"?>
    <providers>
      <provider>
        <name>Bow Valley College</name>
        <description>Putting the Community back in college&#x2026;in the Bow Corrid
    ANY TIME, ANY PLACE, ANY PATH, ANY PACE LEARNING.
    Designated as the comprehensive community college for Calgary &amp; its
    surrounding region, Bow Valley College offers you learning opportunities
    through flexible delivery options, including classrooms, online or self
    paced modules. Whether you are taking a course for interest, to enhance
    your career skills or to finish high school you have access to all of the
    traditional Bow Valley College student supports.
    Visit our website [2] or come see us at our Canmore campus.
    BOW VALLEY LEARNING COUNCIL MEMBER.
    Links:
    [1] http://www.bowvalleycollege.ca/bow-corridor.html
    </description>
        <contact_information>Canmore Campus
    Provincial Building, 800 Railway Ave.
    Canmore, AB&#xA0; T1W 1P1
    OFFICE HOURS: 8:30am - 4:30pm, Monday - Friday (except from 12 - 1pm)
    PHONE: (403) 678-3125
    FAX: (403) 678-3127
    BANFF CAMPUS: Lower Level, Banff YWCA, 102 Spray Ave., Banff (ONLY OPEN
    WHEN COURSES OFFERED).&#xA0;</contact_information>
        <email>[email protected]</email>
        <website>www.bowvalleycollege.ca/bow-corridor</website>
        <registration_information>Cancellation policy: Once your course has begun no refunds or credits will
    be given. Compassionate grounds may be considered with official
    documentation. There are no refunds, transfers, or credits if you cancel
    within one week of the course start date.
    BY PHONE: (403) 678-3125. Payment by Visa or Mastercard
    IN PERSON: Canmore Campus, Provincial Building, 800 Railway Ave., Canmore.
    Payment by cash, Visa or Mastercard.
    &#xA0;
    FUNDING ASSISTANCE&#xA0;MAY BE AVAILABLE FOR THOSE ON A LOW INCOME ON SOME
    COURSES. PLEASE ASK FOR MORE INFORMATION.</registration_information>
        <courses>
          <course>
            <title>Computer Basics/Windows 7 - Instructor led, Canmore</title>
            <description>An instructor will lead the class through the basic features of Microsoft
    Windows, the Internet and Email. Find out how to start programs, create,
    save and organize your files and use the online help feature. You&#x2019;ll also
    get an introduction to surfing the internet and setting up an email
    account. This course is designed for those with little or no computer
    experience &#x2013; and is still our most popular course. 18 HR COURSE.</description>
            <schedule_entries>
              <entry>
                <date>Mon 6:30 - 9 pm, Oct 7 - Dec 2</date>
                <date>Thu 6:30 - 9 pm, Oct 10 - Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
            <title>Word 2010 Introduction - Self-paced</title>
            <description>Explore the basics of Microsoft Word to produce professional letters and
    documents. This course guides you through the effective use of the Word
    Ribbon and Quick Access Toolbar. You&#x2019;ll learn how to efficiently edit,
    move and copy text; manipulate fonts; apply bullets and numbering; borders
    and shading; insert and re-size Clip Art; enter headers and footers; insert
    page numbers; set alignment and indents; and change page settings. You&#x2019;ll
    learn to use the AutoCorrect feature and finish documents using the
    spelling, thesaurus and grammar features.
    Self-paced, 18 hr course.
    Prerequisite recommended: Computer Basics or equivalent experience.</description>
            <schedule_entries>
              <entry>
                <date>Mon 7:30 - 9 pm, Oct 7</date>
                <date>Thu 7:30 - 9 pm, Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
    AND SO ON...FOR 64 PAGES WORTH OF CONTENT
    HELP!!!
    SGAREN

    Hello Sally,
    First, I have only heard/read good things about the book Steve recommends. It is on my to buy list one day. Been awaiting a long deserved vaction to pick it up to read.
    I approach XML files pretty much like I do any text file I am sent in that I will import or copy/paste a text file into a frame in ID and begin setting my styles. With XML, though, I first clean it up, move closing tags up to their logical close lines, remove spurious codes that mean something in HTML but don't necessarily belong in the XML file (like &#x2019 which is an apostrophe so I do a search and replace. But for &#xA0; which is a non-breaking space I simply search and replace with a regular space in general), and make sure the XML validates.
    Validation is much like making sure an HTML page is formed properly. I use an XML editor (XML BluePrint) and a text editor (UltraEdit) for these tasks. If I had to only have one or the other, I suppose the XML editor is what I would use.
    I always show the import options when I import the XML and make sure that I link to the file.
    So once a sample of the XML is on a page in ID (via File | Import XML), I highlight text within a tag, say like in your example above, the Providor name, and make it like I want and then create a new style. I generally name the styles as per the XML tag. Later on, that makes mapping tags to styles a little easier.
    Once I set up all the styles preliminarily, I map the tags to styles. You can do that either via the Tags palette or via the Structure Pane that will appear once the XML is imported. In both cases, it is found via the flyout menu at the top right of their respective windows.
    After mapping my styles to the tags, I select the root element in the Structure Pane (the topmost element. In your sample above it is "providors" and delete it. This removes the XML in your ID file. But the styles and tags are still present.
    Then I import the XML again and look to makes sure all the tags/elements are styled as intended. I then correct any errors/ommissions. Then...I'll delete the XML again and import the full XML file.
    I can upload what I did with your XML sample above so you can compare it to your source file if you would like. You would then see how/where I moved tags. Now, moving the tags is only "necessary" to avoid all the extra blank paragraphs. That can be accomplished by ID's search/replace, too. But I like to start out with the XML cleaned up, so I take the few minutes to do it.
    Take care, Mike

  • Can't Figure Out How To Import XML into a Table?

    HELP!
    I've been using InDesign for several years now... but everything Ive ever done has been basic one off layout concepts.
    I am working on a website for a musical theater actress and for her resume, Id like to make a PDF which lists in table format the show, theatre and role she had for each job.
    I could do this manually... but Id really like to learn how to just reuse the same XML data that I have for her website and import it into InDesign.
    I have looked at Adobe's help file, I have scoured the internet, and I still can't figure it out... I have done like the adobe support file says... and I cant seem to get the values I create in her resume xml file to show up in a table I create in InDesign.
    I even tried to simplify it for the learning process and did something as basic as an XML file that has 5 colors... couldnt even get that working.
    So could someone explain it to me like Im a 5 year old... how to take a XML file, import it, place it in a table and have the data actually show up in the table.
    thanks,
    brian

    Are you sure you want to use XML with tables for this? No doubt importing XML into tables is useful for some specialized tasks, such as importing formatting information inside the XML itself, but for most of the familiar tasks that XML excels at, tables are neither necessary nor useful.
    In my (limited) experience, if the XML elements are well-differentiated, by which I mean different types of data have their own distinctive tags, then the special powers of XML can be exploited more fully using the more familiar tagged text, nested tags etc. in ordinary text frames using paragraph breaks, tab characters, etc. to achieve a suitably "tabular" finished appearance.
    If you must import XML into tables, I recommend Adobe's own PDF "Adobe InDesign CS3 and XML: A Technical Reference" availabe here:
    http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf
    It sounds very daunting -- the words "technical reference" make me shudder -- but actually it's very readable and not very technical at all. Some nice pics and everything!
    Jeremy

  • How can import XML, keeping "untagged" TABs?

    At a number of places at this forum I find this or similar comments / recommendations:
    "my advice would be to avoid formatting text by doing anything  to the XML file. InDesign is made for formatting text, so it can do it  better. I recommend you take a close look at how the tags and paragraph  returns are arranged in the (pre-import) InDesign document rather than  the XML file."
    I try to do follow this advise, by putting TABs in the "template". See image below, showing tagged placeholder text:
    As you can see, there are TABs between the tags in the template. When importing a matching `XML file, these TABs disappear, and the text looks like this:
    I have tried a lot of combinations of import settings, but none of them seems to result in keeping the tabs.
    This import setting:
    results in a fairly good looking import, but the tabs are gone...
    Others have put the tabs and white space data inside the XML, but every time they say that, there is a comment like the one referred to at the top of this post.
    But then, how CAN tabs in the template be kept when importing XML? Please explain.
    (Edit: The TABs are of cource tagged in one meaning, being inside the surrounding PRD elements in my example)
    Best regards,
    Andreas

    I might be talking to myself here. Anyway:
    Chosing to ignore white space when importing...
    means that the import is leaving the TABs intact, but that somehow also means that Carriage Returns and/or Line Feeds are not repeated as it was properly before:
    So if tabs are kept this way, then how should I manage new lines?

  • How to import XML into SQL Table

    Dear all,
    There are a lot of books about exporting data into XML format.
    Actually, how to use XML Documents? Sorry I am new that I ask such a question.
    What i think may be exchange or save data using xml. If so, How to import into MS SQL table? Do it need to do any mapping?
    Appreciate for your hints

    Are you sure you want to use XML with tables for this? No doubt importing XML into tables is useful for some specialized tasks, such as importing formatting information inside the XML itself, but for most of the familiar tasks that XML excels at, tables are neither necessary nor useful.
    In my (limited) experience, if the XML elements are well-differentiated, by which I mean different types of data have their own distinctive tags, then the special powers of XML can be exploited more fully using the more familiar tagged text, nested tags etc. in ordinary text frames using paragraph breaks, tab characters, etc. to achieve a suitably "tabular" finished appearance.
    If you must import XML into tables, I recommend Adobe's own PDF "Adobe InDesign CS3 and XML: A Technical Reference" availabe here:
    http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf
    It sounds very daunting -- the words "technical reference" make me shudder -- but actually it's very readable and not very technical at all. Some nice pics and everything!
    Jeremy

  • How to import xml with data?

    Excel 2013
    i got an XML file generated by the GPinventory tool. when i import it into Excel, i only get the headers.
    how can i import the data as well?

    Hi,
    As far as I know, the GPinventory tool Supported Operating System :Windows 2000, Windows Server 2003, Windows XP, I suppose it generated XML file with Excel 2003 schema, but Excel 2013 have a new XML schema. This issue usually caused by the XML scheme.
    Please create a Excel 2013 schema XML file
    to test with Excel 2013, if the file could be import well. We'd better check the generated XML file.
    As a workaround, we'd better save the results as
    a tab-delimited text file and then import to Excel 2013.
    If this issue still exists, please upload the XML file through OneDrive. I want to test it.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help. If you have any feedback on our support, please click "[email protected]"

  • How to import XML repport in Excel 2007

    Hi,
    I am trying to import an XML repport form TestStand Inside Excel 2007.
    I have the stylesheet givent by NI (as requested in the help for Excel 2010 version), which is working fine inside an HTML browser (<?xml-stylesheet type="text/xsl" href="D:\[...]\atp.xsl"?>)
    My problem is that Excel complains that there is not stylesheet, and creates on that is totally non usable. Does somebody already experience this kind of troubles ?
    The help is only on XML import restrictions : http://digital.ni.com/public.nsf/allkb/2684A8DEF366983C8625769A00782F09
    Thank you for you help
    Olivier

    DECLARE @x xml=N'
    <Jobs>
    <Job>
    <JobCode>123</JobCode>
    <JobTitle>Years</JobTitle>
    <JobSubCode>
    <div>
    <Ol>
    <li>2001</li>
    <li>2002e</li>
    <li>2003</li>
    <li>2004</li>
    </Ol>
    </div>
    </JobSubCode>
    </Job>
    </Jobs>'
    SELECT J.c.value('(JobCode/text())[1]', 'varchar(10)') AS JobCode,
           J.c.value('(JobTitle/text())[1]', 'nvarchar(40)') AS JobTitle,
           L.c.value('.', 'varchar(10)') AS Years
    FROM   @x.nodes('/Jobs/Job') AS J(c)
    CROSS  APPLY J.c.nodes('JobSubCode/div/Ol/li') AS L(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to import xml Pages

    Hi
    i have to add some customized Pages with iexpense ,i have Ftpied all the pages to the server and created function to call those pages ,but it is not finding those pages and throwing exception ,i think i havnt followed right way ,is it proper to just FTP the pages like the java classes in the unix server??.
    Please give tip sombody
    thanx in advance
    Pratap

    Go to the C:\xxxx\jdevbin\jdev\bin\ in the command propmt then run the following:
    import c:\jdeveloper\jdevhome\jdev\myprojects\xxxx\oracle\apps\per\xxxx\webui\XXXXPG.xml -username apps -password XXXX -rootdir c:\jdeveloper\jdevhome\jdev\myprojects -dbconnection "(DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXXX)(PORT = XXXX)))(CONNECT_DATA =(SID = XXXXX)))"
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to import/export data in pl/sql developer

    how to import/export data,table script in pl/sql developer.
    By using the export functionality i am getting the dump file.I want a sql file.How do i do it?
    And i want the data in csv file and table script in a sep sql file.How do i do it?

    <li>run your query in "Query Builder"
    <li>Right-Click on the Query-Results
    <li>Click "Export"
    <li>Click on the "Drop-Down" in front of "Format" and choose "insert"
    <li>Provide the location and name of ther "sql" file.
    If you want output in CSV format, choose "csv" from the "format" drop-down.
    HTH

  • Import XML structure

    Hello,
    I'm looking for instruction, step by step how I can import xml file.
    I want to use with this xml structure to my RFC to XML scenario
    Regards
    Elad

    hi Elad,
    step by step how to import xml/xsd file
    1. Go to Integration Repository>your Name space>>Interface Objects.
    2.Interface Objects-->> External Definitions
    3. Right click on it >>new>> ok -->>give it a name.
    4.Edit external definition-->>CATEGORY: XSD
    5.select file from your local Drive eg C:/
    6.Choose with F4 help.
    7. Now you can see message,WSDL,Import doc,external ref. in simultaneous Tabs
    Regards,
    Mandeep Virk
    *reward if helpful info*

  • How to import google subscription to Nokia browser...

    I know I can export google reader subscription to an xml file. Then can I import it to browser's web feed?
    Message Edited by leontancfa on 15-Jun-2008 02:01 PM

    re.
    how to import .xml file to webfeed? Thanks.

  • When importing XML, how do I remove lines with labels but no content?

    I am working on a directory whose content is supplied as an XML file. I've created an automatic layout with static text/labels for contact details (e.g. Phone, Fax).
    When I import the file, superfluous lines with the static text and no content are created. I have 'Delete elements, frames and content that do not match imported XML' checked.
    Is there a way of avoid creating these? I've tried doing a search and replace to remove these but this causes quite a few other problems.
    Any help - much appreciated!

    Hi Alison,
    Did you create the posted XML file by extracting it from a larger file you've been using successfully? I ask because there seem to be a couple of problems with it which make me wonder how you got it to work at all, at least with the provided InDesign file's XML structure:
    The immediate child element of the "root" element in the XML document is one called "step2 ". All of the values with which you are concerned are children of that "step2" element, and yet the structure in the InDesign document contains no "step2" element. As a result, when I import, I get nothing at all in my InDesign document's content (though the data are in the XML structure, buried in a newly-created "step2" element.
    In both the XML and the InDesign document's XML structure, you have two different elements which are both named the exactly the same - "description" - (actually, in the XML document, there are three of them). When InDesign imports XML, it stops after the first "match" that it finds, so this will not work in any way that I imagine you intend it to. Based on the content of your InDesign document, I would think there ought to be two separate elements in your XML - named something like "step_description" and "category_description".
    If, after getting this all straightened out, your question is how to somehow make the text of an empty element (e.g., <description></description>) disappear in the imported result, there are a few possibilities:
    Get rid of the text inside the tag markers in your template/base document - for example, instead of having "[step_description]" (where the "[]" represent the tag markers), just make it be "[]". That way, if there is no text value for "step_description", there will be no text left after the import. However, if you put a end-of-paragraph in your template/base file, that will still be there. In most cases, that's not desired, so you might want to put the empty tag ("[]") in the text flow without a carriage return/line break. If you do that, you will need to include the carriage return in the XML data (which admittedly slightly violates the notion of separating presentation from content). Rather than the xml looking like this:
    <step_description>This is the text of my step description.</step_description> you would need to make it be this:
    <step_description>This is the text of my step description.&#13;</step_description>
    (having added "&#13;" to represent the carriage return (ASCII character 13).
    As above, make the tag an empty one, include the carriage return in your InDesign template/base document, and then write (or have written) a script to run after the XML import to deal with such empty tag cases.
    Upgrade to InDesign CS3, CS4, or soon, CS5, so you can take advantage of the "XML Rules" feature which was introduced in CS3. XML Rules will essentially allow you to automate the second option - running a script - as the XML import is taking place.
    Excuse the long (and probably unclear) post. If I've misunderstood your question, then please excuse it doubly...

  • How to create ArrayColletion in mx:Script from mx:Model id="results" source="/data/data.xml" /

    How to create ArrayColletion in mx:Script from <mx:Model
    id="results" source="/data/data.xml" />
    Please see my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="results" source="/data/data.xml" />
    <mx:Script>
    import mx.collections.ArrayCollection;
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    </mx:Script>
    <mx:ArrayCollection id ="dt1"
    source="{ArrayUtil.toArray(results.result)}"/>
    <mx:Script><![CDATA[
    [Bindable]
    public var expenses:ArrayCollection = dt1;
    [Bindable]
    public var expenses2:ArrayCollection = dt1;
    [Bindable]
    public var dp:ArrayCollection=expenses;
    public function changeDataProvider():void{
    Alert.show(expenses.toString());
    if (dp==expenses){
    dp=expenses2;
    }else{
    dp=expenses;
    ]]></mx:Script>
    <mx:Panel x="10" y="10" width="100%" height="378"
    layout="absolute">
    <mx:ColumnChart dataProvider="{dt1}" x="10" y="10"
    id="myChart" height="318" width="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries displayName="apple" yField="apple"/>
    <mx:ColumnSeries displayName="orange"
    yField="orange"/>
    <mx:ColumnSeries displayName="banana"
    yField="banana"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{myChart}" x="481" y="10"/>
    </mx:Panel>
    <mx:Button x="284" y="416" label="Change Data" id="bt"
    click="changeDataProvider()" />
    </mx:Application>

    Tracy,
    Thanks. That worked. However I have another related question:
    I convert the xml feed to a XMLListCollection by doing:
    <mx:XMLListCollection id="mission"
    source="{xmlFeed.lastResult.day}"/>
    and
    <mx:XMLListCollection id="mission1"
    source="{xmlFeed.lastResult.day.tBlock}"/>
    On the chart I have
    <mx:ColumnChart id="missionReadiness" height="150%"
    width="100%"
    paddingLeft="2" paddingRight="2"
    showDataTips="true" dataProvider="{mission1}">
    <mx:series>
    <mx:ColumnSeries xField="" yField="@today"
    displayName="Today"/>
    <mx:ColumnSeries xField="" yField="@tomorrow"
    displayName="Tomorrow"/>
    <mx:ColumnSeries xField="" yField="@afterT"
    displayName="After Tomorrow"/>
    </mx:series>
    </mx:ColumnChart>
    the yField works, but for the xField I want to have the @date
    but refers to the parent node, so I am clueless on how to refer to
    it.
    Also, I would like to display on the chart only the values to
    a specific date (like @date="05/17/2007").
    Any suggestions on how to do that?
    Gilbert

  • How to update XML file through UCCX script ?

    Hi,
    I have an UCCX script with MENU step. One of the step is for technical support team. When caller chose this step, information about date and time of the call and calling number should be recorded on a XML file located on the web server.
    This XML is uploaded into the web server , but I don't know how to update it through UCCX script.
    Here is how the XML file looks like:
    <?xml version="1.0" ?>
    <rss version="2.0">
    <channel>
    <title>CALL LOG</title>
    <link></link>
    <description>Support Call log</description>
    <ttl>1</ttl>
    <item>
    <title>2011-08-24 14:56:39 - 00044 123 123 123</title>
    <link></link>
    <description></description>
    </item
    </channel>
    </rss>
    Any idea?
    Thanks,
    O

    Hi
    The 'keyword transform' step uses the template XML file to generate the actual XML file you want to post... the template would be a plain text file uploaded to the repository, and would look like so:
    <?xml version="1.0" ?>
    CALL LOG
    Support Call log
    1
    %%calldatetime%% - %%clinumber%%
    Now - if you had that bit of XML, with correct time/number in it - have you verified know that you can definately just post that XML to a certain URL to get it on the server? Check with whoever manages that server exactly what you need to do to get it to appear - then worry about how you do that from UCCX. It may not be a matter of posting up that XML, you may need it in a different format or something..
    Aaron

Maybe you are looking for

  • AS2 Adapter

    Hi Experts,   I have got a special requirement, can you please suggest is this requirement is possible or not in SAP PI using seeburger AS2 adapter. We have a got probelm in Our GIS System in setting up AS2 profiles for one of our customer. So we tho

  • Remove exchange co-existance

    I'm running OCS 9.0.4.2 configured to co-exist with exchange. I,am now trying to remove exchange from the system. My ISP controls my MX record all inbound email goes to my ISP who then forwards it to us. These are the step I think I need to do to get

  • Can't save a model

    I can create objects, connect to back-end systems, create iviews and forms, deploy models and test on the portal. But, I can't seem to save my work in vc. Any thoughts? Thanks, Thomas

  • PR no created in SRM : No valid request Found for user 0013

    Hi.  I try Send PR from ECC6.0 to SRM 7.0  I appobed the PR in BACK end but SC does not created in SRM side. in transaction SLG1 into SRM show the next message. No valid requester found for user 0013 . Previously made the next configurations 1.- IN E

  • Parallax scrolling website with navigation menu.

    I am making a website with parallax scolling. It is going to be a story from top to bottom. The story is going to be quite long, so my idea was to put in a fixed navigation menu. If you click on buttons in the menu you go directly to different parts