Error With loading XML file.Help me

Hi!
I am trying to make an mp3 player for my web site but I am
having a little problens and I hope you can help me out.
It is a xml driven mp3player. I have a mp3player.as file and
a songs.xml file. Inside my flash movie I only have #include
"mp3player.as".
Here is my mp3player.as code :
[CODE]
//Setup Sound Object
var s :Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);
//Array of sounds
var sa:Array = new Array();
//Current Playing Song
var cps : Number = -1;
//Load the XML into a xml file
var xml :XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
var nodes : Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
sa.push(nodes
.attributes.url);
playSong();
xml.load("mp3player.xml");
// Play mp3 file
function playSong() :Void
if(cps == sa.length -1)
cps = 0;
s.loadSound(sa[cps],true);
else
s.loadSound(sa[++cps],true);
[/CODE]
And here is my songs.xml file :
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<songs>
<song url="music\setsite.mp3" />
<song url="music\Soul Magic - Soul Magic.mp3" />
<song url="music\Technotronic - NRG Flow.mp3" />
</songs>
[/CODE]
Everytime I test my movie I have this msg :
Error opening URL
'file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/Web%20Sites/site%20MA IO%202007/undefined'
What is wrong with my code?
When I comment this line xml.load("songs.xml") my movie runs
fine.But I cant fix it..
thank you

Others here in the forums know more about the Sound class
than I do... I haven't used it so much. You are using the
'streaming' type of sound with the isStreaming flag set to true
which means that it starts to play before its fully downloaded. So
on a slow connection I presume it could play and stop in the same
way that the timeline on a movie will pause playing if the rest of
it has not downloaded yet.
For a streaming sound, I guess you could get around this by
implementing a partial preload by using s.stop() after issuing the
s.loadSound command. Then do a "regular" preloader style checking
s.getBytesLoaded vs. s.getBytesTotal ... to a percentage (you could
even monitor the speed over 5-10 seconds to determine an
appropriate level of buffering...maybe) and then use s.start()
again.
That's how I'd tackle it, but like I said others here know
more about this, and perhaps they'll have better ideas. There
appear to be some quirks with the Sound class based on comments in
the flash 8 livedocs...

