Can't use XML namespaces in datagrid?

I'm using Flex 3 beta 2. When try to bind a datagrid column
to an XML element with a namespace, it doesn't display any value.
if I try the same XML without a namepace, it works fine. For
example, in the simple code below, binding a column with a
no-namespace XML document as :
<mx:DataGridColumn headerText="First"
dataField="firstname"/>
work fine but for the XML case with namespace:
<mx:DataGridColumn headerText="First"
dataField="ex::firstname"/>
does not display the value.
The "ex" namespace is declared earlier in the code and I have
no problem accessing the values with other controls like text or
list box. I actually reported this as a bug but was wondering is
anyone has a work around or a similar cse that is working.
many thanks
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="600" height="244">
<mx:Script>
<![CDATA[
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLRequest;
public var ex:Namespace = new Namespace("
http://www.example.org/dummy");
[Bindable]
public var testXML:XML =
<root>
<person id="1" initials="JD">
<firstname>John</firstname>
<lastname>Doe</lastname>
</person>
<person id="2" initials="AB">
<firstname>Andy</firstname>
<lastname>Baldwin</lastname>
</person>
<person id="3" initials="CD">
<firstname>Charles</firstname>
<lastname>Darwin</lastname>
</person>
</root>
[Bindable]
public var testXMLNS:XML =
<root xmlns="
http://www.example.org/dummy">
<person id="1" initials="JD">
<firstname>John</firstname>
<lastname>Doe</lastname>
</person>
<person id="2" initials="AB">
<firstname>Andy</firstname>
<lastname>Baldwin</lastname>
</person>
<person id="3" initials="CD">
<firstname>Charles</firstname>
<lastname>Darwin</lastname>
</person>
</root>
]]>
</mx:Script>
<!-- Without a namespace, the column correctly display
the element values -->
<mx:DataGrid x="10" y="10" width="580" height="106"
dataProvider="{testXML.person}">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="@id"/>
<mx:DataGridColumn headerText="First"
dataField="firstname"/>
<mx:DataGridColumn headerText="Last"
dataField="lastname"/>
</mx:columns>
</mx:DataGrid>
<!-- With a namespace, the column do not display the
element values -->
<mx:DataGrid x="10" y="124" width="580" height="106"
dataProvider="{testXMLNS.ex::person}">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="@id"/>
<mx:DataGridColumn headerText="First"
dataField="ex::firstname"/>
<mx:DataGridColumn headerText="Last"
dataField="ex::lastname"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>

The strange thing is that we have datadrids all over this app that are formatted exactly the same way and this behavior never happens:
Here's another example:
<code>
<mx:DataGrid
                id="contactDataGrid"
                change="onItemSelected()"
                styleName="patientlist"
                width="50%"
                height="100%"
                editable="false"
                draggableColumns="false"
                resizableColumns="false" >
                <mx:columns>
                    <mx:DataGridColumn headerText="Name" dataField="FirstName" />
                    <mx:DataGridColumn headerText="Relationship" dataField="RelationshipToPatientTypeId"/>
                </mx:columns>
            </mx:DataGrid>
</code>

Similar Messages

  • Sender file adapter - Can I use *.xml for the file name

    Hi Gurus,
    I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
    The help.sap.com documentation says that we can use this naming convention.
    <b>
    &#9679;      File Name
    Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
    </b>
    I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
    Please let me know if you have the solution.
    Thanks
    Kalyan

    Murthy,
    Thanks for the reply.
    I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
    The status of the file is good.
    Where in the file adapter configuration I have to select 'Read-only'?
    The file adapter is working perfect with the exact name of the file.
    Thanks
    Kalyan

  • Can we use XML from Forms 6i?

    Can we use XML from Forms 6i?

    Did you mean: can you parse an XML document within Forms 6i? With the new Java importer support, you should be able to use the Oracle XML parser for Java to do this.

  • Can i use XML publisher in a c/s enviroment?

    Hi. I'd like to know whether it's possible to use XML Publisher in a C/S enviroment. We're still using reports and forms 6i in C/S. I'd like to know whether one can use the client version of XML to build custom reports (invoices for instance).
    Thanks in advance ...!

    Hi. my main concern is whether one can use XML publisher in a Client / Server enviroment. What this mean is :
    If it's possible not to use the middle tier: the J2EE container thing?. Put in other words, keep it simpler: just use a client that process XML data (probably using 10g facilities). Use the desktop client of XML publisher to access an Oracle Database or some xml files and use this to configure custom invoice reports for example. Our application is still on forms and reports 6i (C/S). Since there are certain limitations in customising the layout model on reports, i've been advised to consider XML publisher. So i don't really need to use forms or reports 6i with XML publisher. What i need is access to an Oracle Database from a desktop client (or have the DB generate an XML file) and be still C/S. I don't want the complexity of the three tier arquitecture yet.
    Best regards, Luis ...!

  • Can I use XML using XSD

    Hi,
    I know we can use XML as data server with DTD. Is it also possible to use XSD instead of DTD. If yes would the driver be same.
    Thanks
    Jasvinder Singh

    Got SAS error when used as "jdbc:snps:xml?f=C:\myxml.xml"
    (Try to insert null into a non-nullable column: column: NAME table: STAGI_ELEMENT in statement [insert into STAGI_ELEMENT (ELEMENTORDER, ELEMENTPK, NAME, REF, SCHEMAFK, SEQUENCEFK)  values (?, ?, ?, ?, ?, ?)]
    all these table name and columns comes by itselt , non are reffereing to my data. thn i tried some jugglery in changing the XSD. then it worked , but when i reserved though model window it showed me as
    SCHEMA     Table
    ELEMENT     Table
    SEQUENCE     Table
    COMPLEXTYPE     Table
    these are part of XSD elements definations.
    what i understand that use f=xml file and d=dtd file name or d=xsd file name.

  • Can not use XML API from Sun (JAXP)

    Some of my EJBs and Servlets uses XML API from Sun (JAXP) but after deployment the J2EE Container uses its own XML engine (Oracle XML Parser....) instead.
    I try to add JAXP library to my deployment file and test again but this problem still occurred.
    My question is how to add my libraries to J2EE Container and these libraries can be shared by any applications.
    Regards,
    Narong

    Please post this in the misc or xml newsgroup.
    vipuld shah wrote:
    i have an application which is running through javaWebStart
    if u start the application first time(through clicking on
    link of .jnlp file), it will download necessary .jar files
    & it will store those files in javaWebStart's cache.
    when u will visit second time, it will check files in cache
    with the files in server, if both are same, then it will not
    download but will use from its cache.
    it works fine for .jar files, but is it possible for some .xml
    files which are changing very rarely.--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • XML Namespace in DataGrid

    Hi,
    I am having troubles with a XML document. I have a xmlns tag,
    that screws up the datagrid. As soon as I take it out, it works,
    however my webservice responds with the xmlns tag... What's the
    best way to make flex ignore this namespace and display the data in
    the datagrid?
    Thanks,
    Florian

    Search the list for "default namespace" I posted an example
    recently.
    Tracy

  • How Can One use XML data into our Java Program

    I have an Java Program and an XML file contaning data. I want to parse the xml data and use into my Java Program. How can I do so.

    Check out the org.xml.sax.XMLReader class.

  • Xml regex help - can't use xml parser

    Hi,
    I receive xmls from a legacy system and use JAXB to parse these xml's into java objects.
    The xml looks roughly like this:
    <root-Tag>
       <general-Info-Tag-1>blah</<general-Info-Tag-1>
       <general-Info-Tag-2>blah</<general-Info-Tag-2>
       <general-Info-Tag-3>blah</<general-Info-Tag-3>
       <entry-Tag>
          <entry-info-Tag-1>info</entry-info-Tag-1>
          <entry-info-Tag-2>info</entry-info-Tag-2>
           etc...
       </entry-Tag>
       <entry-Tag>
          <entry-info-Tag-1>info</entry-info-Tag-1>
          <entry-info-Tag-2>info</entry-info-Tag-2>
           etc...
       </entry-Tag>
    </root-Tag>The xml contains a root tag.
    The root element contains some general info tags and entry tags.
    The entry elements contain some entry relevant info inside nested tags.
    It's important to note that this the xml is not nested anymore than the entry-info tags.
    My Problem:
    The info in the entry-info-tags sometimes contains illegal chars like <,>,& and is not wrapped
    properly by a CDATA section.
    So I need to find these elements and wrap them with <![CDATA[info]]> before using JAXB.
    How can I achieve this using Pattern/Matcher? I've been unsuccessful so far...
    Edited by: Samuelz on Jul 1, 2010 1:58 AM

    Heres what i've got so far:
    A helpful function to print out matches for regex on an input string:
    private static void printMathces(final String regex, final String input) {
         Pattern p = Pattern.compile(regex, Pattern.DOTALL);
         Matcher m = p.matcher(input);
         while (m.find()){
              System.out.println("found:");
              for (int i = 0; i < m.groupCount(); i++)
                   System.out.println(i + ":" + m.group(i));
    }My input string for testing:
    String s =
    "<entries>\n"+
         "<entry>\n" +
              "<TagName>sam&max</TagName>\n" +
         "</entry>\n" +
         "<entry>\n" +
              "<TagName><![CDATA[sam&max]]></TagName>\n" +
         "</entry>\n" +
    "</entries>\n";regex to get contents of TagName:
    printMatches("<(TagName)>((.*?))</\\1>+", s);
    found:
    0:<TagName>sam&max</TagName>
    1:TagName
    2:sam&max
    found:
    0:<TagName><![CDATA[sam&max]]></TagName>
    1:TagName
    2:<![CDATA[sam&max]]>regex to get content of TagName when its wrapped by CDATA
    printMathces("<(TagName)><!\\[CDATA\\[((.*?))\\]\\]></\\1>", s);
    found:
    0:<TagName><![CDATA[sam&max]]></TagName>
    1:TagName
    2:sam&maxI'm trying to build a regex that will find the contents of TagName without knowing if its already wrapped by CDATA and then replace these matches by something like <$1><![CDATA[$2]]</$1>
    How do I "combine" these 2 regular expressions?

  • Can I use XML in Oracle 8.1.7?

    Hi there,
    Just wanna know is it possible to select the data from the table to XML file? Or can I export the data as XML?
    Version: Oracle8i Enterprise Edition Release 8.1.7.4.0
    Please help!
    Thanks,
    Abraham

    Thanks.
    I found that there's a tool - PLSXML :
    http://otn.oracle.com/tech/xml/htdocs/plsxml/xml4plsql.htm

  • Using XML namespaces

    This question was posted in response to the following article: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e6c.html

    Can I reference the element only by the tag name without namespace prefix declared?

  • Use XML as data input for Crystal Report for Eclipse

    Hi,
    I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.
    Actually, I have searched the forum for the topic and found some related threads, but I still want to
    have some responses from crystal report experts on this issue.
    Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use
    crystal report to solve one of our business solutions. I have the following questions about the
    feasbility of this solution:
    (1). I need to specify data at runtime during report generation. I think using fixed data source
         (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report
         can accept XML as input to generate reports at runtime, then it will be perfect. Can CR
         use XML as data source as input?
    (2). Actually, one of our business requirements is to generate a letter. Can CR do a report
          layout such that a letter format can be achieved? If yes, would you let me know the
          report layout name?
    (3). We need to export the report into PDF format, I know CR can do PDF output. But can
          CR be controlled to export this into bytes stream? Or the PDF must be saved into a
          physical file?
    (4) If I need to learn more about CR, which book will you recommend?
    Thanks in advance for your advice,
    Raymond

    Thanks for the help Ted
    Works like a charm now.
    Or atleast my very very simple XML report works.
    Now I just need to play around and see what I can do and what I cant.
    I just want to make sure I understand how this works.
    1) I start of with a XML file (or URL or other data source as explained in your BLOG)
    2) I then have to create blank report which will have its data source set to my XML file.
        This report (rpt file) will always have its data source set to the original XML location
    Can this be dynamically changed, or does a new rpt file need to be created each time
        (or atleast I will have to re-run "CreateXMLInlineSchemaReport" from your BLOG)
    3) I can now use this rpt file as I would any other rpt file but its data source will be the original XML file
       - If I update or change the XML file, the report will dynamically reflect these changes.
    4) To change the data source, I need to recreate a new rpt file as per point 2. Which will now be blank.
    5) Filtering.... if I want to filter the XML data do I use normal parameters. If I want to filter the data before
        I pull it do I need to change anything. In otherwords if I have a XML file with 1000 records, but I only want say
    5 of them, how do I only pull those 5 without first pulling the whole 1000 records. Hope that makes sense.
    As I said I am very new to this so some things still fly over my head, but I do play around abit so hopefully
    will find what I am looking for.
    Cheers
    Darren
    PS any other links to info on creating and running reports of XML data sources would be greatly appriciated

  • Using XML DB to parse xmls

    Can i use XML DB to parse the XMLs and store their content in corresponding columns in the database table.If yes it would be helpful if i can have a look at some example besides this is it efficient to use xml db for this purpose.

    Hi,
    This is a good place to look [XML DB FAQ|http://forums.oracle.com/forums/ann.jspa?annID=278]
    Regards
    Peter

  • Database retrival using xml

    how can I retrieve data from database using xml?
    or else how can i connect to the database thru XML?

    Thanks for the reply !
    Suppose I have my data in SQL database.... So can I retrive that in xml?Well yes with caveats. OK:
    1.) Some very advanced databases allow you to retrieve XML directly from a database row, e.g. They send you an XML representation of the data.
    2.) A far more common way is to extract the data using any standard data access layer into Javabeans or POJO and then use a XML parser or a XSL stylesheet to convert the raw data into the XML format that you want.
    Or else another case is.....
    I'm storing my data in xml files... and after that if i need that same data in java programming , can I
    utilise that xml file??Yes, you can also in theory store the whole XML string and/or file in hte database (not normally recommended if you want a good relational database structure). Again you can then use XML parsing APIs to get data out of that XML stream and convert it to Java objects.
    Karianna
    PS: It sounds like you're attempting this for the first time, good on you! But I sugeest strongly that you take a tutorial or get sometihng like the OReillly Java and XML book. This is a very large topic......
    >

