Problem of child length XML?

The following data are my xmldata.  I need to know child length is equal to 3.

" < studentlist xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
< namelist >
Fox Rithick < name > < / name >
21 <>< / Age >
Male < sex > < / sex >
< address > 5 / 15 St of Vinayagar Kovil, Chennai. < / address >
< / namelist >
< namelist >
Kumar < name > < / name >
< 19ans > < / Age >
Male < sex > < / sex >
< address > Newno: 45, street of KEB, Chennai. < / address >
< / namelist >
< namelist >
< name > Ravimumar < / name >
< 12 > < / Age >
Male < sex > < / sex >
< address > 378, Grass Land Street, Pune. < / address >
< / namelist >
< / studentlist >

Please help me tom solve this problem. I used the child (0) .length that it did not work...

var loader: URLLoader = new URLLoader();
configureListeners (loader);
Loader.Load (new URLRequest ("YourXMlName.xml"));

function configureListeners(dispatcher:IEventDispatcher):void {}
dispatcher.addEventListener (Event.COMPLETE, completeHandler);
}

function completeHandler(event:Event):void {}

var xml = new XML (event.target.data);

trace (XML. NameList.length ());

}

Tags: Adobe Animate

Similar Questions

  • Problem with XMLSerialize / indented XML

    My problem is that my XML output is only a line like:
    <? XML version = "1.0" encoding = "ISO-8859-15? > < rss version = "2.0" > < channel > < title > Test < / title > < / channel > < / rss >

    IAM want to export xml like this:
    <? XML version = "1.0" encoding = "ISO-8859-15? >
    < rss version = "2.0" >
    .. < String >
    ... < title > Test < /title >
    .. < / channel >
    < / rss >


    I heard from xmlserialize that should be used like this:
    Select xmlserialize (DOCUMENT xmltype (' <? xml version = "1.0" encoding = "ISO-8859-15"? > < rss version = "2.0" > < channel > < title > Test < /titre > < / channel > < / rss > ')) twice;

    but its no change in my outings.
    Can someone help me?

    Published by: Oliver L the 07.11.2008 14:15

    You are interested in the concept called "pretty printing".
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb04cre.htm#sthref469

    If you're on 11, you can use one of the examples posted by mdrake to Re: generation of XML using XMLGEN

    The concept of printing enough has been discussed in this forum before and I think that the SQL and PL/SQL forum as well.

    select xmltype('Test').extract('*')
     from dual
    

    The question to ask is "do you really need to? Compliant systems do not care if the XML of entry is a string unique or nice print.

  • How to ADD a child inside the childe in XML file

    I want to write the configuration file using the XML tools.

    in what I am facing problem to add a child next to the child.

    Please guide me to resilve this problem.

    Thank you

    Gilles Poirier

    Thank you

    I is a good Solution. Now, I try to add a new Tag, and once again in this new child.

    Thank you

    Gilles Poirier

  • Problem of generation of XML?

    Hi, I'm relatively new to Flex 2 and I have a question.

    I am generating a view of oracle xml file and I hope to use it as a base for a grid of data in the chart.

    My generation yields process data something like this:
    < list >
    < product name = 'Laptop' total = '0' >
    < name of the warehouse = onhand 'California' = "10" / >
    < name of the warehouse = onhand "Virginia" = "20" / >
    < name of the warehouse = onhand 'Washington' = '0' / >
    < / product >
    < product name = "Desktop computer" total = '0' >
    < name of the warehouse = onhand 'Washington' = '9' / >
    < / product >
    < / list >

    I took this generated XML and put it in a local file for now.

    When I try to load this data, I get this error:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    to the TestFileAccess / TestFileAccess::resultHandler()
    to TestFileAccess / __srv_result)
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    ...
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()

    My mxml file looks like this:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" "< mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout ="absolute"xmlns =" "*" paddingTop = "3" creationComplete = "initApp ()" pageTitle = 'Warehouse levels' >
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    Mx.rpc.events import. *;
    [Bindable]
    private var commodData:Array;
    [Bindable]
    private var warehouseData:Array;
    [Bindable]
    public var slicedCommodData:ArrayCollection;

    private function initApp (): void
    {
    SRV. Send();
    slicedCommodData = new ArrayCollection();
    }
    private void resultHandler(event:ResultEvent):void
    {
    commodData = event.result.list.name.source in the table;
    warehouseData = new Array (commodData.length);
    slicedCommodData.source = commodData;

    var commodTotal:Number;
    for (var x: Number = 0; x < commodData.length; x ++)
    {
    warehouseData [x] = {name: commodData [x] .name, onhand:0};
    var warehouses: Array = commodData [x].warehouse.source in the table;
    commodTotal = 0;
    for (var j: Number = 0; j < warehouses.length; j ++)
    {
    commodTotal += warehouses [j] .onhand;
    }
    .total commodData [x] = commodTotal;
    }
    }
    []] >
    < / mx:Script >
    < mx:HTTPService id = "srv" url = "result.xml" useProxy = "false" result ="resultHandler (event)" / > "
    < mx:Panel layout = "absolute" >
    < mx:ColumnChart id = dataProvider = "{slicedCommodData.source"WarehouseTotals"}" >
    < mx:horizontalAxis >
    < mx:CategoryAxis dataProvider = "{slicedCommodData.source}" categoryField = "Name" / > "
    < / mx:horizontalAxis >
    < mx:series >
    < mx:ColumnSeries xField = "Name" yField = "Total" / >
    < / mx:series >
    < / mx:ColumnChart >

    < mx:DataGrid dataProvider = "{slicedCommodData.source}" >
    < mx:columns >
    < mx:DataGridColumn headerText = "Commodity" dataField = "Name" / >
    < mx:DataGridColumn headerText = "Total" dataField = "Total" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Panel >
    < / mx:Application >

    I wonder if something is wrong with my generated xml data or if his thing. I noticed that my generation xml product still not 3 labels warehouse for each product. Could be the problem?
    Also, the reason for which the label of the products of total is always 0 in the xml file is because this information is not in the view... I use mxml to calculate that.

    Thank you!

    It seems that I played with him for a while and that fixed it. The problem was my xml data and format that my httpservice returned. First of all my xml data to be surrounded and no Tags no and tags. Then my httpservice to be a result of e4x format. It also made me to change how I manage myself properties individual xml data.

    In any case, the fixed code looks like this for anyone who cares and got a similar error.

    "http://www.adobe.com/2006/MXML" xmlns = "" * "paddingTop ="3"creationComplete =" initApp () ' pageTitle 'Warehouse levels' = >

    Import mx.collections.XMLListCollection;
    Mx.rpc.events import. *;
    [Bindable]
    private var commodData:XMLList;
    [Bindable]
    public var slicedCommodData:XMLListCollection;

    private function initApp (): void
    {
    SRV. Send();
    }
    private void resultHandler(event:ResultEvent):void
    {
    commodData = event.result.commodity;
    slicedCommodData = new XMLListCollection (commodData);
    var commodTotal:Number;
    var nextNum:Number;
    for (var x: Number = 0; x)< commoddata.length();="">
    {
    var warehouses: XMLList = commodData [x] .warehouse as XMLList;
    commodTotal = 0;
    for (var j: Number = 0; j< warehouses.length();="">
    {
    nextNum = 0;
    nextNum = new Number (warehouses [j] .@onhand);
    commodTotal = commodTotal + nextNum;
    }
    var firstItem:Object = slicedCommodData.getItemAt (i);
    firstItem.@total = commodTotal;
    }
    }
    ]]>




















    Thanks for all your help!

  • Problems with the length of table/column name

    Hello

    I have load data from the xml source in the oracle table. Some of the elements of xml (which ODI inverts like data warehouses) are more than 30 characters long, and it goes the same for columns as well.

    In the topology Manager, when I change the XML technology and go to the tab 'OTHER', the 'Maximum length of the Table name' and 'Name of maximum column length' are assigned to the 30. According to the literature, ODI must truncate the table name and the name of the column to the specified maximum length. But when I invert the xml model, with more than 30 characters data warehouses are created, and this causes my interface to fail. Is there a solution for this problem?

    Receive your answer.

    Thank you!

    In this case, you have 2 options

    (1) change each column in the data to the right length store

    (2) modify the IKM to create columns at the top, 30 characters. The problem is:

    -If the columns 2 to as difference, only the last 2 characters (like: my_column_name_is_really_big_01 and my_column_name_is_really_big_02) you could get a duplicate if column name not the code in the right way.

    I propose option 1.

    This happens because ODI validate the length of column of the tables in model once it doesn't matter of what is not "owned" by him (like C$ E$...)

    Best regards

    Cezar Santos
    http://odiexperts.com

  • HOW TO SOLVE MY PROBLEM WITH MICROSOFT OPEN XML CONVERTER. WHEN AN E-MAIL CANO'T OPEN THE ATTACHMENTE

    Every time to enter an e-mail address, when have an attachmente I have intention to open but bring a dialog box telling me: 'Microsoft Open XML Converter.  Click here to open bring another dialog box telling me: "Save."  In the final, a small dialog box tell me: not recorded in any file. What should I do?

    Hi MarioVidal

     

    1. what email program are you using? What is windows live mail, Hotmail, Gmail, etc.?

    2. meet the issue only with some specific files types with come as attachments or with each of them?

    3. during how long have you had this problem?
    4. the problem occurs for all e-mail programs?


    Let us know the answers to help you best.

  • problem with getting some xml UTF-8 characters

    Hello

    Please help me solve the following problem. I need to parse the XML string that contains the currency symbol (for example pound sign, see the code example). In the result of the variable currSign contains '? What's wrong?

    {} public static Sub test()

    try {}

    String data ="" +

    "0.00";

    ByteArrayInputStream is = new ByteArrayInputStream (data.getBytes ());

    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();

    DocumentBuilder builder = factory.newDocumentBuilder ();

    Doc document = builder.parse (is);

    Root element = doc.getDocumentElement ();

    String currSign = root.getAttributes () .getNamedItem ("unit"). getNodeValue();

    }

    catch (Exception e) {}

    }

    }

    Ah. I think I see the problem. You want to convert the string into a byte array data using the version without getBytes() argument. Which uses the default encoding (which is ISO-8859-1). You must call getBytes ("UTF-8") or specify ISO-8859-1 for the xml declaration.

  • problem with the app.xml

    Hi, I'm having headaches with the air sdk.

    I'm the "porting" an air for Microsoft device emulator application.  The app.xml has a node of , but if I try to deploy, I get the following error:

    Error: Cannot find node: versionNumber
    

    When I remove the node and replace it with I get the following error:

    Launching error: Packaging failed: 1
    ...app.xml(28): error 103: application.versionNumber is an unexpected element/attribute
    ...app.xml(139): error 104: application.version is required
    ERROR: AIR validation failed
    

    When I have two and I get the following error after logging in to the debugger out (perhaps unrelated)

    Packaging failed: 1
    ...app.xml(28): error 103: application.versionNumber is an unexpected element/attribute
    Error: AIR validation failed
    

    AIR 2.5 removing support for the field and replaced with two fields. et .

    versionNumber is the one required by the BB SDK. It has a few limitations - numbers between 0 and 999 only, and you must have 3 sections (that is to say 1.0.0 - or - 0.5.957). -Change to and make sure your version number is within the limits, and you shouldn't have the problem more.

    The error messages are confusing and make believe that the version label is always supported by 2.5, even if it is not.

  • Already contains the entry of the child Resolve_Access.xml

    SQL > start

    (2 dbms_network_acl_admin.create_acl)

    ACL 3 = > "Resolve_Access.xml"

    4 description = > "Solve the access to the network using utl_inaddr,"

    5 main = > 'CLRNADM ',.

    is_grant 6 = > TRUE,

    privilege 7 = > 'resolve. "

    start_date 8 = > null,

    9 = end_date > null

    (10);

    11 commit;

    12 end;

    13.

    Start

    *

    ERROR on line 1:

    ORA-31003: Parent/sys/ACL/contains already the child entry Resolve_Access.xml

    ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 252

    ORA-06512: at line 2

    Please help us?

    You can delete the existing reference using dbms_network_acl_admin.drop_acl

    exec dbms_network_acl_admin.drop_acl('/sys/acls/Resolve_Access.xml');

    commit;

  • ColdFusion 10 problem with cfhttp postype xml

    We do a cfhttp call.

    We submit xml data. We are able to send information from Server A to Server B, but Server B gives us no answer.

    Our code works for coldfusion 8 and 9, but it does not work for coldfusionh 10.

    This is the snippet of code

    "< cfhttp method = 'post' url =" "#httpURL #" timeout = "3000" useragent = "#CGI.http_user_agent #" >

    < cfhttpparam type = "XML" value = "" #xmlRequest # "name ="CLRCMRC_XML">"

    < / cfhttp >

    The content of server B can be access by

    < cfdump var = '#cfhttp. FileContent #">."

    Note This works in coldfusion 8 and 9, but we get all the data from Server B using coldfusion 10

    Problem solved.

    It was to change this line

    to use the PROTOCOL = '1 '.

  • 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.

  • Problem with child custom form

    Hi all

    I am designing a connector that works with LDAP for OID synchronization. This connector provisions Unix users can have the attribute 'host '.

    I drew the shape for a child table with a search that refers to a list of hosts. I created the java code in the following way:

    AddHost (input1, input2,..., "BOLD" )

    The input parameters contain information for calls JNDI change the LDAP user. The last input parameter is the host that is to be added.

    From my understanding, when you build the list in the child form, each entry is individually used by the method. So, if you have 3 hosts: HostA, HostB and HostC, there are three calls to the AddHost method.

    AddHost (input1, input2,..., HostA )
    AddHost (input1, input2,..., HostB )
    AddHost (input1, input2,..., HostC )

    However, I'm having a problem where whenever I have add an item to the list of the Child Table, commissioning ends with the following error:

    DOBJ. GEN_ERROR
    Unable to save the calendar, a task to change the child table, annex article failed: unable to save the calendar, a task to change the child table, annex article failed

    Now, I traced the variables of the adapter for the Add and Remove hosts adapters to the hosts on the child form variable. I also checked the box 'allow several. " I checked the code works on its own, and the input variables are the same in my NetBeans IDE, as they are in the adapter mappings.

    Anyone know what is happening here?

    Published by: 806409 on December 21, 2011 09:10

    How about adapter mappings, response code and task status object mappings? Are they all fixed?

    -Marie

  • problem to run build.xml

    I downloaded the Demo Application Fusion Store Front "FusionOrderDemo_R2.zip" of

    I am facing following problem.



    BUILD FAILED
    C:\JDeveloper\mywork\Sherman_FOD\Infrastructure\Ant\build.XML:51: The following error occurred during the execution of this line:
    C:\JDeveloper\mywork\Sherman_FOD\Infrastructure\DBSchema\build.XML:91: The following error occurred during the execution of this line:
    C:\JDeveloper\mywork\Sherman_FOD\Infrastructure\DBSchema\build.XML:56: The following error occurred during the execution of this line:
    C:\JDeveloper\mywork\Sherman_FOD\Infrastructure\DBSchema\build.XML:28: Class not found: oracle.jdbc.OracleDriver JDBC driver could not be loaded


    Thank you
    Prateek

    When you went to the page where you downloaded FOD, namely http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html

    Did you read at the top where it says «this will not work in earlier versions...» See the bottom of this page for older versions? »

    And when you went to the bottom of the page, you have found a link.

    And when you follow this link, you have found a page for the 11.1.1.5 version of the demo.

    And at the bottom of this page you find links to previous versions, so

    A Little reading goes a long way {noformat} :) {noformat}

    John

  • problem with byte [] .length

    Dear Sir

    I work with javacard 2.2.2 windows, jdk 1.5 and JCWDE
    I would like to know the length in bytes of a table ("aCrypter" in this code of set-aside)


    -----
    1 public byte [] cryter (byte [] encrypt) {}
    2
    3 ecipher.init (key, Cipher.MODE_ENCRYPT);
    4 ecipher.doFinal (encrypt, (short) 0, (short) aCrypter.length, donneeCrypter, (short) 0);
    5
    6 return donneeCrypter;
    7     }

    -----

    FRENCH_TRAVELLER_64 returns an error on line 4 (it works with "1 (short)"
    There is a way to know the length of the table?

    concerning
    Alexis

    Published by: Alexis & amp; quot; the french & amp; quot; March 21, 2011 07:33

    Your problem is simple. Your input array is 1 000 bytes long. You encrypt it in another table that is also 1 000 bytes long. You use encryption that will be key data entry regardless of whether it's the aligned block already (padding method 2 IOS9797). When the encryption algorithm writes the last block in the target table there is a buffer overflow.

    2 possible solutions:
    1. Add 8 bytes to your target table. It is highly doubtful.
    2. only encrypt as much data as you need. You should have a few global buffers with a set limit. Maybe 512. You can use it for all your crypto. You must also pass in the actual length of the data in your buffer, not the length of the buffer. Java Card is more like C in this regard. Then use the length returned by doFinal for operations more.

    See you soon,.
    Shane

  • Problem with the length of locking in the strategy of password in the OAM

    Hello

    We are facing a problem with the configuration of length of locking in password policies in Identity Manager interface for our OAM configuration.
    Oracle 10 g version 10.1.4 Access Manager
    The user/policy store: ADAM Ldap [Microsoft ADAM 2003]

    After that block us a user in our LDAP after 5 attempts wrong, the values of both attributes in ADAM set updated to 5:
    oblogintrycount
    badPwdCount
    Also, I see that "oblockouttime" is updated with a unix timestamp.

    Now, we put the "lock duration" in the strategy of password as an hour. Thus, after 1 hour, the user must be unlocked in ADAM.
    However, after 1 hour when the user tries to connect, it gets the error an incorrect password has been entered for the user ID.

    When we check in ADAM, we find the value of "oblogintrycount" has indeed been reset. However, the value of "badPwdCount" will not reset and is always stuck at 5.
    If we set the two values of these attributes to 0, the user can connect again.

    Now, OAM should return two values of these attributes to 0, or is it only resets the oblix attributes?
    If it is the latter, is there a way to work around for this problem? Or we are doing something wrong here?

    Please let us know your comments.

    Thank you!
    Abhishek.

    OAM works only with the ob attributes * and not with the announcement badPwdCount attribute (ADAM). I think that for some reason, the strategies account and password of the ad is to be triggerred. Disable the password AD strategy and it will be Ok.

    I hope this helps. Let us know.

Maybe you are looking for