Similar Messages

  • FDF error while loading xml file onto PDF

    Need some help here folks. Im getting a FDF error while loading some value into pdf form. It not happening all the time, 1 out of 60 times with the same xml file onto a new pdf form. Anyone know why this happening.  Is there some technical support i can purchase to get this resolved.

    9.1  and 9.3.4
    Date: Fri, 5 Aug 2011 00:56:19 -0600
    From: [email protected]
    To: [email protected]
    Subject: FDF error while loading xml file onto PDF
    Could you let me know which version of Adobe Reader are you using?
    >

  • Error while loading XML files into scott user

    Hi All,
    I'm new to xml files. I need to load xml files into database through OWB.
    I have xml file in my local machine & am trying to load into table PO of Scott. Scott is registered as repository user.
    Followed same steps as specified in userguide.
    But, when executing the procedure ( in two ways one as just table name, and other as user.table name) it is showing the below error:
    Procedure is:(1)--with username.tablename
    begin
    wb_xml_load(
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>&&SAMPLES_DIR.sample1.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target dateFormat="yyyy.MM.dd">scott.PO</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    end;
    ERROR at line 1:
    ORA-20006: Error occurred while truncating target database object SCOTT.PO.
    Base exception: ORA-01031: insufficient privileges
    ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
    ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
    ORA-06512: at "SCOTT.SAMPLE1", line 3
    ORA-06512: at line 1
    Procedure is:(2) with out username
    begin
    wb_xml_load(
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>&&SAMPLES_DIR.sample1.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target dateFormat="yyyy.MM.dd">PO</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    end;
    ERROR at line 1:
    ORA-20006: Error occurred while truncating target database object PO.
    Base exception: ORA-00942: table or view does not exist
    ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
    ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
    ORA-06512: at line 2
    xml file:
    <ROWSET>
    <ROW>
    <ID>100</ID>
    <ORDER_DATE>2000.12.20</ORDER_DATE>
    <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
    <SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
    <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
    <SHIPTO_STATE>CA</SHIPTO_STATE>
    <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>     
    </ROWSET>
    Note: Everything works fine if I create PO table in OWBSYS user and execute the procedurein OWBSYS user. OWBSYS.PO table will be loaded.
    What privileges are missing, what shouldI do if I want to execute the procedure from scott user and load the table of scott.
    Thanks in advance for the help.
    Regards,
    Joshna

    Hi Joshna,
    Please follow below steps to load xml file to oracle database.
    1.First connect to owb (Design Center) through your repository owner user (ex : REP_OWNER).
    2. Import WB_XML_LOAD procedure . and exit to repository owner.
    3. connect to owb design center through your repository user (ex : REP_USER)
    Create New mapping and drag one Constant Operator and create one attribute, paste / edit following code
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>E:\SOURCE\emp.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target truncateFirst = "FALSE" dateFormat="yyyy.MM.dd">rep_user.emp</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    4. Drag pre mapping operator and select WB_XML_LOAD procedure
    5. Connect Constant Operator attribute to pre mapping operator.
    6. Drag two dummy tables and connect source to target. (ex : drag t1 (table) tab two times and connect.
    7. Validate and deploy the mapping.
    8. grant necessary grant command to rep_owner user to rep_user user.
    (Note : target truncateFirst = "FALSE" by default truncate the table. So you have to give grant privileges
    To rep_user , select ,insert, delete privileges.
    9. Execute the mapping , and check EMP table. (Note : before loading EMP table delete all records ).
    10 . If you want more description please go through the below link
    http://download.oracle.com/docs/html/A95931_01/apf.htm
    Regards
    Venkat

  • Error while loading xml files using JDBC

    Hi,
    I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
    Any suggestions in this matter will be greatly appreciated.
    Thanks,
    Uma

    I also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.

  • Need help with loading XML file

    Hello,
    I have been browsing the web/forums for an example on how to do this for a few days now.  I managed to get this working in Flash Pro quite easily but I think I am missing something when I want to do the same thing in Flex.
    Basically I want to load an XML file and then set the text values of 5 labels equal to the data in the XML file.
    So I a button created in MXML and have set the click event as follows:
         click="dsSetup(event)"
    I have also declared the following:
         public var myRequest:URLRequest = new URLRequest("assets/myFile.xml");   //folder located under src in project
         public var myLoader:URLLoader = new URLLoader();
         public var myXML:XML;
    My function that loads is as follows:
    public function dsSetup(event:MouseEvent):void
         trace ("dsSetup");
         myXML = new XML (myLoader.data);
         h3.text = myXML.source.itemA;
         h4.text = myXML.source.itemB;
         h5.text = myXML.source.itemC;
         h7.text = myXML.source.itemD;
         h8.text = myXML.source.itemE;
         currentState = 'MainMenu';
    myLoader.addEventListener(Event.COMPLETE, dsSetup);   // I think this line is now redundant as I have set it in the MXML
    myLoader.load(myRequest);
    This is the way I did it in Flash and it worked ok but I must be missing something in when it comes to Flex.
    Can someone explain or point me to a good tutorial that shows how to load XML in Flex? 
    The ones I found seem to have about 50 lines of code just to load a file and add in way to much complexity for a beginner.
    Many Thanks

    I would suggest to save the loaded data in a Bindable variable and then to bind the text-properties to that:
    [Bindable]
    var myXML:XML;
    public function dsSetup(event:MouseEvent):void
         myXML = new XML (myLoader.data);
         currentState = 'MainMenu';
    <s:Label text="{myXML.source.itemA}"/>

  • Error while loading XML file to XML_type column

    I am trying to load a huge xml file in table having xml_type column. I am getting an error
    The following error has occurred:
    ORA-20010: Error: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00216: invalid character 140 (0x8C)
    Error at line 2 at location: 10
    Any suggestions why I might be getting this errors?
    Is there any size restriction on the file that we can load with loadfromfile?
    THis is the procedure I have written to load the file--
    CREATE OR REPLACE procedure vsave_xml_file_to_table(
    p_directory in varchar2,
    p_filename in varchar2 )
    AUTHID DEFINER
    as
    v_filelocator bfile;
    v_cloblocator clob;
    v_filelength number;
    v_loc number :=10;
    begin
    dbms_lob.createtemporary(v_cloblocator,true);
    v_filelocator := bfilename(p_directory, p_filename);
         dbms_lob.fileopen(v_filelocator, dbms_lob.file_readonly);
         dbms_lob.loadfromfile(v_cloblocator, v_filelocator,dbms_lob.getlength(v_filelocator));
         v_filelength := dbms_lob.getlength(v_filelocator);
    DBMS_OUTPUT.PUT_LINE('File is loaded and its size is :'|| v_filelength);
         dbms_lob.fileclose(v_filelocator);
         --insert into vxml values(1, XMLType.createXML(v_cloblocator));
         insert into vxml values(1, XMLType(v_cloblocator,null,0,0));
         DBMS_LOB.FREETEMPORARY(v_cloblocator);
    exception
    when others then
    -- close the cursor and file, and reraise.
    if dbms_lob.fileisopen(v_filelocator) = 1 then
    dbms_lob.fileclose(v_filelocator);
    end if;
         rollback;
    raise_application_error (-20010,'Error: '||sqlerrm|| ' at location: '||v_loc);
    end vsave_xml_file_to_table;
    The input file is of size 5K.
    The procedure loads a file of size around 100 bytes with no problem.
    I am on Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    Please help
    Thanks!

    As you said, i have changed the Code, But still the same error,
    CREATE OR REPLACE FUNCTION fn_Ins_CLOBDOCUMENT(FILENAME IN VARCHAR2,
                                               CHARSET  IN VARCHAR2 DEFAULT NULL)
      RETURN CLOB DETERMINISTIC IS
      FILE        BFILE := BFILENAME('FXLMBAH', FILENAME);
      CHARCONTENT CLOB := ' ';
      TARGETFILE  BFILE;
      LANG_CTX    NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
      CHARSET_ID  NUMBER := 0;
      SRC_OFFSET  NUMBER := 1;
      DST_OFFSET  NUMBER := 1;
      WARNING     NUMBER;
    BEGIN
      IF CHARSET IS NOT NULL THEN
        CHARSET_ID := NLS_CHARSET_ID(CHARSET);
      END IF;
      TARGETFILE := FILE;
      DBMS_LOB.FILEOPEN(TARGETFILE, DBMS_LOB.FILE_READONLY);
      DBMS_LOB.LOADCLOBFROMFILE(CHARCONTENT,
                                TARGETFILE,
                                DBMS_LOB.GETLENGTH(TARGETFILE),
                                SRC_OFFSET,
                                DST_OFFSET,
                                CHARSET_ID,
                                LANG_CTX,
                                WARNING);
      DBMS_LOB.FILECLOSE(TARGETFILE);
      RETURN CHARCONTENT;
    END;
    INSERT INTO XMLTABLE
    VALUES(XMLTYPE(fn_Ins_CLOBDOCUMENT('purchaseorder.xml')))
    ORA-22288: file or LOB operation FILEOPEN failed
    No such file or directory
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "LCC.FN_INS_CLOBDOCUMENT", line 17
    ORA-06512: at line 1raja
    Edited by: KrChowdary on Feb 18, 2009 3:36 PM

  • Error when loading XML file

    When using Load XML Data utility I am getting an error:
    ORA-00942: table or view does not exist
    Error loading XML.
    Loading as CSV text works except some records with new line characters.
    Also, when xml file is really small – “Load XML” works too. The actual file is ~ 12 MB.
    How to resolve this issue?
    Application Express 3.2.0.00.27
    Oracle 10.2.0.1.0
    Your help will be appreciated,
    Anatoly

    Hi Anatoly,
    I suspect this is a problem with the underlying package DBMS_XMLGEN and not directly in APEX.
    Can you reproduce this issue on apex.oracle.com?
    Joel

  • Problem with loading XML file from directory.

    Hello everyone.
    *1)* I have directory defined by DBA. I have read, write privileges. I can read file from this directory using UTL_FILE, I can create file in this directory using UTL_FILE. I tried many times and it does not seem to be any problems.
    *2)* I have very simple XML table (with just one column of xmltype). I can insert into this column using:
    insert into temp_xml values (
    Xmltype ('<something></something>')
    *3)* When executing
    insert into temp_xml values (
    Xmltype (
    bfilename('XML_LOCATION', 'sample.xml'),
    nls_charset_id('AL16UTF8')
    I'm receiving an error:
    Error report:
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 1
    22288. 00000 - "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
    information. Also, verify that the file or LOB exists and that
    the necessary privileges are set for the specified operation. If
    the error still persists, report the error to the DBA.
    *4)* Previously I was receiving more descriptive errors like permission denied, file not exists etc. This time there is no clear description apart from "file or LOB operation %s failed\n%s". I'm sure I can access this file in this directory (I used UTL_FILE to dbms_output the content).
    Any help would be greatly appreciated.
    Regards
    Marcin Jankowski

    Hi Marcin,
    Welcome to the forums.
    One very important thing with Oracle XML : please always give your database version, all four digits (e.g. 10.2.0.4).
    Does the directory resides on the same machine as the database? Which OS?
    Does any of the following work ?
    DECLARE
       v_lob   CLOB;
       v_file  BFILE;
    BEGIN
       v_file := BFILENAME('XML_LOCATION','sample.xml');
       DBMS_LOB.createtemporary(v_lob, true);
       DBMS_LOB.fileopen(v_file);
       DBMS_LOB.loadfromfile(v_lob, v_file, DBMS_LOB.getlength(v_file));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
       DBMS_LOB.fileclose(v_file);
       DBMS_LOB.freetemporary(v_lob);
    END;
    DECLARE
       v_lob   CLOB;
    BEGIN
       v_lob := DBMS_XSLPROCESSOR.read2clob('XML_LOCATION', 'sample.xml', nls_charset_id('AL16UTF8'));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
    END;
    /

  • Access Denied error with basic XML file operations

    Hi,
    I'm trying to set up a basic read, write and delete code for XML files which I can build upon in the future. The three methods are bound to three buttons on the page and all three calls are awaited. Here's my code:
    Write:
    XElement uservarnodes = new XElement("uservars",
    new XElement("uservar1", "1"),
    new XElement("uservar2", "2"),
    new XElement("uservar3", "3"),
    new XElement("uservar4", "4"),
    new XElement("uservar5", "5"),
    new XElement("uservar6", "6"),
    new XElement("uservar7", "7"),
    new XElement("uservar8", "8"));
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync("uservarfile.xml", CreationCollisionOption.ReplaceExisting);
    var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite);
    using (var outputStream = stream.GetOutputStreamAt(0))
    DataWriter mydataWriter = new DataWriter(outputStream);
    mydataWriter.WriteString(uservarnodes.ToString());
    await mydataWriter.StoreAsync();
    await outputStream.FlushAsync();
    Read (outputs the data to a textblock):
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.GetFileAsync("uservarfile.xml");
    string readtext = await Windows.Storage.FileIO.ReadTextAsync(file);
    XElement uservarnodes = XElement.Parse(readtext);
    txtTarget.Text = uservarnodes.ToString();
    Delete:
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.GetFileAsync("uservarfile.xml");
    await file.DeleteAsync(StorageDeleteOption.PermanentDelete);
    When I tap each of the buttons once it all seems to work. But when I tap any of the buttons again within the same debug session I get an Access denied exception (E_ACCESSDENIED). Other people with this error had to await when calling their method, but I'm
    already doing that: private async void btnWrite_Click(object sender, RoutedEventArgs e) { await WriteToXMLFile(); }, etc.
    And the intervals between my taps isn't that short that you'd expect that the previously called method still had not finished completing. I don't understand why I'm getting the access denied error.
    Related to my question: I have added XML to the File Type Associations, File Open Picker and File Save Picker in the appxmanifest, but somewhere I read that you do not need to do this if you're working with local app data only. Is this true?

    var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite);
    I think because of your file stream hasn't been closed.
    by the way, it can be easier  by using System.IO.OpenStreamForWriteAsync extension method
    async public static Task<bool> SaveTextFileAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    (need using System.IO namespace)
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Error while loading xml file

    I am getting error while loading the XML file. I have attached the jpg file which shows error details.....pls let em know the solution....
    thanks

    What is the error message?  Where is the jpeg?

  • How do I resolve the error cannot load XML! Help is not available?

    I am using InDesign CC 2014 in Windows 8.1.  In using the Object Model Viewer to load the Object Model for my version of InDesign I get this error.  What is the help that is being referred to?

    Please try the mentioned steps:
    1. Navigate to Applications/Utilities/Adobe Installer and look for CC desktop, if present run the uninstaller to uninstall it.
    2. Navigate to Applications/Utilities and look for Adobe Application Manager folder and Creative cloud folder. If present move to trash and empty it.
    3. Navigate to Library/Application Support/Adobe/OOBE and rename to OOBE.old
    4. Download CC desktop from: https://creative.adobe.com/products/creative-cloud and try to install again.
    Other references are:
    Troubleshoot CCM Applet installation and download
    Re: Adobe application manager fails to update/install
    Regards
    Rajshree

  • Load XML file from addon domain without cross-domain Policy file

    Hello.
    Assuming that there are two addon domains on the same server: /public_html/domain1.com       and      /public_html/domain2.com
    I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
    So the idea is to use php file in order to load XML and read it back to flash.
    I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
    Here are the AS3/PHP scripts:
    AS3 (.swf in www.domain1.com):
    // location of the xml that you would like to load, full http address
    var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
    // location of the php xml grabber file, in relation to the .swf
    var phpLoc:String = "loadXML.php";
    var xml:XML;
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
    loader.addEventListener(Event.COMPLETE, onXMLLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
    loader.load(request);
    function onIOErrorHandler(e:IOErrorEvent):void {
        trace("There was an error with the xml file "+e);
    function onXMLLoaded(e:Event):void {
        trace("the rss feed has been loaded");
        xml = new XML(loader.data);
        // set to string, since it is passed back from php as an object
        xml = XML(xml.toString());
        xml_txt.text = xml;
    PHP (loadXML.php in www.domain1.com):
    <?php
    header("Content-type: text/xml");
    $location = "";
    if(isset($_GET["location"])) {
        $location = $_GET["location"];
        $location = urldecode($location);
    $xml_string = getData($location);
    // pass the url encoded vars back to Flash
    echo $xml_string;
    //cURLs a URL and returns it
    function getData($query) {
        // create curl resource
        $ch = curl_init();
        // cURL url
        curl_setopt($ch, CURLOPT_URL, $query);
        //Set some necessary params for using CURL
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       //Execute the curl function, and decode the returned JSON data
        $result = curl_exec($ch);
        return $result;
        // close curl resource to free up system resources
        curl_close($ch);
    ?>

    I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
    So I wrote my own script - this time I used file path instead of http address of the XML file.  It works fine in my case.
    Here it is:
    XML file on domain2.com:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
        <image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
        <image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
    </gallery>
    swf  on domain1.com:
    var imagesXML:XML;
    var variables:URLVariables = new URLVariables();
    var varURL:URLRequest = new URLRequest("MyPHPfile.php");
    varURL.method = URLRequestMethod.POST;
    varURL.data = variables;
    var MyLoader:URLLoader = new URLLoader;
    MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
    MyLoader.addEventListener(Event.COMPLETE, XMLDone);
    MyLoader.load(varURL);
    function XMLDone(event:Event):void {
        var imported_XML:Object = event.target.data.imported_XML;
        imagesXML = new XML(imported_XML);
       MyTextfield_1.text = imagesXML;
       MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath");  // sample reference to attribute "thumbPath" of the first element
    php file on domain1.com:
    <?php
    $xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml');  // directory to XML file on the same server
    $imported_XML = $xml_file->asXML();
    print "imported_XML=" . $imported_XML;
    ?>
    Regards
    PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed.

  • Load XML files

    Hi Guys,
    do you have any experience with loading XML files into BI 7.0?
    I've got XML files with transaction data (and XSD files - "translation files for that XML") located in the  Enterprise Portal Respository.
    Which would be the best way to load that information into BI?
    Transfer with UD Connect using BI XMLA Connector or is it only for OLAP providers such as MS Analyses Services?
    Any help will be appreciate
    cheers
    Krzysztof

    Hi,
    Check this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0

  • Error: Failed to load xml file

    Hi,
    I have a multiple project output using RobohHelp HTML 9. In the online help system,  when I search for certain terms, I encounter this message "Error: Failed to load xml file"
    could anyone let me know if you have encountered the same and how you dealt with this?

    Hi Jeff..i resolved the issue..
    Given that i use merged webhelp, I checked the output of multiple projects. One of the online outputs from one of the projects was having this problem. So I cleared the Webhelp output folder and regenerated this project. This was the fix.
    Now I encounter one more problem. When I search for information, the search bar shows 100% complete but the results would'nt show. Can you let me know if you have come across such a problem?

  • Webstart/ loading xml file resource...help !

    Hi all;
    i wrote a java application and run it successfully using Eclipse platform.
    when i tried to deploy it with webstart it keeps giving me a NullPointerException.
    i think the problem is with an xml file that didn't got correctly loaded.
    i packaged my classes in a jar myclasses.jar : this jar contains subdirectory resources/configure.xml
    here is the code i'm using to load file :
    public static URL xmlFile=DomReader.class.getResource("resources/configure.xml");
    public static Document createDOMObject() {
              Document document = null;
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory
                             .newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(xmlFile.getPath());
              } catch (SAXException sxe) {
                   // Error generated by this application
                   // (or a parser-initialization error)
                   Exception x = sxe;
                   if (sxe.getException() != null)
                        x = sxe.getException();
                   x.printStackTrace();
              } catch (ParserConfigurationException pce) {
                   // Parser with specified options can't be built
                   pce.printStackTrace();
              } catch (IOException ioe) {
                   // I/O error
                   ioe.printStackTrace();
              return document;
         }it seems this method returns a null document object for it can not load the xml file rightly !
    can any one tell me how to solve this problem ?
    please help this is Urgent !
    thanks.

    Hi all;
    i wrote a java application and run it successfully using Eclipse platform.
    when i tried to deploy it with webstart it keeps giving me a NullPointerException.
    i think the problem is with an xml file that didn't got correctly loaded.
    i packaged my classes in a jar myclasses.jar : this jar contains subdirectory resources/configure.xml
    here is the code i'm using to load file :
    public static URL xmlFile=DomReader.class.getResource("resources/configure.xml");
    public static Document createDOMObject() {
              Document document = null;
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory
                             .newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(xmlFile.getPath());
              } catch (SAXException sxe) {
                   // Error generated by this application
                   // (or a parser-initialization error)
                   Exception x = sxe;
                   if (sxe.getException() != null)
                        x = sxe.getException();
                   x.printStackTrace();
              } catch (ParserConfigurationException pce) {
                   // Parser with specified options can't be built
                   pce.printStackTrace();
              } catch (IOException ioe) {
                   // I/O error
                   ioe.printStackTrace();
              return document;
         }it seems this method returns a null document object for it can not load the xml file rightly !
    can any one tell me how to solve this problem ?
    please help this is Urgent !
    thanks.

Maybe you are looking for

  • Crash fcpx on macbook pro

    Hi, I'm using the latest version of FCPX 10.1.1 on a MacBook Pro version 15inch - mi2010 And ramdomly is crashing on an operation without real explanation. thx for your answer. PS : i copy-paste the crash report log Date/Time:  2014-03-14 15:51:03 +0

  • No bootable device installing w7 w/ Bootcamp and external DVD reader

    Hello¡ Good night! Lets see if anyone can help me find a solution since google, youtube and forums cant. (Wanted to call the apple support, but since my mac is from 2010, they want me to pay 19 S) I have a MBP 17 inch from mid 2010, with MC OS X 10.6

  • Question abt Warning: ControllerContext.markScopeDirty() should be called..

    Hello, I am using latest version of JDev11g. Inside my model project I have some java classes along with app module and view objects. I am trying to set the where clause and order by clause programatically viewObject.setOrderByClause() and viewObject

  • DC Board Repair under Warranty

    My computer's warranty will last another month or so (end of 3 years) and it's one of the later models of the MacBook (not Intel). In the last few months, I've noticed that the computer is running SUPER hot (so much so that I've been burned). Now, my

  • Multiple Strings as Commandline argument

    Hello people, Everything is working properly, but I have a problem starting a method via command line argument. int main(int argc, char** argv)      char  *p2Jar =     "-Djava.class.path=C:\\path\\myJAR.jar";      char  *p2Lib =     "";      JNI_IF J