File Reference and XML

Hey everyone, i've been working on an mp3 player that runs
off of xml i have it set up so that for each instance of a song it
attaches movie clips onto the stage that serves as buttons. I'm
trying to add a download button so when you click it it will
download the file. I'm trying to do this with the file reference
class but i've been working on it for a week with no luck what so
ever. if anyone has any ideas it would be so greatly appreciated
heres my code and xml.
there may be some unnecessary code in there i was messing
around trying different things.

Sorry if it wasnt clear. But to be completely truthful i'm
not sure what it is thats not working. I'm trying to populate the
file reference by the xml. everything works except when i test the
movie online when i click the download button the save file opens
but it says undefined and clicking save does absolutely nothing.
So my guess is that my problem lies in my file reference to
the button.
this part
var url:String = "_global.download
_root["downloadbut"+i].onRelease = function() {
if(!theFileRef.download(url,_global.songname.mp3)) {
trace("dialog box failed to open.");
} else {
trace("dialog box has open.");
trace(_global.songname
i was hoping to know if anyone knew how to properly populate
the file reference with xml.
Sorry. Hope that is more clear.

Similar Messages

  • A File Reference and its evolving life!

    Hi all,
    I've noticed something that came as a little bit of a surprise to me, but I think I have the explanation, at a hand-wavy higher level anyway.  What I have not established is if this is a 'bug' or a 'feature', and if there are any ways the following issue can be avoided at the NI function/api layer.
    Consider the file open and file close function.  You open a file, you use the reference to the file to write/read data, then at some point you close the reference and the close function spits out the file-path.  Here are a couple of tid-bits you may not be aware of (that are easy to test):
    Q1) After your application opens/creates a file and starts using the file-reference to make file writes, if an external source changes the file-name of that file... guess what will happen on your next write function call?
    A1::  The write successfully updates the newly re-named file with your new data without producing an error or a warning.  (At least this is the case if your program is running on a vxWorks cRIO target and the file-name is changed directly on the cRIO via an FTP browser.)  
    Did this surprise you? It did surprise me!  -My handwavy explanation is that the file-pointer is perhaps managed/maintained by the OS, so when the OS tells the file-system to rename that file, the pointer that LabVIEW holds remains valid and the contents of the memory at the pointer location was updated by the OS.
    Q2) Continuing from the situation setup in Q1, after writing several new chunks of data to a file now currently named something completely different than when the file reference was originally created, you use the close function to close the file-reference.  What do you expect on the file-path output from the close function??  What do you actually get??
    A2::  The close function will 'happily' return the ORIGINAL file-name, not the actual file-name it has been successfully writing to(!).   This has some potentially significant ramifications on how/what you can use that output for.  At this point there is a ton of room for pontifications and more or less 'crazy' schemes for what one could do, but I argue that the bottom line is that your application has at that point completely lost the ability to accurately and securely track your file(s).  Yes, you could list a folder and try and 'figure out' if your file-name was re-named during writing and you can in various ways make more or less good 'guesses' on which file you in reality just had open, but you can never really know for sure.
    So, what do you guys think?? Is the behavior of returning the (incorrect) original file-path when you close the handle a BUG or a FEATURE??  Would it not be possible for LabVIEW to read back the data contained in the (OS?) pointer location and as needed update the file out path data when it closes a reference?  Should we not EXPECT that this would be the behavior?
    Q3)  Again, continuning from the above situation, lets assume we are back at the state in Q1, writing data to a (re)named file.  What happens if the file is deleted by an external process? What happens to the file reference? File function calls using the reference?
    A3::  This one is less surprising.  The file reference remains 'valid' (because it is a valid reference), but depending on the file function you are calling, you will get error such as error 6 (binary write reports this), or error 4 (a TDMS write will report this error), etc.  So as long as you don't rely on file ref-num tests to establish if you are good to go with a file-write or file-action, you should be safe to recover in an appropriate way.. Just don't forget to close the file-reference, even if the file is 'gone', the reference will still remain in memory until you 'close' it (with an error)(?I might be wrong about this last part?)
    I am not sure if the above is possible on e.g. Windows, Windows would probably prevent you from re-naming a file that has an open file-handle to it, but this is definitley observable on at least vxWorks cRIO targets.  (I don't have PharLap ETS or RTLinux devices so I can't test on those targets.. if you want to test its pretty straigth forward to make a simple test app for it.)
    [begin rant-mode related to why I found this out and why this behavior BITES]
    There are situations where the above situation could cause some rather annoying issues that, for somewhat contrived reasons related to cRIO file API performance, CPU and memory resource management, are non-trivial to work around.  for example, using the NI "list folder" to listing folders take a very hefty chunk of time at 100% cpu that you cannot break up, so polling/listing folders after every file update (or even on a less regular interval) is a big challenge, and if you are really unlucky (or didn't know any better) and gave the list command in a folder with 1000's of files (as opposed to less than about 100 files), the list will lock your CPU at 100% for 10's of seconds...  Therefore, you might be tempted to maintain your own look-up table of files so that your application can upload/push/transfer and/or delete files as dictated by your application specific conditions... except that only works until some prankster or well-intention person remotes in and starts changing file-names, because then your carefully maintained list of file-names/paths' suddenly fall appart.
    [\end rant]
    QFang
    CLD LabVIEW 7.1 to 2013

    Hey guys, thanks for turning out your comments on this thread!
    -Deny Access : still able to re-name (and delete) the file via FTP browser (didn't test other file avenues).  I think this is for the same reason that NI vxWorks targets (such as cRIO-9014) do not support the concept of different users with different rights, as such, everyone have access rights to everything at the OS level.  Another issue for me would be that "Deny Access" does not work on TDMS file references, so even if it worked, it would not help me.
    --> I strongly suspect that these things are non-issues or issues that can be properly managed, on the new NI LinuxRT targets since (the ftp is disabled by default) it supports user accounts and user restrictions on files/folders.  The controller could simply create the files in a tree where 'nobody else' has write access.
    Obviously nobody should mess around with files on a (running) cRIO, but customers don't always do what they are supposed to do.   
    As far as the 'resources' or overhead to update the file-refnum with the new information, this would not be needed to be done in a polling fashion, simply, when the file-close function is called, as part of that call it updates its internal register from the pointer data, so this should be a low overhead operation I would think?  If that is a true concern, a boolean input defaulting to not updating or a separate 'advanced close' could be created?
    I've included a zip with the LV2013 project and test VI's (one for tdms one for binary) that I've used. nothing fancy, but in the interest of full disclosure.  The snippet is the 'binary file' test vi, in case you just want a quick peak:
    Steve Bird's findings of (yet) another behavior on Pharlap systems is also very interesting, I think!!
    [EDIT]  JUST TO CLARIFY, on vxWorks, the re-named file keeps being successfully written to, unlike the PharLaps' empty file that Steve Bird found.
    QFang
    CLD LabVIEW 7.1 to 2013
    Attachments:
    cRIO Tests.7z ‏30 KB

  • Comparing an excel file to and xml file and appending data to the xml file

    I have an xml file (mapsource) and an excel file. One of the columns in the excel file matches up with a node in the xml file. I want to be able to loop through both files and add a new node to the xml file where the one of the columns in the excel file matches a node in the xml file.
    I can create a query object out of the excel dosument using the cfspreadsheet tag.
    I'm able to use xmlparse to create a xml document object from the xml file.
    What I would like to do is add col_3 from the excel spreadsheet as a new node when col_2 is equal to gpx.wpt.name.xmltext of the xml object.
    Any help or direction would be very helpful!

    Hi,
    Thank you for your reply. But I have to attach an excel file from a particular path (C:\TEMP\TEST.XLS) and I have to send that excel file to the user inbox.That excel file has multiple sheets with data. Can you please provide me any code is available.
    Thanks and Regards
    venkat.

  • New PC-do I need to transfer Itunes library files (itl and xml files?)

    Hi gang,
    I followed the Itunes tutorial for Windows and moved my Itunes music library to a EHD as it was filling up my laptop. I left the itl and xml library files on the laptop hard drive as instructed.
    However, this laptop is a work PC and if I change jobs I will need to download a new version of Itunes to the new PC. I know how to import the files from the EHD but my question is the following:
    1. Do I need to back up the itl and xml library files to the EHD before I give back the work PC? It seems likely since they contain info about the playlists.
    2. Once I download Itunes on the new PC would I just copy the library files onto the hard drive or can they remain on the EHD?
    It sounds like (from reading some info from Chris CA) that I need to make a copy of the Itunes folder (which includes the itl and xml files) from the laptop hard drive and put it on the EHD inside the EHD Itunes folder. Then with the new PC load a new version of Itunes and hold the shift key when launching. Then I would select the library from the EHD.
    Is that correct?
    Thanks!
    Any help would be appreciated as I cannot find anything on this in Itunes help or the forum.

    Assuming you start with a standard configuration which is:
    The iTunes folder in My music on your c: drive and all your music in the iTunes Music folder in the iTunes folder on the c: drive.
    Starting from there, with iTunes closed, you copy the iTunes folder to an external drive, this also copies the music in the iTunes Muisc folder.
    To move to a new PC, you install iTunes, then you drag your new iTunes folder to the desktop, then you replace it by copying the iTunes folder from the external drive.
    With this set up you can also run entirely on the EHD if you want to. Just start iTunes with the shift key held down, navigate to the iTunes folder on the external drive an choose iTunes Library.itl. This could be useful if you want to dake the EHD to work.
    If you are not starting from the default position I described, some adjustments would have to be made, but it would need an exact descripition of how your folders are set up at the moment.

  • Corrupt iTunes Library file (.itl AND .xml)

    I just got a new mac and decided not to put my music on it. Instead I kept my entire itunes library on an external hard drive. At some point, my hard drive must have disconnected while using iTunes and the library files became corrupt. When I see the files (in finder) on my mac, their size = Zero KB and their "kind of" = Alias. When I check out those same files on my windows computer, it says their actual numerical size (probably before they became corrupt). I've read that you can restore playlists with the .xml file but that is also corrupt.
    Is there any way at all to repair/recover this library? PLEASE HELP I've worked very hard on creating this library.

    I had this problem repeatedly and found that it seems to happen when you exit or restart Windows while iTunes is running. Note that when you close the iTunes window the program actually continues to run for a significant amount of time after its window disappears and even after the "saving iTunes library" message disappears. Basically iTunes starts writing out its library and then gets interrupted during the shutdown, causing the corruption.
    I have solved the problem with the very pathetic solution of bringing up Task Manager, switching to the Processes tab, and waiting until the iTunes.exe process is gone from the list. Then I know it is done writing and it's safe to exit or restart Windows. I have never had corruption when I have done this.
    (This isn't completely consistent with the posts above since one claimed that they restored a known good library after reboot and still had the problem. Perhaps that is something else, or perhaps the known good library had actually been corrupted before it was saved.)
    Note that when the *.itl file is corrupted this way, it is pretty much always the case the the *.xml file is also corrupted. Since the XML file is text, iTunes is able to read what there is of it to rebuild the *.itl, but since the *.xml file is truncated, a lot of songs will be missing. It's a bit puzzling that Apple chose a library format that redundantly writes to two separate files but they write them out simultaneously so if one gets corrupted the other one almost always is corrupted as well.
    The good news is that this problem is beyond simple to solve for Apple. The bad news is that for some inexplicable reason they keep releasing version after version with this same serious bug.

  • Idle url GIF file Image and XML file required.* for 7970

    Can anyone supply me a working xml and gif file for the Cisco 7970 colour phone?
    Has anyone actually got this working?
    Thanks!

    First, get the terms right.
    Idle screen is idle screen. Does not need to have anything to do with CCMCIP directory.
    You can set the phone "Device" to ANY server which is running a HTTP server and is able to send headers. Apache. IIS. You name it.
    What you have to do is to
    - make a PNG file accessible using HTTP. Say, it will be http://someniceserver/ipphonestuff/neatpic.png
    - create an XML file with the description I already provided and change the URL to http://someniceserver/ipphonestuff/neatpic.png
    Voila.

  • File reference and Other ID field in an Invoice

    Hi
    In the invoice, instead of the Purchase order number user would like to populate with Tax Authorities Reference no.
    In german it is called "Aktenzeichen'. Was not able to find in the invoice
    can anyone let me know where can I find this field and one more which is "Other ID"
    thanks

    Hi,
    there's no field like 'Aktenzeichen' - it can be bkpf-xblnr or bseg-xref1 /2/3
    A.

  • ERROR ITMS-9000: "META-INF/container.xml must contain one and only one root file reference."

    Hi all,
    After correcting a table-of-contents error in my .epub file, I am unable to upload it via iTunes Producer. It lists this error message:
    ERROR ITMS-9000: "META-INF/container.xml in 9780615431727.epub must contain one and only one root file reference." at Book (MZItmspBookPackage)
    The file has been verified and only has one root file reference in the container.xml file.
    Has anyone been able to find a solution to this problem?
    Thanks!

    Hello Forum Users…
    For those of you who have run into the upload roadblock, getting an error message similar to this:
    Package Summary:
    1 package(s) were not uploaded because they had problems:
              /Users/slm/Desktop/MUSIC to PICTURE for IBOOK/2012 MTP for iTUNES Bookstore/9780615600918.itmsp - Error Messages:
                        Apple's web service operation was not successful
                        Unable to authenticate the package: 9780615600918.itmsp
                        ERROR ITMS-9000: "OPS/ibooks.ncx(5): 'p50': fragment identifier is not defined in 'OPS/content9.xhtml'" at Book (MZItmspBookPackage)
    Following is a "specific" fix, but the idea of the fix will help you with your specifics too.
    I tried for 17 days to upload a book that looked and worked perfectly in iPAD via Preview.
    After many discussions with Apple, who to their credit stayed with me over 2-3 days, I decided to play a hunch.
    I went into a duplicated copy of the book and on every page, (because the error message was not telling the whole story), looked for what InDesign would call "Overset Text."
    Now... the "flaw" in iBOOK Author (hint) is that it won't advise you of this "overset text" as does InDesign.
    And to compound the matter, the exported ePUB document WORKS in iPAD Preview.
    See Screenshots from InDesign:
      Okay... Couldn't add it but it is a Warning Box that says there is overset text. (Characters which exceed the text box.)
    Nevertheless, I played this hunch, and sure enough found a few boxes with the + in them.  In other words I clicked on EVERY text holder and every text block in the entire document.
    Where I found + signs, I simply deleted some carriage returns from the iBOOK file... (please note… carriage returns and literally empty spaces that caused the overset text) and then erased all previous copies of the Music to Picture Book on my hard drive,  iTUNES and iPAD.
    The result?  A "text-book" upload with no snags!  As my Son would say… "Victory!"
    So, first make sure that you are using only PNGs, Jpegs and Movie files to iBook Specs.  Then... make sure there are no overset text boxes, which you must do manually.
    Enjoy & Godspeed!
    Steve
    Stephen Melillo, Composer
    STORMWORKS®
    209 Spinnaker Run
    Smithfield, VA 23430-5623
    USA
    v/f 757-356-1928
    stormworld.com
    “History is a vast early warning system.” Norman Cousins, editor and author (1915-1990)
    "This will be our reply to violence: to make music more intensely, more beautifully, more devotedly than ever before." Leonard Bernstein
    “If you have a chance to help someone, and you don’t, you are wasting your time on this earth.”  Roberto Clemente

  • Dom can't parse dtd reference in xml file

    Hi all,
    I am trying to parse a xml file (hibernate mapping file *.hbm.xml) using DOM. But itis getting timeout errorwhile parsing due to the external dtd reference in the xml file.
    <!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >I understand that the program is trying to access the document and is not being able to do so. But I don't have any clue to solve this problem. I don't want to remove the reference from the xml file.
    The following method is trying to parse the xml file:
    public void parseXML(String file) {
            factory = DocumentBuilderFactory.newInstance();
            System.out.println(file);
             try {
                 builder = factory.newDocumentBuilder();
                 document = builder.parse(file);
                 Element docEle = document.getDocumentElement();
                 NodeList n1 = docEle.getElementsByTagName("class");
                for(int i = 0; i < n1.getLength(); i++) {
                       Element e1 = (Element) n1.item(i);
                       String nm = e1.getAttribute("name");
                     System.out.println(nm);
            } catch(Exception e) {
                throw new RuntimeException(e);
        }Please help me on this....I am at no end....Please let me know if there is any method so that the parser will overlook this reference and will parse the xml file....or any other sort of solution....
    Thanks in advance...
    Anir

    Can you provide a working sample?  Upload to Onedrive and share it with us.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to open and XML file?

    Does anyone have a way on Mac to open an XML file for viewing. This can be done with WIN Excel and XML toolkit but doesn't exist for Mac Excel in Office 2008. I can open with TextEdit but would like to see the info with headers and cells without all the XML coding. Numbers 09 can't open it at all.

    Numbers uses XML to build the description of the documents but it's not an XML editor.
    A simple search in Google with the intricate key string xml editor AND mac return numerous interesting links.
    Yvan KOENIG (VALLAURIS, France) vendredi 9 octobre 2009 11:33:27

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Have itl and xml files on external hd am running home premium. can  no longer access files, am told this is because they were created with a newer version of itunes. also when i try to download 10.3 it wont, just says invalid drive j and for me to try aga

    i am running vista home premium on desktop and vista basic on laptop. have placed my itunes music with .itl and .xml files onto external drive connected to another desktop running vista and can no longer access music on first two mentioned comps only on the one connected to external drive. always am told that the library cant be read because it was created using a newer version of itunes. have tried to download 10.3 but it always tells me that i have and invalid hard drive j and to try again. any ideas?

    Older versions of iTunes cannot read libraries created with newer versions of iTunes. You need to have the same version of iTunes on all your PCs. Is that the case?
    As far as the problem installing iTunes goes, see this article from b noir on dealing with the problem:
    https://discussions.apple.com/thread/2450004
    If you get to the point where you need the Microsoft Installer cleanup utility, you will need more help as it has been withdrawn by Microsoft. but I am hoping the virtual drive trick will work,

  • XML datasource: dynamic file name and location

    I have an RDF file that uses an XML file as its datasouce. I have supplied it a valid DTD file location and a valid XML file location, via the report wizard. I would like to programatically change the name of the XML file at runtime. What are my options...use an XML customization? I would like to do it in an after parameter form trigger. Is this possible?
    If I have to use an XML customization, is it possible to only customize part of the datasource tag. For example, here is my datasource tag (not from an RDF, but an XML report definition)
    =====================================================
    <dataSource name="QP_1">
    <plugin factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>file:C:/downloads/LVB.dtd</dtd>
    <schema>null</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>false</validate>
    <xml>file:C:/test/175.xml</xml>
    <xsl>null</xsl>
    <select>
    <element name = "typef" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Volume" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Trades" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Vol" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Trd" type = "string"  s_simpleTypeMapping = "string" /> </select>
    <simpleTypesInfo></simpleTypesInfo></xmlpds>]]>
    </plugin>
    <displayInfo x="1.65002" y="1.00000" width="0.69995" height="0.19995"/>
    <group name="G_1">
    <displayInfo x="1.30188" y="1.94995" width="1.39624" height="0.77246"
    />
    <dataItem> ...stuff here... </dataItem>
    </group>
    </dataSource>
    ==================================================
    How can I only customize the <xml>file:C:/test/175.xml</xml>?
    I only want to change the name of 175.xml to something like 176.xml.
    I have to put in a valid XML when I create the report via Reports Builder, but once it is in there I need to change it.

    Hello Danny,
    I am trying to pass a user parameter into the xml location <xml></xml> tags like you did but am having problems. If it's not too much trouble, would you please send me a sample of your source code so I can check my syntax? Below is my code and the error message I am getting. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
    <rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <userParameter name="XML_HTTPS" datatype="character"
    pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    width="255" defaultWidth="0" defaultHeight="0" display="no"/>
    <userParameter name="p_xmlDataURL" datatype="character" width="100"
    precision="10" defaultWidth="0" defaultHeight="0"/>
    <dataSource name="QP_1">
    <plugin
    factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>null</dtd>
    <schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>true</validate>
    <xml>&<[b]p_xmlDataURL></xml>
    <xsl>null</xsl>
    javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
    REP-0069: Internal error
    XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
    REP-4111: Fail to create pluggable data source 'QP_1'
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
    ....

  • When trying to upload a PDF to an interactive site I get the announcement:"The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach." How do I embed this, or in fact any other font ?

    When trying to upload a PDF to an interactive site I get the announcement: "The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach."
    I could not get rid of the Tahoma font in the WORD file.
    How do I embed this, or in fact any other font ?

    Thank you very much !
    Indeed, I was unaware of the enormous number of options that can be selected when converting a WORD file to PDF.
    I went thru the settings and found the right one for embedding the fonts.
    Thanks again !
    Oren

  • WCF Service and Sharepoint Form library : How i can read a access a form libray and query a item from file name and read form xml in WCF service ?

    WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
    Ahsan Ranjha

    Hi,
    In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
    SharePoint 2013 REST API
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    SharePoint 2013 Client Object Model
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
    With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
    http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
    http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for