presence of xmlns prevents the e4x XML data access

I was pulling my hair out trying simply to access data in a tag of an XML object. When I remove the attribute xmlns, it works, otherwise it doesn't. In the following code when I remove 'xmlns = http://xyz' list the data. What I need to add to keep this xmlns in the XML file and always fill the list box?
Thanks, JH

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" horizontalAlign = "center" >
< mx:Script >
<! [CDATA]
public var ydata:XML =
"< theResponse xmlns =" http://xyz "> "
< theReturn >
< > 1234 myId < / myId >
< > 2345 myId < / myId >
< > 5678 myOther < / myOther >
<-c >
< / theResponse >;
[]] >
< / mx:Script >
< mx:VBox width = "100%" height = "100%" horizontalAlign = "center" >
< mx:List width = "50%" dataProvider = "{ydata... myId}" height="20%"/ >
< / mx:VBox >
< / mx:Application >

Adding the following code resolves the problem:
namespace private myNS = "" http://xyz "; "
Use the myNS namespace.

Tags: Flex

Similar Questions

  • Prevent the entry of data into Custom 2 [no] after 2010 P8

    Hello

    I want to prevent the entry of data in Custom 2 [no] member after P8 2010 because we want to force to pick up the good Profit Center of the user.

    "To prevent the entry of data in C2 [none]
    If povYear > '2009' and povPeriod > 'P8' then
    HS. NoInput "C2 #[no].

    I also think about putting security on the [None] custom member 2 after we are done with reconciliation of the history, but I'm afraid the impact it would have on history

    Published by: user10931567 on July 16, 2010 11:46

    You cannot have any POV conditions in Sub NoInput. This and secondary input performed outside any user and don't have so any views that you can test. These subroutines execute immediateley at the application startup when no users are in the system, and when you load the rules file. For this reason, you must use the membership lists and simply scroll the POVs predetermined in these routines. You need to loop through the years, or in a more intelligent manner:

    Void NoInput

    HS. [NoInput ' Y #2010.P #Sep.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Oct.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Nov.C2 #[None "]
    HS. [NoInput ' Y #2010.P #Dec.C2 #[None "]

    HS. [NoInput ' Y #2011.C2 #[None "]
    HS. [NoInput ' Y #2012.C2 #[None "]
    HS. [NoInput ' Y #2013.C2 #[None "]
    HS. [NoInput ' Y #2014.C2 #[None "]
    etc.

    End Sub

    It is more well done in a loop fixed, but you can see the point that, at any time, you can use an "If...". Then' statement that tests any user POV.

    -Chris

  • How the filter E4x Xml data in a tile list?

    Hello!

    I am trying to use a search box for some xml data that I have in a tile list. Can someone point me in the right direction?

    Here is the list of tile:

    < mx:HTTPService id = "GetXmlService".

    resultFormat = "e4x".

    Fault = "getXMLFault (Event); »

    result = "getXMLResult (Event); »

    showBusyCursor = "true" / >

    < mx:TileList id = 'tileList '.

    dataProvider = "{GetXmlService.lastResult.image}" "

    itemRenderer = "CustomItemRenderer."

    columnCount = "4".

    columnWidth = "125".

    number of lines = '2 '.

    rowHeight = '150 '.

    themeColor = "haloSilver".

    verticalScrollPolicy = "on".

    itemClick = "tileList_itemClick (event); "backgroundAlpha ="0"height ="487"borderStyle ="none"="30"right ="10"left ="10"/ >

    And here is the XML data:

    <? XML version = "1.0"? >

    < Gallery >

    < user name image = "People1' rating ="5"="yes"/ >

    < / Gallery >

    Hello

    protected function searchFunc(item:Object):Boolean

    {

    var username:String = .@username (XML topic);

    var insession: String = .@insession (XML topic);

    username = (username.substr(0,ti.text.length)) .toUpperCase ();

    var chkUser:String = (ti.text) .toUpperCase ();

    If (username == chkUser & insession.toUpperCase () == "YES")

    Returns true

    on the other

    Returns false;

    }

    I changed the variable names to make it a little clearer. Now whenever you perform a search it will only show according to Yes (Yes). You can have nested If more more complex application but remember there is always need to be a return to true or false for each record (item).
    David.
  • The ODI API method to test the connection to the server XML-Data

    Hello

    I tried my hands on ODI SDK API and could create the physics/logic connections through it successfully.

    At the studio of ODI, for XML technology, when test us the data server-> JDBC-> connection test connection, corresponding to the xml specified in the JDBC url schema (xsd) the lorsque nous tester la connexion de données serveur-> JDBC-> tester la connexion, correspondant à la schema (xsd) xml spécifié dans l' url JDBC les tables tables are created.

    But I'm not able to get this functionality with the API in the SDK. It seems that JDBC connection is not tested when the code below is run

    connection settings

    myDataServer.setConnectionSettings (new OdiDataServer.JdbcSettings)

    "jdbc:snps:xml? d = C: / my_sample_xsd.xsd & s = ITEST..." »)) ;

    So basically I want to imitate the "Test Connection" feature using the API of the SDK. Currently, it creates Server XML data and physical schema but no tables in the database.

    Pointers?

    Thank you.

    I found the solution...

    test the connection to the jdbc url

    RemoteRuntimeAgentInvoker remoteRuntimeAgentInvoker = new RemoteRuntimeAgentInvoker (": http://application-tier server: port/odiagentname", "odiuser", "odipassword".toCharArray ());

    try {}

    remoteRuntimeAgentInvoker.invokeTestDataServer (myDataServer.getDataServerId ());

    } catch (InvocationException e) {}

    e.printStackTrace ();

    }

  • Operation of the sample XML data.

    Hello

    I use BI 11g Publisher.

    I'm creating a large data (50000 lines) report.

    I'm done with data sets, they work, and I could also get the example of xml data (I chose 'all' in the menu drop-down lines) for them.
    But when I try to create the new report, after checking the boxes for all data sets, loading... message appears and does not disappear.

    The reason for the problem may be the enormous amount of data?
    Because when I tried with the example of XML for only 100 lines, it has successfully loaded.

    I want that when reports are displayed, they are shown for all rows of the table...

    I have some more questions.

    1. the report displays data only for lines that are generated in the sample xml?

    2. If more data are added after reports are generated, new data will be included in the reports?

    3. what needs to be done, it is filed, I want the same reports of data from different sources (in my case this is the JNDI) but the same table definitions?

    Help, please

    Thanks in advance,

    ShuklaG

    When running the engine TONE pulls all matching records and renders on model and generate the report.

    with regard to other issues:

    1. the report indicates the complete data.

    2.Yes, the report shows with addition of data as well. It depends entirely on the SQL of data overall.

    3. change the data source (as long as datasource is already configured) at the level of datamodel regenerate the XML. If different data sources must be defined for the different sets of data, change the data source in data defination game save the datamodel, generate the xml data and save.

    Hope that it answers the questions.

  • Error specifying the spry xml data source?

    I have been using Spry in Dreamweaver XML data sets without any problem until I added the YUI calendar widget. After that, I get a message error "no entity expected to name reference (65: 23). Also, there is no evidence in the bindings panel. I have a Mac OS X, which I find very frustrating after being on a PC for 15 years. I can never find anything that I am looking help section.

    Here's what I tried to present this has not worked.

    1 removed the YUI extension

    2. remove the * file *.dat in the folder of configuration in the user library folder

    3 Rename the configuration folder in the user library folder

    4 copy the folder of my laptop configuration library works

    5. uninstalled and reinstalled Dreamweaver CS4

    I can code everything by hand, but it of a lot of your time and makes the software a virtual paper weight.

    I would be recognizing an advisor who may be offered.

    Preference for programs files Mac is in your user folder/Library/Preferences account.  The files that DW and other applications create end in .plist.  These files are created by Mac OS for many applications.  If you delete one, the operating system will be re - create another preferences file the next time the application opened.

    Also other files DW records during a re - install are saved only if you go through the uninstall process and enable this option.  It's the same for the Windows version.  Sometimes if there are strange errors you can contact Adobe support for more information.

    If not and you need to do a reinstall, I would recommend disabling everything first.  Then, by running the adobe CS # own tool.  Just type this phrase into Google and you'll find the best result for CS3 or CS4.

    Adobe - Adobe CS3Clean Script

    Adobe - Adobe CS4 clean Script

    Those more that simply remove the program.  They will remove all the items in the applications folder and shared in the user's library and the library of the system.  It is the only true way to make a re-install AFAIK.  But you will need to disable the function before doing so because it will erase all files and all the serial numbers of all the Adobe programs with this tool.

  • Can we prevent the BI administrator to access a column of presentation?

    I have a column sure presentation XX this single role that ABC should have access.

    I go to the permissions of the RPD for presentation XX column and:

    1 set allowed user to "no access."

    2. the value role ABC 'read '.

    3. set BI Admin 'no access '.

    4. all other roles are left to "Default".

    But when I create an analysis as an administrator, I can access the column of presentation.

    Is there a way to prevent the administrator access to / see a column of presentation during the creation of an analysis?

    Thanks in advance for your suggestions.

    Hello Jerry,.

    Try implementing the security level of data rather than object level. While this same OBIEE administrator can view the column, they will not be able to access the data. If you implement this DB level it's great, so admin can not even revert the changes or you can do it in SPR, but there is always a risk to reverse changes by admin.

    Thank you

    AJ

  • Unable to read Blob (BlobDomain) of the DB Xml data

    I'm reading a BLOB file in the database with the code below. However, I am facing 2 challenges - which i need your help...


    1. the data in a readable format, maybe I'm missing more or coding code somewhere (this is how the data is print - i¿½bi¿½...)

    2 throw an exception in the end

    Data types Blob appears as BlobDomain in the defination entity. My jdev is 11.1.1.5




    +{+
    +..............+

    oracle.jbo.domain.BlobDomain blobDomainXml = (BlobDomain) r.getAttribute ('Document');
    System.out.println ("XML Out put ="blobDomainXml); +
    +}+

    public getBlobObject() {} ViewObject

    return (ViewObjectImpl) findViewObject ("getBlobObject1");
    }



    Here's the exception after the call-

    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.ViewRowSetIteratorImpl.getViewObject(ViewRowSetIteratorImpl.java:238)
    at oracle.jbo.server.ViewRowSetIteratorImpl.getSyncLock(ViewRowSetIteratorImpl.java:178)
    at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1904)
    at com.stryker.gtc.view.bean.LoginPageName.getBlob(LoginPageName.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke (unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

    Well, it is possible that the BLOB data like this. You should check this by opening the table holding the blob in SQLDeveloper or using the browser of database JDEVs. Select the data tab and double-click a blob cell in the grid.
    So yu should get a pencil that lets you change the blog. Click it and you can see the blob as text or image. You must save the blob on your local disk and then use an editor to look into the file.

    That's what you should get from the show.

    Timo

  • How do you get the incremented xml data a statement?

    Hello

    I am importing data using xml and incrementing data that looks like this

    peopleObject.name0

    peopleObject.phone0

    peopleObject.image0

    peopleObject.name1

    peopleObject.phone1

    peopleObject.image1

    And now I'm trying to use this information using a statement but I don't know how I can add the number that is incremented at the end I tried to add a '+ I' like this

    for (var i = 0; i < = peopleTotal; i ++) {}
    var newMC:MovieClip = placeHolder.attachMovie ("peopleMovie", "peopleMovie_" + I, i);
    newMC._x = 100;
    newMC._y = is;
    newMC.peoplename.text = peopleObject.name + i;
    trace (peopleObject.name + i + "name + I")
    newMC.peopleimg = peopleObject.image + i;
    ago += newMC._height;
    }

    So no idea how can I access the data, it's in a variable incremented in a separate for the statement? Let me know if I'm not explaining enough good.

    Thank you

    Randy

    Use array notation:

    peopleObject ['name' + i] = everything which

    ["phone" + i] peopleObject = whateverelse;

    etc.

  • The Spry XML data Pages continue to increase the memory IE7 use

    Hello

    I am facing a recent issue when I built a data page spry with Dreamweaver cs3 and when you test the page using IE7 displays the data and after that I'm not doing something else opens the Manager of Windows taskbar and found shocking that the tab for iexplore.exe guard incrementing memory usage and as soon as I navigate to another page in the Web site or return to the previous state of the history by clicking aft IE7 button, it stops incrementing and shows a number of static Ko. It is not increment more.

    Please help me, I enclose the coding as below. I kept this code in my project directory web tomcat because it is only used by a Web server running and gives an error if security policy test it offline on the local computer.

    Thanks in advance.

    Anmol Saraf

    "mranmolsaraf" wrote in message
    News:f4oidv$k6f$1@forums. Macromedia.com...
    > ds1 var = new Spry.Data.XMLDataSet ("menubarXML.xml",
    > "specials/menu_item" {distinctOnLoad: true, useCache:false, loadInterval:100});}

    You reload the XML file every 100 milliseconds, I'm not surprised
    the memory usage increases...

    ----------------------------
    Massimo Foti, programmer web-rental
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com
    ----------------------------

  • selection column of the table xml data type

    Hello.
    I tried the following example with xml as column name data type
    create table emp_detail( empno number,ename varchar2(32),empdetails sys.xmltype)
    
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (1, 'satya', XMLTYPE('<NAME>
      <FIRSTNAME>SATYA</FIRSTNAME>
      <LASTNAME>SREE</LASTNAME>
      <LOC>SECBAD</LOC>
    </NAME>
    '));
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (2, 'jo', XMLTYPE('<NAME>
      <FIRSTNAME>JO</FIRSTNAME>
      <LASTNAME>REDDY</LASTNAME>
      <LOC>MYPR</LOC>
    </NAME>
    '));
    So, after that I tried this query to retrieve the State of an attribute data.
    SELECT a.empdetails.extract('//NAME/text()').getStringVal() AS "Table Name"
    FROM   emp_detail a
    WHERE  a.empdetails.existsNode('/NAME')  = 1;
    But those who above indicates no record...
    Why?


    Thank you
    SQL>  SELECT a.empdetails.extract('//NAME/FIRSTNAME/text()').getStringVal() AS "first_name",
      2     a.empdetails.extract('//NAME/LASTNAME/text()').getStringVal() AS "last_name",
      3     a.empdetails.extract('//NAME/LOC/text()').getStringVal() AS "loc"
      4     FROM emp_detail a
      5    WHERE a.empdetails.existsNode('/NAME')  = 1;
    
    first_name           last_name            loc
    -------------------- -------------------- --------------------
    SATYA                SREE                 SECBAD
    JO                   REDDY                MYPR
    
  • OWB 11 GR 2: prevent the designer of data written to the source of the oracle

    Hello

    After having implemented a model of metadata Oracle source I can start a deployment that trying to write the changes to the source. Although I wonder if I do not know at this, I can ruin my source confirming this.

    11 GR 2, I was not able to score so the source model. I was able to create a user with limited rights on the schema of the source database.

    Question a: what are the minimum security for a user of the source settings?
    Question b: is there no way to eliminate build and deploy options for a source of Oracle?

    Thank you
    Georg

    Published by: georgo on 27.04.2011 10:35

    Published by: georgo on 27.04.2011 11:02

    Hi Georg

    You can configure the module and set the property to "Déployable" false. This will disable any type of deployment.

    See you soon
    David

  • The Config.xml file access problems

    Hello

    I think that my application has problems with privileges to connect pages that I try to load when tested in a device emulator does not load then in ripple that they don't. I also tried the same opening with the browser of the emulator and work pages. Could someone help me?

    Here is my config:


    http://www.BlackBerry.com/ns/widgets"xmlns =" http://www.w3.org/ns/widgets">".

    subdomains of https://Maps.googleapis.com"="true"/ >

    subdomains of http://www.Auditorio.com.mx"="true"/ >

    subdomains of http://www.bitacoradelauditorio.com"="true"/ >

    TCP_WIFI

    SDM

    BIS-B

    TCP_CELLULAR

    WAP2

    WAP

    <>ermissions >

    <>Ermit > read_geolocationermit >

    ermissions >

    I have the same problem.

    In my case, the problem seems to be in simulators and not the app, it works and does not react like that in phones.

    the only fix autour, I found was to disable the old network (uncheck "on the cover") and make a new one which is a 3g network...

    seems to fix the problem in my case, but I have to do it every time I start the Simulator

  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • Users of readers to save the xml data file

    Hello
    We can e-mail through the form xml data file without its extension drive. It is very good. Instead of emailing, I want just to save the xml data file in my local system.
    What is the syntax to get it? To send email, I usually create a "submit" button and the area of the submittoURL write us mailto:[email protected].
    What to write to save it on the local computer instead of emailing? I tried saveto: C:\NewFolder or fileto:C:\NewFolder. Nothing works. I think I'm missing the good syntax here.
    I know its possible by RE the pdf, you can get using savedataXML(). I want to achieve this goal without the form.
    Thanks in advance,

    Chaitanya

    The best you can do is set up a submitForm action and uses a type mailto URL. This will prompt the user to attach to an e-mail message using their email client or save it to a file.

Maybe you are looking for