Maybe you are looking for

  • Synching Blackberry and Address Book which  just works: impossible dream?

    I've got a Blackberry 8200g which synchs well with my office Lotus Notes setup. I'd like to be able to synch the office contacts book (but not email) with my home Mac's Address Book, with synching of Calendar a bonus, but not crucial. PocketMac Synch

  • Can't install Appleworks 6.0.4

    I remember this happening before but I just can't remember what to do. Just reinstalled 10.2 on my Powerbook G3 and want to install Appleworks 6.0.4 but for some reason the installer wants me to install an OS9 version only. I distinctly remember buyi

  • HT201210 ios 6 update has left me with no signal on iphone 4s

    Apple automatically updated my iphone 4s with ios 6 when i turned it off. When I turned it back on my screen showed 'connect to itunes' and would not let me doing anything else so I plugged it into my computer and when onto itunes. itunes said it did

  • Multiple Youtube Videos, with buttons

    I am using a Shockwave Flash Object to load in my Youtube links. I have multiple buttons, all change the movie link of the player. However: 1. Once a movie is loaded the other buttons do nothing. 2. On any other computer, other than the one I am crea

  • Question about Authentication on item-level

    If you set authentication for a page item, am I correct in assuming that it does get processed (i.e. the value in the item can be used for example in the where-clause in a query), but it just does not get displayed?