Local xml file for spry usage

Hi There,
After my last post about this subject I have been browsing
the web for an awnser which would enable me to get this done, but
without any success.
What I'd like is a method (javascript or php would be fine)
to get a remote xml feed from flickr to be saved locally for quick
access by spry.
I'm not a real coder, so it is hard for me to find out.
Please can anyone help?
Kind regards,
Benjamin

specht1 wrote:
> I've read the article, but somehow I do not know what
you mean...
The cURL script in that article acts as a proxy for a remote
XML feed.
If your hosting company hasn't disabled allow_url_fopen, you
can create
an even simpler script:
<?php
$url = '
http://www.example.com/my.xml';
$remote = file_get_contents($url);
header('Content-type:text/xml');
echo $remote;
?>
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Using a local XML file for parsing - iPhone

    Good afternoon everyone. I am trying to create an application for the iPhone that will use an XML file for it's data source. I have been attempting to convert the SeismicXML application from the dev center to use a locally stored file, but to no avail. I have it building and running fine, but no data is appearing. Is there anyone that can give me an example of parsing with a locally stored file? Thanks!

    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"xml"];
    NSData *myData = [NSData dataWithContentsOfFile:filePath];
    if ( myData ) {
    NSXMLParser *parser = [[NSXMLParser alloc] initWithData:myData];
    [parser setDelegate:myObject];
    [parser setShouldProcessNamespaces:NO];
    [parser setShouldReportNamespacePrefixes:NO];
    [parser setShouldResolveExternalEntities:NO];
    [parser parse];
    NSError *parseError = [parser parserError];
    if ( parseError && error) {
    *error = parseError;
    // Do post load activity

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • Using an XML file for server URL instead of hard coding

    I can't find a good example.
    Could someone give me an example of using a local XML file to set a server url variable so i don't have to hard code url's?
    This works and i can trace the xml file but how do i access the individual xml data nodes?
    protected function initApp():void
         var loader:URLLoader = new URLLoader(new URLRequest("config.xml"));
         loader.addEventListener(Event.COMPLETE,configLoadComplete);
    private function configLoadComplete(event:Event):void
         trace(event.target.data);

    Hi,
    <a href="foobar.xml">right click and select save as from the context menu</a>
    or
    write your xml data or a copy of it with a different extension (text) so that it is not parsed as application/xml-xhtml
    or
    Use AJAX to retrieve the xml file and display it as the textContent of a <textarea>
    window.open wraps the xml markup in html tags for display purposes.
    Rob^_^

  • XML file for SEPA Credit transfer

    Hi All,
    I am working in ECC 6.0. The system was configured to generate XML files for credit transfer as per SEPA guidelines. The files are being created in the application layer. But the line length is being restricted to 255 characters. As per the specifications of a XML file in apllication layer. all information should be contained in one single line.
    Secondly the job log for the payment medium creation program contains the below mentioned line among others -
    "Incorrect Print Parameter" of message class "0K", message no. 091and message ID I
    Can anybody tell me what is going wrong?

    HI,
    Can you please help me in solving the issue when using the PMW format SEPA_CT.
    My co. code currency is EUR and when paying the invoice which is in GBP i am not able to get the currency EUR in the DME file generated by the payment run instead I am getting the currency GBP.
    As per the SEPA concept evey payment will be in EUR irrespective of the currency in which the invoice is raised. So please let me know what needs to be done to get the local currency EUR amount the DME file for the payment made against invoice raised in GBP...
    Thanks in Advance..
    Regards
    Sanjeev

  • Wrong currency in intrastat XML file for Zhech Republic

    I'm having problem with intrastat XML file for Zhech Republic currency code. In selection I have defined to have report in EUR currency and all entries are correctly in EUR. But when created XML file the currency code is CZK even values are EUR values. XML field  <currencyCode>CZK</currencyCode>.
    Why and ow this can be corrected?
    Best Regards
    Johanna Nissinen

    HI,
    Can you please help me in solving the issue when using the PMW format SEPA_CT.
    My co. code currency is EUR and when paying the invoice which is in GBP i am not able to get the currency EUR in the DME file generated by the payment run instead I am getting the currency GBP.
    As per the SEPA concept evey payment will be in EUR irrespective of the currency in which the invoice is raised. So please let me know what needs to be done to get the local currency EUR amount the DME file for the payment made against invoice raised in GBP...
    Thanks in Advance..
    Regards
    Sanjeev

  • Working with local xml file

    Hi, I would like to work with a local xml file, but I don't want to point to a strict location as I would like my application to run on a few different machines.
    Is there a special place within Netbeans project structure that I can place such files?
    Say if I try and load a file "somefile.xml" - where is it going to look first?
    I have a <default package> with my settings.xml in there. How can I reference this within my app?
    Edited by: 993541 on Mar 16, 2013 9:25 AM

    993541 wrote:
    Is there a special place within Netbeans project structure that I can place such files?dunno Netbeans project structure at all but I'd sugest maven project structure wich is widely used: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
    There you would place such a file in the <tt>main/resources</tt> folder
    Say if I try and load a file "somefile.xml" - where is it going to look first?I'ts going to look for it where you tell your program to.
    When created as <tt>new File("somefile.xml")</tt> it will bee searched in the <i>currend working directory</i>. The problem with that is that it is unreliable what this will be at runtime (once your Program left your IDE...).
    You should better get it via <tt>getClass().getResource("somefile.xml")</tt> But in this case the file must be present in the classpath in the same package as the Class aquireing it. Adding a <tt>'/'</tt> in front of the file name expects it in the root directory of a classpath entry.
    I have a <default package> with my settings.xml in there. How can I reference this within my app?<tt>getClass().getResource("/settings.xml")</tt>
    But in case you include it into the delivery jar file it will not be writable. Also you cannot expect the installation folder of your App to be writable. On startup of your program you should copy your (default) settings to a writable place like <tt>new File(System.getProperty("user.home2),".myApp/settings.xml");</tt> and modify it there.
    bye
    TPD

  • How to bind to local xml file?

    I have a local XML file referenced in my Declarations tag:
    <fx:Declarations>
    <fx:XML id="myXMLdata" source="assets/names.xml" />
    </fx:Declarations>
    I previously had a proof of concept version working with the XML defined in my MXML with a bindable tag:
    [Bindable]
    public var names : XML= <root>
    etc., etc.
    I need to place the xml in a separate local file so that changes to the file will persist.
    How do I do this and bind to it?
    thanks
    MCE

    http://www.adobe.com/devnet/air/flex/quickstart/xml_prefs.html - This should help you, i guess.
    In short,
    private function saveXML():void
    personXML.firstName = fName_txti.text;
    personXML.lastName = lName_txti.text;
    var newXMLStr:String = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + personXML.toXMLString();
    var fs:FileStream = new FileStream();
    fs.open(file, FileMode.WRITE);
    fs.writeUTFBytes(newXMLStr);
    fs.close();
    This function can be the eventHandler function for, say an XML change event etc.
    Hope this helps,
    Balakrishnan V

  • Help in creation of XML file for IDOC postings

    Hi All,
    Need help if anyone has knowledge/experience in creating XML files for IDOC processing.
    We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface.
    We have an existing input file, which is working correctly.  We are trying to modify this existing input file for a new Tax Code (Non-deductible inverse tax liability).   This tax code is working fine for manual postings.   But, through IDOC, tax postings are not correctly triggering.
    Could you please confirm if any one has experience on this, so that I can share more details for resolving.
    Thanks & Regards,
    Srini

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • How to dpwnload one XML file for each report row

    Hi all,
    i have a report on the products table with about 1000 rows
    desc of table products
    product_id varchar (10)
    product_desc varchar2 (2000)
    I would like to download on the file system an xml file for each row of the report
    the nane of each xml file = <product_id>.xml
    thanks in advance
    km

    Hi,
    You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
    From what I can see in there (and there are a number of examples that would help you), you need to do something like:
    DECLARE
    vPATH VARCHAR2(50) := '/DEV';
    vFILENAME VARCHAR2(50);
    vFILE UTL_FILE.FILE_TYPE;
    BEGIN
    FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
    LOOP
      vFILENAME := C.PRODUCT_ID || '.xml';
      vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
      UTL_FILE.PUT_LINE(vFILE, '<xdr>');
      UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
      UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
      UTL_FILE.PUT_LINE(vFILE, '</xdr>');
      UTL_FILE.FCLOSE(vFILE);
    END LOOP;
    END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
    Andy

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • XML file for GigE Vision camera

    Hello,
    I am working on a design of GigE Vision camera. It should be very simple linescan camera. I implemented the whole required GigE Vision register set, can communicate with the camera in MAX. The problem is that I need to creata this XML file for the camera.There is this XML file here: 
    http://www.emva.org/cms/upload/Standards/GenICam_D​ownloads/SFNC_Reference_Version_2_0_0_Schema_1_1.x​...
    What should I do with it? My first version of the camera will have 2 funcions: turn it on and turn it off I am bit confused, because the xml file template has lots of functions, that I don't really need. Should I delete them? Or leave inside with default values? What does minimal configuration XML file need?
    Regards,
    Linus
    Solved!
    Go to Solution.

    linru wrote:
    Thank you very much! Perhaps I was too concentrated on digging through various documents and missed the important info.
    And one more question: how does NI software build the *.icd file? By reading XML file? Or by reading registers in my camera? 
    Both. The XML is processed by the GenApi software component which then translates it to register operations. The XML file thus controls what features are visible based both on the XML file as well as the camera registers (features in the XML may be conditionally available based on the <pIsImplemented< tag). Next, the IMAQdx ICD file contains the subset of features in the XML file that are available and are tagged as <Streamable>, meaning they can be saved to a settings file.
    Eric

  • Possible elements in the instanceconfig.xml file for presentation services

    g'day
    Has anyone here come across a list of all the possible elements that can be put in the configuration file for a presentation service, instanceconfig.xml ?<P>
    I have found next to nothing in the documentations, about what can be configured there.<P>
    What I am specifically after is: How can I change the default listening port for the Presentation Service? The default port is 9710 and I want to move to another port.<P>
    Also, how can I move the JavaHost from the default port 9810? I can change the file <i>OracleBI/web/javahost/config/config.xml</i> to reflect the change. Once the JavaHost has been restarted it starts up on the expected port, but the Presentation Service still tries to communicate over RPC to port 9810. How do I configure the presentation service to search for the JavaHost on a non-default port?<P>
    I have boiled it down to my original question: What are the possible values I can configure in the instanceconfig.xml file?<P>
    Any comments here would be great.<P>
    Cheers,<br>
    Borkur

    So, I had a little breakthrough here.
    I found in the OBIEE deployment guide, page 142:
    To change the Presentation Services listener port
    1 Open the instanceconfig.xml file for editing.
    2 Locate the <WebConfig> element.
    3 Within the <WebConfig> tags, create the element <RPC> and assign it the RPC Listener Port
    value for the BI Presentation Services instance, as shown in the following example.
    <WebConfig>
    <ServerInstance>
    <RPC>
    <Listener port="9715" />
    </RPC>
    </ServerInstance>
    </WebConfig>
    NOTE: In the preceding example, the RPC Listener port for the BI Presentation Services instance
    has been changed to port 9715 from the default of 9710.
    4 Save changes to the file.
    This almost works. The RPC element has been deprecated, as was reported in the sawserver.out.log:
    The configuration entry 'RPC/Listener' is deprecated. Please refer to the admin guide for more information.
    What I then did was to just remove the RPC elements and leaving the Listener element straight under there ServerInstance element. This seems to have solved the problem.
    I still have to figure out how to let the Presentation Service know that I have moved the JavaHost to antoher port ...
    Cheers,
    Borkur

  • How to create an XML File for Gantt?

    Hi Everybody.
    I need a Gantt in Web Dynpro ABAP. I need it for the boss to do a Forecast for Vacation. I Hope this is understanding.
    Did Anyone know how can i create a XML File for the Gantt at runtime?
    Thanks
    MSi

    Hi Marcus,
    the following link is to the JNet/JGantt developer doco
    [JNet/JGantt Developer Documentation|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/lw/uuid/f010ec31-9658-2910-3c83-c6e62904eceb]
    included in this is the:
    [Schema for XML|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/lw/webdynpro/jnet_jgantt%20developer%20documentation/schema/xml-spy/jnet-schema.html]
    You can use this to build XML to represent a gantt like chart.
    I did this to build XML to represent employee avaliablity - although we fronted the gantt through WD Java not ABAP - the java applet called is the same (I believe).
    Don't underestimate the work required to tweek your data into a decent layout. It took me days.
    There may be tools/api to help generate the XML - I don't know of them - I'd look forward to seeing any other replies to this thread from people who have used/built any.  An example of a class that generates JNet XML - CL_SPI_UI_JNET - but this does not seem to be a Gantt display.
    Cheers,
    Chris

  • No local help files for Photoshop CS6 extended

    Hi
    I wish to use local help files for Photoshop CS6 but only online support is available. Local files are not listed under the Adobe Help preferences. The option to search only local rather than online help is greyed out. I found and downloaded a PDF with of the help files but don't know where to install it or if this is possible. I have CS 5 Creative Suite and this works fine giving the option of local or online help when accessed.
    Is there a way to install and use local help files in photoshop CS6?
    Thank you.

    Hi and thanks for directing me to that article, it should have done the trick. I am using mac mountain lion 10.8.5.
    The help system has always operated oddly - I have Photoshop cs6 but also the cs5 master suite installed. CS5 works fine but Photoshop cs6 only gives the option for online help and then directs me to the CC site. There is no simple listing for just Photoshop help in the help menu - presumably as it is not seeing it installed
    I tried various configurations in the article, having to set up the folders they suggested. In my case, in a variety of alternative places as I have a boot up volume with the documents folder moved onto a RAID array so the Shared folder is not in the documents folder but in Users on the boot drive. So - confusing - but tried all the likely candidates and folder configurations/locations while following the instructions as closely as possible. Even tried an documents folder alias to redirect the program to the alternative path way.
    At least now I have the PDFs and can look through them outside the adobe interface. The problem with the community site being questions regarding photoshop alone, yield answers for all sort of other issues and programs.
    Thanks for your help though, which should have worked, appreciated.

Maybe you are looking for

  • How to flow data with in same dimension member

    Hi all, I am beginner to Hyperion Planning. I working on an application which has following dimensions: Dim 1 - Account Dimension Sales Revenue Sales Quantity Sales Price Dim 2 - Entity Dimension Mumbai           Mumbai Center A           Mumbai Cent

  • Problem configuring SSO: "Oracle SSO Warning - Unable to process request"

    I'm having difficulty getting a sample application to work with SSO, and I was hoping someone could point me in to the right direction. We've got 2 separate systems, call them ASserver and SSOserver. ASserver is running Oracle 9i AS, SSOserver is the

  • How to Update Adobe Air sdk in Flex sdk ?

    Hi Guys, I am currently using Flex sdk 3.0 to develop Air application and right now there is a need to use new Air 2.0 features in my application. I have downloaded the Air sdk from adobe site but couldn't figure out how to update that sdk in my Flex

  • Oracle Tomcat Connection Problem

    Dear all, We have Oracle as the back end and Java-Jsp-Struts as the front end for our project.For the last few days we are facing a strange problem and although we tried a lot we were not able to find even the cause of the problem We have Oracle serv

  • Product code for acrobat X pro is not recognized.  how to activate

    HELP!!!!  I have the teacher/student edition for acrobat X.  I originally downloaded to desktop.  However, I now use laptop.  Since it has no drive, I downloaded the 30 day trial.  I have the serial number/activation code....but it is not recognized.