Problem to access the XML

Here is my XML file

<? XML version = "1.0" encoding = "utf-8"? >

< data >

< country >

< = "Algeria" flag = country name "algeria.png" group = "H" > < / country > "

< = 'Argentina' flag = country name "argentina.png" group = "F" > < / country > "

< name of the country = "Australia" flag = "australia.png" group = "B" > < / country > "

< / country >

< / data >

It has loaded completely and I am able to trace

trace (XMLobject)

Tracks complete XML

trace (xmlObject.countries.Country)

Traces

< = "Algeria" flag = country name "algeria.png" group = "H" > < / country > "

< = 'Argentina' flag = country name "argentina.png" group = "F" > < / country > "

< name of the country = "Australia" flag = "australia.png" group = "B" > < / country > "

But when I trace

trace(xmlObject.countries.Country[1]);

traces of anything.

With the help of AS3.0, Player 10.2 and Flash cs5.5.

Please help me.

I think the problem has to do with there is not anything between the tags of the country.  If there's nothing there, it will draw.

Tags: Adobe Animate

Similar Questions

  • just joined the cloud having problems to access the pro Prime Minister... help me please

    just joined the cloud having problems to access the pro Prime Minister... help me please

    Hi again Jeff... Thank you for the time you took on this

    question... my daughter figured it out and all is well

    Duarte

  • To access the XML from a different class

    Hi all

    I have a xml class that loads the xml data, I need to access the data of another class. I imported the xml classinto the new class and created a new instance of it. However when I try to access the xml data it come back as null. I understand that it is certainly because when she is called the xml data has not completed loading. How can I get around this?

    XML class:

    package {}

    flash.xml import. *;
    import flash.events. *;
    import flash.net. *.
    import flash.display. *.

    public class xml extends MovieClip
    {
    public var xmlRequest:URLRequest;
    public var xmlLoader:URLLoader;
    public var xmlImages:XML;

    public void xml()
    {
    xmlRequest = new URLRequest ("images.xml");
    xmlLoader = new URLLoader (xmlRequest)

    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    xmlLoader.load (xmlRequest);
    }

    private void xmlLoaded(event:Event):void
    {
    trace (xmlLoader.Data);
    xmlImages = new XML (xmlLoader.data);
    }
    }
    }

    Thanks in advance

    Or even better:

    package {     import flash.events.*;     import flash.net.*;     import flash.xml.*;
    
         public class XMLLoader extends URLLoader     {          public var xmlImages:XML;
    
              public function XMLLoader()          {
    
              }
    
              public function loadXML(url:String):void {               this.addEventListener(Event.COMPLETE, xmlLoaded);               this.load(new URLRequest(url));          }
    
              private function xmlLoaded(event:Event):void          {               trace(xmlLoader.data);               xmlImages = newXML(this.data);               dispatchEvent(new Event("loadComplete"));          }     }}
    

    Use:

    var xmlLoader:XMLLoader = new XMLLoader();
    xmlLoader.addEventListener ("loadComplete", onXMLLoad);

    xmlLoader.loadXML ("images.xml");

    function onXMLLoad(e:Event):void {}
    trace (xmlLoader.xmlImages);
    }

  • Cannot access the XML file on localhost.

    Type localhost or 127.0.0.1 in any browser on a Macintosh (os 10.5) does not have access to the host computer.

    The following Actionscript code generates the following error:

    var XMLURL:URLRequest = new URLRequest ("http://localhost/quoteRotator/quotes1.xml");

    Error opening URL ' http://localhost/quoteRotator/quotes1.XML '

    #2044 error: Unhandled IO error...

    How can I access the XML file using Actionscript 3?

    Thanks for your help.

    use:

    var XMLURL:URLRequest = new URLRequest("quotes1.xml");
    
  • Problem with to access the XML nodes whose namespace

    Hello
    I have a XML file with the following format;

    "" "" "< graphml version ="1.3"xmlns =" http://graphml.graphdrawing.org/xmlns/graphml ' xmlns:y = ' http://www.yworks.com/xml/graphml ' xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance" > "

    < graph id = 'G' edgedefault 'ordered' = >

    < key data 'd11' = >
    < y: SharedData >
    < name there: Brush = "SolidBrush" color = "Black" id = "1" / >
    < / y: SharedData >
    < / data >

    < node id = "G:n0" >
    < y: Labels >
    < y: Text > <! [CDATA [start]] > < / Text: y >
    < / y: Labels >
    < / node >

    < node id = "G:n1" >
    < y: Labels >
    < y: Text > <! [CDATA [end]] > < / Text: y >
    < / y: Labels >
    < / node >

    < / chart >

    < / graphml >


    I access this file as < mx:XML id = "layoutXml" source = "tmp.xml" / > "

    I have no application debugging and found that the layoutXml object contains the xml file as it is. Now when I try to access any child node of layoutXml, every time I found null. Same instruction layoutXml.graph.toXMLString () or layoutXml.graph.toString () returns null.

    I have tryied the following approach as well, but did not work,
    var nameSpace:Namespace = new Namespace (" http://www.yworks.com/xml/graphml");
    var str:String = layoutXml.graph.node. (@id == ' G:n0").nameSpace::Labels.nameSpace::Text.toXMLString();")
    also, this property returns null.

    If anyone has the solution, please answer.

    Thank you.

    Namespace var sets default namespace:
    lack of namespace xml = nameSpace;

    You should then be able to reference nodes normally.

    Tracy

  • Email connection problems: cannot access the requested url due to the system on that server error

    How can I get my email on when I get the above message

    Cannot access the url reqested due tosystem error on this server

    Apparently, there is a problem on the mail server. Contact technical support for your email provider. MS - MVP - Elephant Boy computers - don't panic!

  • Homegroup problem while accessing the shard files

    Original title: Homegroup mixup

    I have two computers connected to the home wireless network and the Internet via a modem from Bell. These two are in a homegroup, and the correct password Group residential appears in both entities. The two computers in network folders. I can access it from the computer #1 computer #2 without problem. However, since the computer #2 I can't access the computer #1; I wonder a user name and password to access computer #1. I don't know what name and password I am asked. I find Microsoft Help such an amazing and spent hours mambo jumbo transmitted by one link to the other. Troubleshoot homegroup and home network not found any problem. Can someone tell me just what may be the problem and how to fix it?

    Hi Vidojko,

    Welcome to Microsoft Community where you can find the answers related to Windows.

    According to the description provided, looks like you are faced with a problem when you access the brightness on homegroup files.

    This problem occurs because of permission settings.

    Try the following methods and check.

    Method 1:

    I suggest you to check the file/folder permission settings.

    Refer to the mention of the steps below:

    a. click the Start button and then click on your user name.

    b. navigate to the file or the folder that you want to exclude the sharing and select it.

    c. do one of the following:
    To prevent the file or folder to share with anyone, in the toolbar, click on share and then click nobody.
    To share the file or folder with some people but not others, in the toolbar, click on share with, click specific people, select each person you want to share with, and then click Add. When you are finished, click on share.
    To change the level of access to a file or folder, in the toolbar, click on share with, and then select group residential (read) or homegroup (read/write).

    Method 2:

    Try to remove the sharing protected by advanced sharing settings change password.

    a. open homegroup by clicking the Start button, clicking Control Panel, typing homegroup in the search box, and then click homegroup

    b. click on change sharing settings advanced, remove the option sharing protected by password and check if it helps.

    See the following for more information Microsoft article.

    Homegroup from start to finish: http://windows.microsoft.com/is-is/windows/homegroup-help#homegroup-start-to-finish=windows-7&v1h=win8tab1&v2h=win7tab1

    Keep us informed on the status of the issue.

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • I have problems to access the homegroup on one of my computers networked

    I can't access the homegroup on one of my computers networked: I can't view/print the password or leave the homegroup.

    The homegroup listener service is not running and does not start; It depends on the Server service which does not also.

    All the services depends on "Server" are running, while I find not all controls bound to the drivers SMB or srvnet.

    The error message when the Server service or the HomeGroup listener is tempted to start is:
    Error 1068: The dependency service or group could start.

    Thank you very much, Jack MVP.  I downloaded and installed ServiWin as directed by your recommendation.

    It showed me that the server SMB 1. XXX driver (srv.sys) was not working.  I then used the 'Google - executable name' search option from right-click menu.

    This showed me in turn to the web page of "http://support.microsoft.com/kb/2473205" entitled: "list of currently available patches for technologies in Windows Server 2008 and Windows Server 2008 R2 file Services.

    In this page, I found a section entitled SRV component with a link to the article 2625434 knowledge base: "http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2625434&kbln=en-us."

    This allowed me to download an a security update that contains the latest version of the srv.sys.  Installation of this repaired my faulty installation of the SMB 1. XXX driver.

    This then allowed me to do things like "View the HomeGroup Password" and "Leave the HomeGroup" that I couldn't do before.

    I was then able to join the homegroup, and after restarting, become visible to my laptop.

    I then told the phone leaving the homegroup and then join and now computers are visible to each other.

    All Windows 7 computers on my home network are now visible to the other in the homegroup.

  • Problem to access the GPIO

    Hello

    I am writing an application using JAVA ME for raspberry pi. I use Java ME SDK 8.0 GA.

    I'm doing a very basic action, open GPIO, turn on and then turn off, but I'm not able to get this working. My application also uses i2c and it works.

    I've tried both

    DeviceManager.open (7)

    DeviceManager.open (7, GPIOPin.class, null)

    I get the following exception:

    [ERROR] ISO [DAAPI] = - 1:There is an unexpected error when open pin GPIO 7

    I have the following permissions on my application:

    MIDlet-Permission-1: jdk.dio.DeviceMgmtPermission "*: *" 'open '.

    MIDlet-Permission-2: jdk.dio.i2cbus.I2CPermission "*: *" 'open '.

    3 MIDlet-permission-: jdk.dio.generic.GenericPermission "*: *" 'open '.

    MIDlet-Permission-4: jdk.dio.gpio.GPIOPinPermission ' *.» ' * ' 'open '.

    6 MIDlet-permission-: jdk.dio.gpio.GPIOPortPermission ' * ' 'open '.

    MIDlet-Permission-9: null java.util.logging.LoggingPermission "control".

    The application is signed with a certificate and it works like the I2C has no problem getting the required permissions and running on the Board.

    I know my PIN GPIO 7 works I have a relay that is connected to it and I am able to enable or disable the file system (echo 1 > >/sys/class/gpio/gpio7/value).

    In addition, I install the application using the jar (NOT the jad file) using the terminal. The emulator seems to fail, and I read somewhere that it is a known bug.

    I ran this code and sudo as root, but nothing helped.

    Any help would be appreciated.

    Sergei Hello / All,

    I managed to solve this problem. If the PIN is set output or input until the code is executed, then I get this exception. If the pin code is not defined a priori (whether as input or output), then the code works.

    Now, that brings to a new question, what happens if the PIN is set out by another application or manually (echo 7 >/sys/class/gpio/export) and I still need my code to work with it?

    Thank you

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • Problem to access the results of the DataService fill method

    I've set up an application that retrieves data from a data service
    configured with a java-dao adapter. If I set a DataGrid with the
    The table that is populated by the fill method, I see the data in the grid. Cool.
    So I know I have configured and coded everything correctly.

    However, if I try to access the data by the following code, it
    looks like my table is empty!

    Ray = new ArrayCollection();
    DS = new DataService ("assets");
    DS. Fill (Ray);
    var active: active = ray [0];

    That gives me a clue "0" error limits. I also tried
    ray.getItemAt (0) with the same results.

    How to access and manipulate the results of a method of filling via
    ActionScript? I am currently using Beta3.

    Note that it takes time to actually make the dataservice call and retrieve the results. Your data will be unavailable immediately. After calling fill(), you must wait for the "result" of the DataService object event.

  • I receive the "could not sign in you [access denied: 530]." Check your user name and password ' problem on Adobe Muse CC 2014 and I can not access the xml file that is supposed to solve this problem?

    I am a PC user and I have Adobe Creative Cloud Muse 2014. I received the "could not sign in you [access denied: 530]." Check your username and password "error. trying to download my muse to my ftp, GoDaddy host site I did it successfully in the past and that recently it has stopped working. I looked online at the Adobe Muse Help FAQ | Download a Site from Muse Adobe on a third-party hosting service and he said to download the ftpprefs.xml file but this file simply leads to a blank page that says / * not found * / / * not found * /.

    Can you direct me to a page to work with this file, or provide an alternative? Thank you!

    Hello

    As you have found the error [access denied: 530] This means that the problem is with access. The user name and password that you enter is incorrect or you don't have the appropriate permissions.

    I suggest you to contact Godaddy to reset the password or reset the permissions.


    Concerning

    Vivek

  • How to access the XML in Flex

    < user >

    < UID = "HR" dept >

    < user >

    mm < fname > < / fname >

    < Email > [email protected] < / email >

    < / user >

    < user >

    SSS < fname > < / fname >

    < Email > [email protected] < / email >

    < / user >

    < / dept >

    < UID = 'Finance' dept >

    < user >

    FFFF < fname > < / fname >

    < Email > [email protected] < / email >

    < / user >

    < user >

    www < fname > < / fname >

    < Email > [email protected] < / email >

    < / user >

    < / dept >

    < / users >

    using the HTTP service with access to the data

    This my user.xml file I want to display all the item in flex datagrid using the function navigator tab... each browser tab contains a grid of data for corresponding like HR, sales, Finance Dept

    the corresponding information will be displayed in the data grid

    first tab navigatore is

    HR-> grid of data such as fname, Email field

    Finance-> fname, E Mail

    Try this if you have problems and the way in which you want to change it:


    <>
    "xmlns:MX ="http://www.adobe.com/2006/mxml"
    Layout = "vertical".
    "" xmlns:local = "*".
    creationComplete = "init ()" > "


           
               
                    
                          mm
                          [email protected]
                    

                    
                          SSS
                          [email protected]
                    

               

               
                    
                          FFFF
                          [email protected]
                    

                    
                          www
                          [email protected]
                    

               

           

       

       
       
           
    dataProvider = "{myXML.dept}" > "
               

                   
                       
                           
                           
                       

                   

                       
           
       
       

    Kind regards

    Adrian

  • Problem to access the server comments

    Hello

    I have a problem when I try to access server to the comments, I saw on the console that start the httpd daemon fail message follow:

    [[email protected] / * / ~] # service httpd restart
    Stopping httpd: [FAILURE]
    From httpd: [FAILURE]

    and/var/log/http/error_log

    [Sea Mar 30 19:03:33 2005] [notice] caught SIGTERM, closing
    [Game 31 Mar 09:24:36 2005] [notice] suEXEC mechanism enabled (wrapper: / usr/sbin/suexec)
    [Game 31 Mar 09:24:37 2005] [opinion] Digest: generating secret for digest authentication...
    [Game 31 Mar 09:24:37 2005] [opinion] Digest: done
    [Game 31 Mar 09:24:37 2005] [opinion] Apache/2.2.4 (Unix) DAV/2 PHP/5.1.6 mod_ssl/2.2.4 OpenSSL/0.9.8b configured - resumed normal operations
    [Game 31 11:29:29 Mar 2005] [error] [client 10.5.0.50] File does not exist: /guest/ www/favicon.ico
    [Game 31 Mar 11:29:35 2005] [error] [client 10.5.0.50] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:40:27 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:41:14 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:43:15 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:43:31 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:43:33 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:43:37 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:43:41 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:54:34 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:55:17 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:55:29 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 11:59:55 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 12:01:39 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 12:01:54 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 12:01:55 2005] [notice] caught SIGTERM, closing
    [Sea APR 06 12:03:59 2005] [notice] suEXEC mechanism enabled (wrapper: / usr/sbin/suexec)
    [Sea APR 06 12:03:59 2005] [opinion] Digest: generating secret for digest authentication...
    [Sea APR 06 12:03:59 2005] [opinion] Digest: done
    [Sea APR 06 12:03:59 2005] [opinion] Apache/2.2.4 (Unix) DAV/2 PHP/5.1.6 mod_ssl/2.2.4 OpenSSL/0.9.8b configured - resumed normal operations
    [Sea APR 06 12:07:37 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 12:08:02 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea APR 06 12:08:08 2005] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:05 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:05:41 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:05:44 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:05:47 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:06:05 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico
    [Sea Mar 24 12:06:09 2010] [error] [client 10.5.0.52] File does not exist: /guest/ www/favicon.ico

    Hello

    What is the history of this server? What version is this? It has already been improved? It is in production?

    If this isn't the case, you may want to consider re-imaging it. If it is in production and hung like this, prosecute TAC so we can look at closer newspapers.

    HTH,

    Faisal

  • Problem creating / accessing the content a document dictionary

    I have problems to create and access a document dictionary.

    I create a new document by using the NEW item in the menu of the Illustrator.

    Then I execute the following code through my plugin. I does not work. Here I a unable to retrieve any value FRO the dictionary. In fact I'm not even sure that I wrote anything in the dictionary.

    Is there something wrong in my code?

    Thank you.

    {

    Dictionary AIDictionaryRef = NULL;

    Error AIErr = 0;

    error = sAIDocument-> GetDictionary (& dictionary);

    AIDictKey KEY = sAIDictionary-> Key ('MY_Key');

    Dim mykey = "2";

    error = 0;

    error = sAIDictionary-> SetStringEntry (dictionary, KEY, mykey.c_str ());

    Error AIErr = 0;

    error = sAIDocument-> GetDictionary (& dictionary);

    const char * Namevalue;

    error = sAIDictionary-> GetStringEntry (dictionary, KEY & Namevalue);

    sAIDictionary-> output (dictionary);

    }

    If the first error is 1146045247 ('DOC?') and you get a NULL dictionary, nothing still does not work.

    Depending on where you run this code (for example, in response to a click of Panel element), Yes, you need to get first the AppContext.

Maybe you are looking for