Problem loading external XML

Hi, I"m having a problem with an Applet.
I wrote a program that acceses an external XML file located on my webspace, but when I converted this program to run in a webbrowser I get console errors when trying to acces the file.
Here's my code:
package javaapplication;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.util.ArrayList;
import javaapplication7.parsing.XmlParser;
public class Main extends Applet {  
    protected Thread gameThread = null;
    private Canvas display_parent = null;
    private boolean running = false;
    private XmlParser parser = new XmlParser();
    public void destroy() {
        remove(display_parent);
        super.destroy();
        System.out.println("Clear Up");
    public void start() {
        gameThread = new Thread() {
            public void run() {
                running = true;
                System.out.println("Entering Gameloop");
                gameLoop();
        gameThread.setDaemon(true);
        gameThread.start();
    public void stop() {
    public void init() {
        setLayout(new BorderLayout());
        try {
            display_parent = new Canvas() {
                public final void removeNotify() {
                    super.removeNotify();
            display_parent.setIgnoreRepaint(true);
            display_parent.setSize(getWidth(),getHeight());
            add(display_parent);
            display_parent.setFocusable(true);
            display_parent.requestFocus();
            setVisible(true);
        catch(Exception e) {
            System.err.println(e);
            throw new RuntimeException("Unable to create display");
    private void gameLoop() {
        ArrayList <String> temp = null;
        while (running) {    
            temp = parser.SearchXml("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml", "BulletList",2);
            for (int i=0;i<temp.size();++i) {
                System.out.println(temp.get(i));
}my html file :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>AppletLoader</title>
  </head>
  <body>
  <applet code="javaaplication.Main" archive="JavaApplication7.jar" codebase="." width="800px" height="600px">
    <!-- The following tags are mandatory -->
    <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
    <param name="al_title" value="appletloadertest">
    <!-- Main Applet Class -->
    <param name="al_main" value="javaapplication.Main">
    <!-- logo to paint while loading, will be centered -->
    <param name="al_logo" value="appletlogo.png">
    <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
    <param name="al_progressbar" value="appletprogress.gif">
    <!-- List of Jars to add to classpath -->
    <param name="al_jars" value="JavaApplication7.jar">
    <!-- signed windows natives jar in a jar -->
    <param name="al_windows" value="lib/windows_natives.jar.lzma">
    <!-- signed linux natives jar in a jar -->
    <param name="al_linux" value="lib/linux_natives.jar.lzma">
    <!-- signed mac osx natives jar in a jar -->
    <param name="al_mac" value="lib/macosx_natives.jar.lzma">
    <!-- signed solaris natives jar in a jar -->
    <param name="al_solaris" value="lib/solaris_natives.jar.lzma">
    <!-- Tags under here are optional -->
    <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
    <!-- <param name="al_version" value="0.1"> -->
    <!-- background color to paint with, defaults to white -->
    <!-- <param name="al_bgcolor" value="000000"> -->
    <!-- foreground color to paint with, defaults to black -->
    <!-- <param name="al_fgcolor" value="ffffff"> -->
    <!-- error color to paint with, defaults to red -->
    <!-- <param name="al_errorcolor" value="ff0000"> -->
    <!-- whether to run in debug mode -->
    <!-- <param name="al_debug" value="true"> -->
    <!-- whether to prepend host to cache path - defaults to true -->
    <param name="al_prepend_host" value="false">
    <!-- main applet specific params -->
    <param name="test" value="test">
  </applet>
  <p>
    if <code>al_debug</code> is true the applet will load and extract resources with a delay, to be able to see the loader process.
  </p>
  </body>
</html>console errors :
network: Connecting http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml with proxy=DIRECT
network: Connecting http://users.telenet.be/crossdomain.xml with proxy=DIRECT
network: Connecting http://users.telenet.be:80/ with proxy=DIRECT
network: Connecting http://users.telenet.be/crossdomain.xml with cookie "__utmz=226366239.1223468593.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); st8id_wlf_%2Etelenet%2Ebe_%2F=TE5HVExNX0ZMQVNI?81c37b0684bbf41f4c42c63db814f879; __utma=226366239.605535372.1223468593.1223556298.1224764225.3"
network: Connecting http://www.zita.be/users_error/ with proxy=DIRECT
network: Connecting http://www.zita.be:80/ with proxy=DIRECT
java.security.PrivilegedActionException: java.io.FileNotFoundException: http://www.zita.be/users_error/
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
     at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
     at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
     at sun.net.www.http.HttpClient.openServer(Unknown Source)
     at sun.net.www.http.HttpClient.<init>(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at java.net.URL.openStream(Unknown Source)
     at facebookgame.parsing.XmlParser.SearchXml(XmlParser.java:38)
     at facebookgame.entity.ShotEntity.<init>(ShotEntity.java:62)
     at facebookgame.InGameState.Enter(InGameState.java:75)
     at facebookgame.FacebookApp.changeToState(FacebookApp.java:258)
     at facebookgame.MenuState.CheckPlayerInput(MenuState.java:106)
     at facebookgame.MenuState.StateCycle(MenuState.java:139)
     at facebookgame.FacebookApp.gameLoop(FacebookApp.java:212)
     at facebookgame.FacebookApp.access$200(FacebookApp.java:17)
     at facebookgame.FacebookApp$1.run(FacebookApp.java:60)
Caused by: java.io.FileNotFoundException: http://www.zita.be/users_error/
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at com.sun.deploy.net.CrossDomainXML$2.run(Unknown Source)
     ... 22 moreHopefully some1 can help me :).
Edited by: Veko on Dec 7, 2008 2:51 PM

But why is it possible then to succesfully acces the .xml file with a non-web applet
This code reads the file perfectly of my webspace...
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
public class XMLHandler {
     public static void SearchXml(){
        try{
            InputStream filesource = new URL("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml").openStream();
            System.out.println("found input source");
            byte[] readIn = new byte[8];
            int bytesRead = filesource.read(readIn);
            OutputStream stream = System.out;
            while(bytesRead != -1){
                 stream.write(readIn);
                 bytesRead = filesource.read(readIn);
        } catch (Exception e){
            e.printStackTrace();
     public static void main(String[] args){
          SearchXml();
}it returns the contents of the xml perfectly
<?xml version="1.0"?>
<bulletList>
<bullet type="1">
     <speed>1.0f</speed>
     <size>O.65f</size>
     <damage>1</damage>
     <texture>"res/shot.png"</texture>
     <sound>"blah.ogg"</sound>
</bullet>
<bullet type="2">
     <speed>1.5f</speed>
     <size>O.65f</size>
     <damage>1</damage>
     <texture>"res/shot.png"</texture>
     <sound>"blah.ogg"</sound>
</bullet>
</bulletList>Does a applet in a browser have somekind of weird restriction that I haven't heard of yet ?
Edited by: Veko on Dec 8, 2008 2:28 AM
Edited by: Veko on Dec 8, 2008 2:29 AM
Edited by: Veko on Dec 8, 2008 2:29 AM

Similar Messages

  • How to load external XML into DataGrid ??

    Hello ,everybody , I can't load external Xml like this format
    <list>
    <month name="Jan-04" revenue="400263" average="80052">
    <region name="APAC" revenue="46130"/>
    <region name="Europe" revenue="106976"/>
    <region name="Japan" revenue="79554"/>
    <region name="Latin America" revenue="39252"/>
    <region name="North America" revenue="128351"/>
    </month>
    <month name="Feb-04" revenue="379145" average="75829">
    <region name="APAC" revenue="70324"/>
    <region name="Europe" revenue="88912"/>
    <region name="Japan" revenue="69677"/>
    <region name="Latin America" revenue="59428"/>
    <region name="North America" revenue="90804"/>
    </month>
    </list>
    I only can load with node format like this :
    <order>
    <item>
    <menuName>burger</menuName>
    <price>3.95</price>
    </item>
    <item>
    <menuName>fries</menuName>
    <price>1.45</price>
    </item>
    </order>
    Please tell me what am I going to do?
    Thanks!

    I'm stuck on this as well. I've read through the above
    samples and postings and am now feeling really retarded. I thought
    throwing the contents of a simple XML doc into a DataGrid would be
    easy, but I've been trying all morning and no love. Any help is
    appreciated.
    Here the XML --> guides.xml
    <?xml version="1.0" encoding="UTF-8">
    <GuideList title="Current Guides">
    <GuideItem>
    <GuideName>11699240</GuideName>
    <DisplayName>Supercharged Branding
    Program</DisplayName>
    <LinkText>View Downloadable Guide</LinkText>
    <Franchise>Film/TV</Franchise>
    <Property>Cars</Property>
    </GuideItem>
    <GuideItem>
    <GuideName>11721503</GuideName>
    <DisplayName> Packaging & Retail
    Signage</DisplayName>
    <LinkText>View Downloadable Guide</LinkText>
    <Franchise>Film/TV</Franchise>
    <Property>None</Property>
    </GuideItem>
    etc....
    Here's the flex --> GuideListDisplay.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" initialize="guidelist.send()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable] private var myData:ArrayCollection;
    private function resultHandler(event:ResultEvent):void {
    myData = event.result.GuideList.GuideItem;
    ]]>
    </mx:Script>
    <mx:HTTPService id="guidelist" url="assets/guides.xml"
    result="resultHandler(event)"/>
    <mx:Panel title="{myData.GuideList.title}"> // 1119
    <mx:DataGrid x="29" y="36" id="Guides"
    dataProvider="{myData.lastresult.GuideList.GuideItem}"> // 1119
    <mx:columns>
    <mx:DataGridColumn headerText="Guide Number"
    dataField="GuideName"/>
    <mx:DataGridColumn headerText="Guide Name"
    dataField="DisplayName"/>
    <mx:DataGridColumn headerText="DisplayText"
    dataField="LinkText"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    </mx:Application>
    The lines throw with // 1119 throw a problem notice - 1119:
    Access of possibly undefined property GuideList through a reference
    with static type mx.collections:ArrayCollection.
    GuideListDisplay.mxml Lessons line 17 March 21, 2007 12:53:45 PM
    215
    Please help before hari kari looks like a good option.
    Thanks!

  • Load external XML into DataGrid with AS3

    I've really looked hard to find an example/tutorial for
    loading external XML data into a DataGrid component using AS3. The
    code I'm using at the moment has the XML data in the AS code. If
    anyone can point me to a good resource(s) for code or a tutorial
    I'd be very appreciative. It needs to be AS3. ~steve
    Here is the code that is working for internal XML data:
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    stop();
    var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider = new DataProvider(emailXML);
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;
    // end code

    Here is how you build it for external XML. in my example am
    using the same xml format that you are using . The xml file called
    "dataGrid.xml"
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    import fl.containers.UILoader;
    import fl.data.DataProvider;
    import fl.events.*;
    import flash.xml.*;
    var emailXML:XML;
    var myList:XMLList;
    function parseXML():void
    var url:String = "dataGrid.xml";
    var urlRequest:URLRequest = new URLRequest(url);
    var loader:URLLoader = new URLLoader();
    loader.addEventListener("complete" , loadXML);
    loader.load(urlRequest);
    /*var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>
    parseXML();
    function loadXML(evt:Event):void
    emailXML = new XML(evt.target.data);
    myDP = new DataProvider(emailXML);
    emailData.dataProvider = myDP;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider;
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;

  • How do you load external XML into a dataProvider?

    I have been looking through the docs and have found a couple
    of entries discussing how to load external XML. Unfortunately, that
    is where the example stops and there is no example of doing
    anything useful with that data.
    I have managed thus far to get my XML file loaded into
    actionscript/flex:
    function getExternalXML():void {
    request = new URLRequest('source.xml');
    loader = new URLLoader();
    loader.load(request);
    loader.addEventListener("complete", loadXML);
    function loadXML(e:Event):void {
    combo.dataProvider = loader.data;
    obviously, the above doesn't work at all. I don't know how to
    convert the loader.data into a format that the
    ComboBox.dataProvider understands. I can't believe I have to write
    a function to parse this XML. Surely there must be a way to simply
    convert the XML to an array or something???

    That link uses the flex beta 3 docs. You may want to use the
    current livedocs.
    Here
    is a direct link to the section I was talking about.
    Scroll down about halfway to the part that says "However,
    using a raw data object..."
    If you want the PDFs (easier to read IMO) you can get them
    here.
    Here
    is a direct link to the Developer's Guide:

  • Performance problems loading an XML file into oracle database

    Hello ODI Guru's,
    I am trying to load and XML file into the database after doing simple business validations. But the interface takes hours to complete.
    1. The XML files are large in size >200 Mb. We have an XSD file for the schema definition instead of a DTD.
    2. We used the external database feature for loading these files in database.
    The following configuration was used in the XML Data Server:
    jdbc:snps:xml?f=D:\CustomerMasterData1\CustomerMasterInitialLoad1.xml&d=D:\CustomerMasterData1\CustomerMasterInitialLoad1.xsd&re=initialLoad&s=CM&db_props=oracle&ro=true
    3. Now we reverse engineer the XML files and created models using ODI Designer
    4. Similar thing was done for the target i.e. an Oracle database table as well.
    5. Next we created a simple interface with one-to-one mapping from the XSD schema to the Oracle database table and executed the interface. This execution takes more than one hour to complete.
    6. We are running ODI client on Windows XP Professional SP2.
    7. The Oracle database server(Oracle 10g 10.2.0.3) for the target schema as well as the ODI master and work repositories are on the same machine.
    8. I tried changing the following properties but it is not making much visible difference:
    use_prepared_statements=Y
    use_batch_update=Y
    batch_update_size=510
    commit_periodically=Y
    num_inserts_before_commit=30000
    I have another problem that when I set batch_update_size to value greater that 510 I get the following error:
    java.sql.SQLException: class org.xml.sax.SAXException
    class java.lang.ArrayIndexOutOfBoundsException said -32413
    at com.sunopsis.jdbc.driver.xml.v.a(v.java)
    The main concern is why should the interface taking so long to execute.
    Please send suggestions to resolve the problem.
    Thanks in advance,
    Best Regards,
    Nikunj

    Approximately how many rows are you trying to insert?
    One of the techniques which I found improved performance for this scenario was to extract from the xml to a flat file, then to use SQL*LOADER or external tables to load the data into Oracle.

  • Media files prevent Flash from fully loading external XML file

    Im trying to debug a flash widget we created, and it loads
    fine on the 20 odd computers we tested on EXCEPT for one computer
    where, the application doesn't load an external XML file that calls
    for 3 small mp3 files and a FLV file to load as well.
    In a debugger, we noticed that when it tried to load these
    mp3 files it was getting a Forbidden access message. The FLV just
    prevents the FLV player from showing up at all (not even the skin).
    Can anyone figure out why, that it would work over all the
    other computers and NOT the one? On that person's computer, we
    tried it in IE, Firefox, even Chrome and the application doesn't
    load. We even cleared the cache, did a hard refresh and still
    nothing.
    However, the other computers work just fine.
    ALL the computers have the latest Flash software installed.
    What could cause this problem?

    Actually what worked was removing 'xmldoc' from the php script. So $data =$GLOBALS["HTTP_RAW_POST_DATA"]; instead of $data = xmldoc($GLOBALS["HTTP_RAW_POST_DATA"]);
    Couldn't find anything about 'xmldoc'. Is it used for anything in php?
    Anyway, the loading error went away, but then I got into problems with getting the return echoed values back. The textfield stayed empty even when saving the data.txt file worked.
    I then placed the <stuff> tags between <root> tags and then flash got the sentences between the <stuff> tags back. Why does Flash need the returned xml output to be between <root> tags for it to see the content between the <stuff> tags? So why do I need to use echo("<root><stuff>Server unable to create file.</stuff></root>"); instead of cho("<stuff>Server unable to create file.</stuff>");?

  • Load external xml

    I have an application which uses an external xml file (on
    another site). I get the data from the xml file. When I run my
    application local, it works perfectly.
    Although, when I run my application on my server, the xml
    just won't load. Can anyone help me on this matter?
    Greets

    "Francisc Romano" <[email protected]> wrote
    in message
    news:gh40j6$cj6$[email protected]..
    > Aha, ok!
    > Your problem is the fact that you address the XML
    remotely...
    > It is a security problem:
    > If the XML is on your server reference it relatively to
    the swf file. e.g.
    > "assets/burners.xml" or if in the same folder
    "burners.xml".
    >
    > If however it is on a different server, you need to
    workout the security
    > issues.
    It's actually a sandbox issue. But close...

  • Loading external XML data into XMLObject

    hey all,
    i've been working on a basic fl2 app that generates a list of
    posts from an external XML file located on my server
    (www.omedia.mobi/forum.xml) The swf file is also located there in
    the same directory .(crime.swf).
    The app runs fine in the emulator, both when i tried to load
    the data locally on my mac, and when i load it from the server. But
    when i put the swf file on my N70, it fails to load the data.
    I'm banging my head against a wall trying to get this sorted.
    has anyone had any similar experiences?
    any help would be apprieciated...
    many thanks
    Matt

    Matt–
    Dumb question, are you 100% sure that your phone is making
    any connection to the internet? Does your phone read a name/value
    variable from an external file?
    I just build a file to test this (It won't work
    online—it will only work on a phone.):
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.swf
    The FLA is also up:
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.fla
    Also, you can check out:
    http://www.adobe.com/devnet/devices/articles/flashlite11_rss.html
    quote:
    //Some of the code from the FLA:
    canLoad = _capLoadData;
    if (canLoad == 1) {
    urlPath = "
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.txt";
    loadVariables(urlPath, _root);
    } else {
    connection = "client does not support loading dynamic data";
    // where "connection" is the variable name of the text field
    If the connection is present, then I think I know what is
    wrong. Let me know.

  • Problem loading external images

    I'm having a problem. I am creating a portfolio section for a
    class project.
    I have it so that when I click on my portfolio the images
    load externally. The problem comes in where when you click onto
    another section the last portfolio piece stays on screen and
    doesn't go away. Anyone have any ideas how to fix this? Code is
    attached.

    Thank you for the response.
    But I must admit that I don't understand what you are saying.
    I'm a newbie with actionscript 3 and it is still a bit confusing.
    Could you break it down so that it is easier for me to understand
    your response.
    Thanks.

  • Problem Loading Large XML Doc

    I'm running 10.2.0.3 on a Linux box and I'm having problems loading a large XML document (about 100 MB). In the past, I would simply load the XML file into a XMLType column like this:
    INSERT INTO foo VALUES (XMLType(bfilename('XMLDIR', 'test.xml'). nls_charset_id('AL32UTF8')));
    But when I try this with a large file, it runs for 10 minutes and then returns an ORA-03113. I'm assuming the file is just too large for this technique. I spoke to Mark Drake when I was at OpenWorld and he suggested I use Oracle XML DB, so I created and registered a schema and tried using sqlldr to load the doc, but it ran for 2 1/2 hours before returning:
    Parse Error on row 1 in table FOO
    OCI-31038: Invalid integer value: "129"
    I tried simplifying both the XML file and schema to just the following:
    <schedules>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="19672"/>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="15387"/>
    <s s="2009-09-21T04:00:00" d="25200" p="335975" c="5256"/>
    <s s="2009-09-21T04:00:00" d="86400" p="335975" c="26198">
    <k id="5" v="2009-09-21 09:00:00.000"/>
    <k id="6" v="2009-09-22 03:59:59.000"/>
    <k id="26" v="0.00"/><k id="27" v="US"/>
    </s>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="11678"/>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="26697"/>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="25343"/>
    <s s="2009-09-21T04:00:00" d="21600" p="335975" c="25269"/>
    <s s="2009-09-21T04:00:00" d="86400" p="335975" c="26200">
    <k id="5" v="2009-09-21 09:00:00.000"/>
    <k id="6" v="2009-09-22 03:59:59.000"/>
    <k id="26" v="0.00"/><k id="27" v="US"/>
    </s>
    </schedules>
    <?xml version="1.0" encoding="UTF-8"?>
    <!--W3C Schema generated by XMLSpy v2008 sp1 (http://www.altova.com)-->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xdb="http://xmlns.oracle.com/xdb"
        version="1.0"
        xdb:storeVarrayAsTable="true">
         <xs:element name="schedules" xdb:defaultTable="SCHEDULES">
              <xs:complexType xdb:SQLType="SCHEDULES_T">
                   <xs:sequence>
                        <xs:element ref="s" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="s">
              <xs:complexType>
                   <xs:choice minOccurs="0">
                        <xs:element ref="f" maxOccurs="unbounded"/>
                        <xs:element ref="k" maxOccurs="unbounded"/>
                   </xs:choice>
                   <xs:attribute name="s" use="required" type="xs:dateTime"/>
                   <xs:attribute name="p" use="required" type="xs:int"/>
                   <xs:attribute name="d" use="required" type="xs:int"/>
                   <xs:attribute name="c" use="required" type="xs:short"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="k">
              <xs:complexType>
                   <xs:attribute name="v" use="required" type="xs:string"/>
                   <xs:attribute name="id" use="required" type="xs:byte"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="f">
              <xs:complexType>
                   <xs:attribute name="id" use="required" type="xs:byte"/>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    Keep in mind both the actual XML file and corresponding XSD is much more complex, but this particular section is about 70 MB so I wanted to see if I could just load that.  I used the following sqlldr script:
    LOAD DATA
    INFILE *
    INTO TABLE schedules_tmp TRUNCATE
    XMLType(xml_doc)(
         lobfn FILLER CHAR TERMINATED by ',',
         xml_doc LOBFILE(lobfn) TERMINATED BY EOF
    BEGINDATA
    /tmp/schedules.xmlThis worked fine on a small doc - loaded correctly and I could query it fine - but when I tried using the 70 MB file it ran for a couple of hours before dying with a memory problem.
    So what am I doing wrong? Is there a better way to load a large file?
    Thanks for the help.
    Pete
    Edited by: mdrake on Nov 9, 2009 8:46 PM

    Mark:
    Answers to your questions:
    Do you use direct load ? -> Yes. I tried again using UNRECOVERABLE LOAD DATA to try to speed up performance, but it still ran for a couple of hours before dying.
    Which DB Release are you working with ? -> 10.2.0.3
    Can you see if you can upload via FTP ? -> I added noNamespaceSchemaLocation to my XML file and ftp'd it to my XML directory, but it wasn't recognized. Is there something else I have to do?
    The change for unsignedInt should have code rid of the issue with the value 129. Did it ? -> I didn't try it again on the whole XML file (I'm just working with the schedules section), so I haven't verified this.
    I'm still stumped as to why sqlldr takes so long. I could write something to parse the XML file into a flat file and then use sqlldr to load it into a relational table, and the load would only take a few minutes. But then I wouldn't be using XML DB which I thought would be faster. What am I doing wrong?
    Pete

  • Firefox flash plugin not loading external xml file?

    I have a Flash based website that uses an external xml file
    to load the interface and navigation. When I view the site in
    Firefox it never seems to load the xml file therefore the interface
    doesn't load.
    Any ideas?

    Hi,
    I have followed your instructions and could able to get it working for firefox. The sameway i tried with mozilla, but not working. This time, I didnt see any errors but it is not working as expected (no animations / images displayed)
    So could you please help me.
    My system config. is X86 Solaris 5.10.
    bash-3.00# pwd
    /usr/sfw/lib/mozilla/plugins
    bash-3.00# elfdump -e libflashplayer.so
    ELF Header
      ei_magic:   { 0x7f, E, L, F }
      ei_class:   ELFCLASS32          ei_data:      ELFDATA2LSB
      e_machine:  EM_386              e_version:    EV_CURRENT
      e_type:     ET_DYN
      e_flags:                     0
      e_entry:                  0x94  e_ehsize:     52  e_shstrndx:   37
      e_shoff:              0x7fb4ac  e_shentsize:  40  e_shnum:      39
      e_phoff:                  0x34  e_phentsize:  32  e_phnum:       3Thanks
    Ram.

  • Problem loading external swf's

    Hi
    I'm creating an application where the user uses the ARROW KEYS to navigate around the menus and SPACEBAR to continue.
    On the first screen is the main menu that launches external swf's. (I have it as an exe)
    When I play the external swfs individually in the Flash Player.......the navigation is perfect and runs smoothly.
    But when I launch the external swf's through the first screen (menu).....the loaded swf becomes very slow/sluggish to react when I hit the ARROW KEYS.
    (eg. have to hit the arrow key 3/4 times before it moves)
    The frame rate in each fla is the exact same.
    I use the levels to launch the external swf..............I have also used the "load into an empty movieclip" and the outcome is still the same.
    I'm using CS5.
    What could be the problem???
    Thanks for your help.

    In the 3 external swfs, I have in each around 10 scenes. In each scene I have 6 frames with a stop() command in each frame.
    On the selected button in each frame I have the following code: (using actionscript2)
    on (keyPress "<Up>") {
         gotoAndStop(3);
    on (keyPress "<Down>") {
         gotoAndStop(1);
    on (keyPress "<Space>") {
         gotoAndStop("scene02", "firstframeLabel");
    This code is consistant through the 10 scenes.
    On the menu swf; I have a menu system that launches the 3 external swf.
    One scene, using 3 frames with a stop() command in each frame.
    On the selected button in each frame I have the following code: (using actionscript2)
    on (keyPress "<Up>") {
         gotoAndStop(3);
    on (keyPress "<Down>") {
         gotoAndStop(1);
    on (keyPress "<Space>") {
        loadMovie ("application01.swf", 30);

  • Load external XML file

    I am trying to write a test program. I have a program that is
    going to get it's data from an XML file when it is first loaded.
    That XML file is going to be a local file that sit's in same folder
    as the flex program (rather than online or through a url address).
    Basically, I'm trying to find a way to open or load that file, then
    parse through it and store the xml data, then close the xml file
    (rather than using an rss feed). Everything I'm finding is only
    telling me how to load the data in through a url address. Is there
    any simple way to open a text or xml file?

    i'm goign crazzzzy here.
    i have a list, that reads XML.
    i want that list to update on production without me having to
    build the project all the time, but by just uploading a new XML
    file.
    i think the function i need is this:
    [code]
    private function LoadMyXML():void
    var myXML:XML = new XML();
    var XML_URL:String = "xml/AO_Other.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(evtObj:Event)
    myXML = XML(myLoader.data);
    trace("Data loaded.");
    [/code]
    my xml looks like this:
    [code]
    <AO_OTHER>
    <category title="Administrative Groups">
    <link title="Administrative Groups" url="sadfsf"/>
    </category>
    <category title="AO Survey Results">
    <link title="AO Survey Results" url="sdfsdf202.pdf"/>
    </category>
    </AO_OTHER>
    [/code]
    and the error i keep getting is htis:
    TypeError: Error #1090: XML parser failure: element is
    malformed.
    at
    TabTest/private:LoadMyXML/xmlLoaded()[C:\Flex\SearchTest\TabTest.mxml:25]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    what am i doing wrong?
    am i even going though this the right way?
    thanks!

  • Problem in external XML reading

    Hi,
    I am trying to develop a birthday application.The aim of the application is to populate all the birthday dates in datechooser and display the appropriate photograph of the person when the highlighted date is clicked.
    When I am trying to access {xImages.img[i].BirthDate.toString()} value, it is giving an error : Error #1009: Cannot access a property or method of a null object reference
    The following is the code:
    Birthday Application
    <mx:Script>
            <![CDATA[
                import mx.rpc.events.ResultEvent;
               public var mySource:String="assets/birthday/pictures/1.jpg"
               [bindable]private var xImages:XML
       private function init():void {
                    imageData.send();
                    dc1.displayedMonth = 2;
                    dc1.displayedYear = 2009;
        public function displayDates():void {
                    var dateRanges:Array = [];
                    for (var i:int=0; i<shows.show.length(); i++) {
                        var cDate:Date =
                            new Date(xImages.img[i].BirthDate.toString());          
                        var cDateObject:Object =
                            {rangeStart:cDate, rangeEnd:cDate};
                        dateRanges.push(cDateObject);
                    dc1.selectedRanges = dateRanges;
        function setPath(myPath:String):void
                    mainImage.source=myPath;
                function resultHandler(event:ResultEvent):void
                    xImages = event.result as XML
                    trace (xImages.toXMLString());
            ]]>
        </mx:Script>   
    <mx:HTTPService id="imageData" url="assets/birthday/images.xml" resultFormat="e4x" result="resultHandler(event)"/>
    <mx:VDividedBox width="20%" height="100%">
        <mx:Panel height="68%" width="100%">
             <mx:DateChooser id="dc1"
            showToday="false"
            creationComplete="displayDates()"
        />   
        </mx:Panel>
        <mx:Panel height="100%" width="100%">
            <mx:Text text="this is for birthday pics"/>
        </mx:Panel>
    </mx:VDividedBox>
    <mx:Panel width="80%" height="100%">
    <mx:VDividedBox width="100%" height="100%">
        <mx:Canvas height="100%" width="100%">
           <mx:Image id="mainImage" source="{mySource}" width="80%" height="80%" verticalCenter="0" horizontalCenter="0" />
        </mx:Canvas>
        <mx:HBox height="20%" width="50%" horizontalScrollPolicy="on" verticalCenter="0">
            <mx:Repeater id="imageRepeater" dataProvider="{imageData.lastResult.img}">
                <mx:Canvas width="55" height="55" backgroundColor="#000000" horizontalScrollPolicy="off" verticalScrollPolicy="off" borderStyle="solid">
                    <custom:CustomImage path="{imageRepeater.currentItem.src}" width="89" height="100%" useHandCursor="true" buttonMode="true" source="{imageRepeater.currentItem.thumbnail}" verticalCenter="0" left="0" click="setPath(String(event.currentTarget.path));"/>
                </mx:Canvas>
            </mx:Repeater>
        </mx:HBox>
    </mx:VDividedBox>   
    </mx:Panel>
    </mx:Application>
    Example of XML file is as follows:
    images.xml
    <gallery>
    <img>
    <src>assets/birthday/pictures/1.jpg
    </src> 
    <thumbnail>assets/birthday/pictures/t1.gif
    </thumbnail>
    <BirthDate>02/28/2009</BirthDate>
    <title>""</title>
    <caption>""</caption>
    </img>
    <img>
    <src>assets/birthday/pictures/2.jpg
    </src> 
    <thumbnail>assets/birthday/pictures/t2.gif</thumbnail>
    <BirthDate>02/12/2009</BirthDate>
    <title>""</title>
    <caption>""</caption>
    </img>
    <img>
    <src>assets/birthday/pictures/3.jpg
    </src> 
    <thumbnail>assets/birthday/pictures/t3.gif
    </thumbnail>
    <BirthDate>02/16/2009</BirthDate>
    <title>""</title>
    <caption>""</caption>
    </img>
    </gallery>
    Can anybody correct me where I am doing a mistake. I am not able to figure out and is blocked here
    Please help me
    Thank you in advace,
    Cheers,
    KK

    Hi
    You are calling the displayDates() at creationcomplete() of DateChooser. But at that time your xImages(xml) is null because it is not initialized and the HttpServices is not returned the result.
    So initialize your xml and call displayDates() after httpservices returns the result.
    Hope this helps
    Regards
    Rush-me

  • Problem loading external urls [please..]

    hello guys,
    i am usin this code to run some file and make queries:
    ActionScript Code:
    var req:URLRequest = new URLRequest("http://site.com/z.php?id=" + user_id + "&mana=" + (Round - 1));
    var loader:URLLoader = new URLLoader();
    loader.load(req);
    when i am running the swf file fas ctrl + enter in the flash cs5  it works great!
    but, when i uploading this to my server its not working, or even when i run it from desktop still not working
    (not loading the url so my DB not updating)
    i dont understand why,
    please waiting for your help.

    round is just simple number,
    i am noobie at AS so id did simple game,
    when the user looses his score sends to my server,
    in flash when i am testing it usin ctrl + enter it works great,
    but if i run the swf file from the desktop or web so the game works but its not sending the score..
    here is the full code (little mess):
    stage.addEventListener(KeyboardEvent.KEY_DOWN, boatMove);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, boatMove); 
    playAgain.addEventListener(MouseEvent.CLICK, playmeAgain); 
    var theScore:int = 0; 
    var Round:uint = 1; 
    score_txt.text = String(Round - 1); 
    loseScreen.visible = false; 
    theFinalScore.visible = false; 
    playAgain.visible = false; 
    copyrights.visible = false; 
    var user_id:uint = 0; 
    function loaderComplete(myEvent:Event)
        this.myParams=this.loaderInfo.parameters;
        this.myParamsLoaded=true;
        this.useParams();
    function useParams()
        userid_txt.text=String(this.myParams.userid);
        user_id = Number(this.myParams.userid);
    var myLoaderInfo=new Object();
    myLoaderInfo.myParamsLoaded=false;
    myLoaderInfo.loaderComplete=loaderComplete;
    myLoaderInfo.useParams=useParams; 
    this.loaderInfo.addEventListener(Event.COMPLETE, myLoaderInfo.loaderComplete);
    function playmeAgain(event:MouseEvent):void
    loseScreen.visible = false;
    theFinalScore.visible = false;
    playAgain.visible = false;
    copyrights.visible = false;
    Round = 1;
    theScore = 0;
    addEventListener(Event.ENTER_FRAME, trowEnemy);
            enemy.x = rand(0,stage.stageWidth - enemy.width);
            enemy.y = 0;
    function boatMove(event:KeyboardEvent):void
        if(event.keyCode == Keyboard.RIGHT){
                        boat.x += 10;
                        if(boat.x > stage.stageWidth - boat.width)
                            boat.x = stage.stageWidth - boat.width;
        if(event.keyCode == Keyboard.LEFT){
                        boat.x -= 10;
                        if(boat.x < 0)
                            boat.x = 0;
    addEventListener(Event.ENTER_FRAME, trowEnemy); 
    function trowEnemy(event:Event):void
    enemy.y += Round + 10;; 
        if(boat.hitTestObject(enemy)){
        // IF THE GAME ENDED
        loseScreen.visible = true;
        theFinalScore.text = String(Round - 1);
        theFinalScore.visible = true;
        playAgain.visible = true;
        copyrights.visible = true;
        removeEventListener(Event.ENTER_FRAME, trowEnemy);
        user_id = 71811;
    var req:URLRequest = new URLRequest("z.php?id=" + user_id + "&mana=" + (Round - 1));
    //var req:URLRequest = new URLRequest("http://izra.co.il/z.php");
    var loader:URLLoader = new URLLoader();
    loader.load(req);
        else
            if(enemy.y > stage.stageHeight){
            theScore += 1;
            enemy.x = rand(0,stage.stageWidth - enemy.width);
            enemy.y = 0;
            Round++;
    score_txt.text = String(Round - 1);
    theFinalScore.text = String(Round - 1);
    // RANDOM NUMBERS 
    function rand(min:uint, max:uint):uint
        var randomNumber:uint = Math.round(Math.random() * (max - min) + min);
        return randomNumber;

Maybe you are looking for

  • Failure to uninstall Premiere Pro CC

    I have a problems with uninstalling the Aobe Premiere Pro CC from the windows 8.1. When I try to simply uninstall the Premiere from the Windows Control Panel the error window has been displayed. There I can find a few tips which should help to solve

  • Connect a current model Mini to a non-HD TV via component cables?

    I've got a few random adapters lying about. I've read some reports that the new Minis only output digital signals but I'd like to get a consistent answer. Thanks.

  • ACS SE 4.1.1.23 patch 5 issue with users

    HI There, I am facing very weired issue with ACS SE 4.1.1.23 patch 5. I am trying to add users in ACS it is added successfully but I can not see these users when I click list all users. But I can see users are increasing in groups when I add users..b

  • Is it possible to configure IDOC with Business service

    hi Is it possible to configure IDOC with Business Service                       Thanking you....                                                                      aravind........... <Interview question locked, please read the [Rules of Engagement|

  • Snapshot Error When Adding Article to Transactional Replication

    I am trying to add an table articles to my transactional replication setup.   When I do, the snapshot error fails with the following message: Source: Microsoft.SqlServer.Smo Target Site: Microsoft.SqlServer.Management.Smo.SqlSmoObject GetSmoObject(Mi