Not missing NULLs from XML output

I create XML output for the table having some NULL values, like
with t as
select 'A' field1 , 1 field2 from dual
union
select 'A' field1 , null field2 from dual
union
select 'A' field1 , 3 field2 from dual
union
select 'B' field1 , null field2 from dual
select
XmlElement("TOP",
XmlAgg(
XmlElement("DOWN",
XmlForest(field1, field2))))
.extract('/*').getstringval() xml_string
from t
XML_STRING
<TOP>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>1</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>3</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
  </DOWN>
  <DOWN>
    <FIELD1>B</FIELD1>
  </DOWN>
</TOP>How can I avoid missing nulls from XML? I.e. I need this:
<TOP>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>1</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2></FIELD2>
</DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>3</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>B</FIELD1>
    <FIELD2></FIELD2>
  </DOWN>
</TOP>Thanks!

Is this fine?
sql> with t as
  2  (
  3  select 'A' field1 , 1 field2 from dual
  4  union
  5  select 'A' field1 , null field2 from dual
  6  union
  7  select 'A' field1 , 3 field2 from dual
  8  union
  9  select 'B' field1 , null field2 from dual
10  )
11  select
12  XmlElement("TOP",
13  XmlAgg(
14  XmlElement("DOWN",
15  xmlelement(field1,field1),
16  xmlelement(field2,field2)
17  )))
18  .extract('/*').getstringval() xml_string
19  from t;
XML_STRING
<TOP>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>1</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2>3</FIELD2>
  </DOWN>
  <DOWN>
    <FIELD1>A</FIELD1>
    <FIELD2/>
  </DOWN>
  <DOWN>
    <FIELD1>B</FIELD1>
    <FIELD2/>
  </DOWN>
</TOP>

Similar Messages

  • RFC problem: could not get functionname from XML requst (sic)

    I'm developing an interface that attempts to call a receiver RFC on an SAP 4.6c system.  It's a very small simple interface, and it's all working until it tries to call the RFC.  The error is
    Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara
    I've created an RFC channel, which is green in the adapter monitoring.  The RFC imports without a problem, and appears in my interface mapping.  My mapping program converts to the RFC message type (as evidenced in sxmb_moni.  I have a receiver agreement referencing the interface mapping, which must be working as the mapping is called. 
    Could anyone point me to what else I could check?  I saw a post about the same error message, where the respondent found something in the logs which helped them  Could you expand on what you found, and in which log please?  Any pointers as to which logging options I could switch on and check would be gratefully received.
    Regards
    Alan Graham

    Thanks for the responses.
    I set up a communications channel of type RFC, which is
    showing green in the adapter monitor.  If I deliberately
    break it, eg by changing the password, the adapter shows
    as red in the monitor.  I assume therefore that the
    adaptor settings are correct.
    The XML going to the adapter looks correct AFAIK.  My problem is that I don't know enough about the requied XML to know if what I'm seeing in the logs is sufficient.  In SXMB_MONI, in the 'call adapter' section of a failed message, the outbound binding includes
    <SAP:ToInterfaceNamespace>urn:sap-com:document:sap:rfc:functions</SAP:ToInterfaceNamespace>/code]
    Also, the interface determination SOAP header, in the MAIN section includes
    [code]<SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>D04</SAP:Service>
      <SAP:Interface namespace="urn:sap-com:document:sap:rfc:functions">Z_MPU_3PSCE_FREIGHT_UPLOAD</SAP:Interface>
      </SAP:Receiver>
    These are the correct values for the RFC name and the namespace, AFAIK.
    I'm using an interface mapping (which uses and ABAP class as the mapping program) which references the interface of the RFC.  The logs tell me this works, ie, the class is called and the resulting XML appears in the payload of the response.
    Alan

  • Manipulating "Exclude from XML Output" property at runtime

    Hi !
    Here's one for reports 10g
    Is there a way/function to manipulate the "Exclude from XML Output" property for attributes at runtime (say, in the after param form trigger ?)
    The srw.package contains functions to manipulate the "other 4" XML properties of an attribute, but not this one... ?
    Any help greatly appreciated...
    Cheers,
    Jens Rettig

    Hi,
    I posted a solution for this in the thread: Dynamically show/hide columns for DelimitedData output
    Thanks.
    Paul
    (If the link doesn't work then I re-post the solution from that thread).

  • Oracle Reports exclude from xml output

    Hej,
    How we could hide xml column or group programmatically in reports? manually we do this by setting
    exclude from xml output=NO
    But dont know how to do this dynamically.
    7Z

    Anyone who knows?

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • How to remove default comment from XML output

    Hi,
    I have a requirement to generate the XML report with XML output(Not PDF). Everything is working fine except I am getting one comment line "<!--Generated by Oracle Reports version 6.0.8.28.0--> which is not required and I want to remove this line. This report will be run through Oracle Apps 11i.
    Thanks.

    Hi,
    There is option to change the "Prolog Value" but nothing is there to remove the comment.
    Thanks

  • Flash does not load information from xml on DMM system

    I have flash file load information from xml file. flash file and xml file i push on IIS server. In presentation i add URL of flash file but flash file not show information.
    I try run URL direct from DMP is ok.
    Flash file write for Flash litte 3.1 and use action script 2.0. DMS system test with DMM version is 5.3 and DMP 4310G.
    Please point where the error and the notes on  flash file use with DMM for my programmer.
    Thanks!

    Hi guy's
    I think I maybe faced with a similar issue.
    I've been working on a flash build that pulls in xml feeds. Everything I have works great so far but I've only been able to test as standalone(Desktop) and in the browser.
    When I tested standalone(Desktop) I did get the flash security popup but once I granted access it worked fine.
    I've never used DMP 4310 before. At this point in time I dont have access to it either. All I know is that my swf will be put on it.
    Can anyone tell me how the DMP 4310 will handle the flash security popup?

  • Could not retrieve attributes from XML document loaded in JDOM

    Hi All,
    I am having difficulty reading and parsing the following XML City.xml document using Saxon parser and XPath:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/ /EN" "http://www. w3.org/TR/ xhtml1/DTD/ xhtml1-transitio nal.dtd">
    <html xmlns="http: //www.w3. org/1999/ xhtml">
        <head>
            <meta http-equiv=" Content-Type" content="text/ html; charset=UTF- 8" />
        </head>
        <body>
            <div id="content">
                <table class="sresults">
                    <tr>
                        <td>
                            <a href="http:/ /www.abc.com/areas" title=" Hollywood , CA "> hollywood </a>
                        </td>
                        <td>
                            <a href="http:/ /www.abc.com/areas" title=" San Jose , CA "> san jose </a>
                        </td>
                        <td>
                            <a href="http:/ /www.abc.com/areas" title=" San Francisco , CA "> san francisco </a>
                        </td>
                        <td>
                            <a href="http:/ /www.abc.com/areas" title=" San Diego , CA "> San diego </a>
                        </td>
                    </tr>
            </body>
    </html> Below is the code snippets that illustrates how I tried to retrieve the attribute title of <a>:
    1. BufferedReader incomingbrXml = new BufferedReader(new FileReader("C:\City.xml"));
    2. SAXBuilder saxBuilder = new SAXBuilder(false);
    3. Document jdomXmlDocument = saxBuilder.build(incomingbrXml);4. String city_content = null;
    5. XPath cityXPath = XPath.newInstance("/ns:html/ns:body/ns:div[@id='content']/ns:table[@class='sresults']/ns:tr/ns:td/ns:a/@title");
    6. java.util.List cityList = cityXPath.selectNodes(jdomXmlDocument);
    7. Iterator city_iterator = cityList.iterator();
    8. while (city_iterator.hasNext()) {
    9.     city_content = ((org.jdom.Attribute)city_iterator.next()).getValue();
    10.   if (city_content.length() != 0) {
    11.       System.out.println("Area Url:" + area_content.toString()); }
    12. } I would like to get the following output:
    Hollywood , CA
    San Jose , CA
    San Francisco , CA
    San Diego , CA
    Instead, the jdomXmlDocument is made up of only the first few lines of City.xml and nothing on the body when debugging in Netbeans and nothing in cityList. I am running this program online so there would not be an issue with entity resolver that took place on line 2.
    I am running JDK 1.6.0_17, Netbeans 6.7, JDOM 1.1, Saxon9.1 on Windows XP platform.
    Any assistance would be appreciated.
    Thanks in advance,
    Jack.

    Hi,
    Correction to line 11 - System.out.println("City title:" + city_content.toString()); instead.
    Thanks,
    Jack

  • Script in template using SOAP: Works in designer preview, not in rendering from LC Output

    I did a script in a livecycle ES2 Template in the event layout::ready. It call a web service using the SOAP method to get a base64 image from another server.
    The code is (the service called is fake, but it is not the problem):
    var sOptions = "";
    var imageType="JPEG";
    var input= {imageType:sItype,
            options:sOptions};
    var svcResponse;
    try
         var oListURL = "http://someserver.somedomain.com:8080/service?wsdl";
         SOAP.wireDump = true;
         var service = SOAP.connect(oListURL);
         //call the service
         svcResponse = service.getImageBinary(input);
         //transfer image in grahic object
         this.GraphImage.rawValue=svcResponse;   
    }catch(e){
         svcResponse = e.message ;
         root.PaginaUNO.TextField1.rawValue = e.message;
    This script WORKS PERFECTLY using the Livecycle Designer Preview. The image is got and correctly showed.
    When I want to render the PDF via Livecycle Server (calling the output service), I got an error:
    "SOAP is undefined."
    The server on which runs Livecycle has Acrobat 9 pro installed; is the same server on which I run Workbench and Designer. It seems that, trying to execute the script it misses something, maybe a class or something where is declared the SOAP object.
    Can someone give me a hint, please?

    Hi,
    I think the LC Output does not use Acrobat to render XDP's and the LC Output does not have a SOAP object and this is why I think you are getting the error.
    I can't think how to work around this, other that to try and make the code only run once it is opened in the Acrobat host and not on the server while it is being rendered.
    Regards
    Malcolm

  • SAP special german characters(umlaut) like ü, ö, ä not displayed properly in XML output

    Hello Team,
    Here we are facing issues while converting SAP tables data to XML file.
    the description is not converting properly for the special German characters like ü, ö, ä.
    Actual output should be :Überprüfung nach § 29 STVZO
    Output Displayed :Ã#berprüfung nach § 29 STVZO
    Can you please look into and help me in this to get correct output .
    Thank you.

    Hi,
    Unicode or Non-Unincode System ?
    Displayed where ? SAPGUI ? Print Preview ? Spool-Display ?
    And how is the XML file written ?  OPEN DATASET ? BAPI ?
    At all of these stages it might be either that it is only a display system, like the selected display CHARSET in SAPGUI, when it is a non-unicode system, or simply not coded correctly like OPEN DATASET without specifying the cdepage when necessary.
    And it might even be, that even "displaying" the XML File is simply done with the incorrect codepage while the data inside the file is correct.
    If you are on Windows, you might even face funny results when saving a simple textfile from notepad with ANSI/DOS and both Unicode variants and then go to CMD.EXE ans simply "type" the content.
    All 4 results will be different, allthough notepad will display the same stuff.
    So first of all, makes sure which codepage is relevant at all stages from DB-table to "display"
    - DB-Charset
    - SAP system type (unicode/non-unicode)
    - SAP codepage (1100 / 410x )
    - crosscheck the test from report RSCPINST
    - Codepage on Windows running SAPGUI
    - Selected codpage for Sapgui
    Good hunting
    Volker

  • Suppress Row Num from XML output

    Hi there,
    Is possible to generate the output following without using style sheet ?
    a) remove <ROW num="10">
    b) to change the tag Code <COMM NULL="TRUE"/> to <COMM><COMM/>
    Thanks
    Jeremy Lee
    =====
    declare
    queryCtx DBMS_XMLquery.ctxType;
    result CLOB;
    begin
    delete from temp_clob_tab;
    commit;
    result := empty_clob();
    -- set up the query context...!
    -- queryCtx := DBMS_XMLQuery.newContext('select * from testxml');
    queryCtx := DBMS_XMLQuery.newContext('select empno ,ename,comm from emp WHERE comm is null');
    -- modify encoding format
    DBMS_XMLQuery.setEncodingTag(queryCtx, '"WINDOWS-1252"');
    --DBMS_XMLQUERY.setencodingtag(queryCtx 'UTF-8');
    -- DBMS_XMLGEN.SETNULLHANDLING(queryctx,2);
    dbms_xmlquery.SETROWSETTAG(queryCTX,'ROOT');
    dbms_xmlquery.usenullattributeindicator(queryCtx, true);
    -- get the result..!
    result := DBMS_XMLQuery.getXML(queryCtx);
    INSERT INTO temp_clob_tab VALUES(result);
    -- Now you can use the result to put it in tables/send as messages..
    ShowClobContents(result);
    DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
    end;
    ================================================================
    | </ROW>
    | <ROW num="9">
    | <EMPNO>7902</EMPNO>
    | <ENAME>FORD</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | <ROW num="10">
    | <EMPNO>7934</EMPNO>
    | <ENAME>MILLER</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | </ROOT>

    Hi Ramesh,
    Thanks for your reply. If I tried using DBMS_XMLGEN, I get the following output which is closer to the output that I want. How do i show the null value as <COMM></COMM> ?
    Thanks
    Regards
    Jeremy Lee
    DECLARE
         ctx DBMS_XMLGEN.ctxHandle;
         xml CLOB;
    BEGIN
    delete from temp_clob_tab;
    commit;
         ctx := dbms_xmlgen.newcontext('select * from emp where comm is null');
         dbms_xmlgen.setrowsettag(ctx, 'Root');
    dbms_xmlgen.setrowtag(ctx, 'ROW');
    DBMS_XMLGEN.SETNULLHANDLING(ctx,2);
    -- DBMS_XMLGEN.setEncodingTag(ctx, '"iso-8859-1"');
    -- dbms_XMLGEN.usenullattributeindicator(ctx, true);
    xml := dbms_xmlgen.getxml(ctx);
    INSERT INTO temp_clob_tab VALUES(xml);
         -- dbms_output.put_line(substr(xml,1,1000));
    DBMS_XMLGEN.closeContext(ctx);
    END;
    ===================================================================
    <ROW>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    <COMM/>
    <DEPTNO>10</DEPTNO>
    </ROW>
    Regards
    Jeremy Lee

  • Why does InDesign 5.5 not recognizing tags from text output from Filemaker 11?

    We just upgraded all of our computer and servers at the office. We were using OS 9 operating system with QuarkXpress and Filemaker 5. In the process of deciding on the route to go with upgrades we decided to go ahead and switch to InDesign instead of continueing with Quark.
    The problem is that we run a database inside of Filemaker Pro and we output text into our Quark files well now with InDesign I can not for the life of me figure out why our tags are not being recognized by InDesign. I have reviewed every option when placing the text file and have not seen anything that will fix it. In Quark when you import text you have the option to click a box and it will let you import with style sheets. I have set up the same paragraph styles in InDesign and it still doesn't work.
    Does anybody have any clue what might be happening? Any help would be appreciated, I need something to just get started on trying to fix this issue. It is a major issue due to the fact that I work for a classifieds newspaper and I need this text weekly. I have spent way too much time on this already and I am still in the same boat as I was when I started.
    Thank you in advance for your help!

    One assumes there is some existing software generating this stuff.
    John is absolutely correct when he says that it would be a simple set of find/replace operations; if you are savvy enough to be able to get a total count of the number of tags used in your output, and if you can automate a single find/replace operation, then you can figure out how much it costs you to roll your own Quark-tags-to-Indy-tags solution and compare it against the cost of the software.
    I was really referring more to the abstract. In the concrete, I guess I assumed we would find whatever was generating the XPress tags and change it to generate InDesign Tagged Text. It's just a matter of finding a few static strings and changing them... it's not like there are any changes to *logic*...
    Personally, I'm a strong believer in Fixing It Right. yeah, $400 is cheap, but it's a lame patch to the problem. You shouldn't be using XPress Tags in InDesign, might as well move your automation over to doing it the InDesign way. (Unless, of course, there's an advantage to XPress Tags. And there are a few, as David's article points ut.)
    However, I can't tell if he's being genuine or not; if you didn't notice that Quark tags and Indy tagged text are not the same format, then you probably don't have the in-house scripting capability to write your own converter. If you have that expertise in-house, then go for it. For my own part, I am such a slow scripter that paying someone else a few hundred bucks will invariably be cheaper than writing my own. Of course, if I didn't have any money to spend then I'm sure that I'd become a faster scripter quire rapidly.
    I was serious, but I wasn't advocating a converter. That adds an extra step to the workflow, and it's also ugly. Just fix whatever makes the XPressTags to do IDTT instead.
    There's something funny about the guy from the non-profit telling other people to spend money, I can't quite put my finger on it though :-).

  • Master page fields not displaying data from XML file

    Hi,
    For some reason if I a add a field on the master page, when previewed it does not display the xml data assigned to the field.
    I have a work around, but it looks messy and would prefer to resolve the problem correctly.
    My work around is to create another field with the same name in the "Design view" layout, and change the presence to invisible. I don't even have to link it to the xml data, simply select Global as the default binding.
    Any ideas what I have done wrong, I assume it's a simple setting somewhere but I have no idea what it is.
    Thanks
    Russell

    If there, try removing the $. at the beginning of the binding that gets puts there if you select the item from the pop up list.
    I have a text field that is read only and bound without the $. that was working fine for displaying data. I have a drop down that had the $. and was not saving. I removed the $. and now it is getting saved to the XML. However, it does not display on the next render of the form.

  • Popup datagrid not populating data from xml

    hey guys,
    im having trouble creating a datagrid within a popup. i
    created the datagrid on a normal panel and everything worked fine.
    then i tried to recreate it within a popup and now im having
    trouble getting the xml data onto the datagrid. i think the problem
    is that the xml is not a variable within the function but ive tried
    multiple methods and i have not gotten it to work.
    whenever it runs it just says TypeError: Error #1009: Cannot
    access a property or method of a null object reference. yet when i
    remove the dg.dataProvider = list.michigan.venue; line the datagrid
    works but there is no data obviously... how do i define the xml
    dataprovider within the function??? also, i need the name of the
    state to be dynamic... how could i make it so that the datagrid
    uses the selected state within the xml file? i imagine i would be
    passing a variable through the function that would be called when i
    select the path within the xml. THX GUYS!
    <venuelist>
    <michigan>
    <venue>
    <name>Location Name</name>
    <address>This is the address</address>
    <city>Detroit</city>
    <state>MI</state>
    <zip>48209</zip>
    <phone>(313)555-5555</phone>
    </venue>
    </michigan>
    <illinois>
    <venue>
    <name>Location Name</name>
    <address>This is the address</address>
    <city>Detroit</city>
    <state>MI</state>
    <zip>48209</zip>
    <phone>(313)555-5555</phone>
    </venue>
    </illinois>
    </venuelist>
    here is the code im using to get the xml file...
    <mx:XML id="list"/>
    <mx:HTTPService id="getXML" url="VenueList/list.xml"
    resultFormat="e4x" result="list = XML(event.result);"/>
    here is the code for the popup
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.collections.ArrayCollection;
    import mx.containers.Panel;
    import mx.controls.Button;
    import mx.controls.DataGrid;
    import mx.controls.dataGridClasses.DataGridColumn
    import mx.managers.PopUpManager;
    private var panel:Panel;
    private function init():void {
    var dg:DataGrid = new DataGrid();
    var dgc:Array = dg.columns;
    var d1:DataGridColumn = new DataGridColumn;
    var d2:DataGridColumn = new DataGridColumn;
    var d3:DataGridColumn = new DataGridColumn;
    var d4:DataGridColumn = new DataGridColumn;
    var d5:DataGridColumn = new DataGridColumn;
    var d6:DataGridColumn = new DataGridColumn;
    dg.width = 638
    dg.height = 163
    dg.dataProvider = list.michigan.venue;
    d1.width = 150;
    d1.headerText = "Venue Name";
    d1.dataField = "list.michigan.venue.name";
    d2.width = 150;
    d2.headerText = "Address";
    d2.dataField = "address";
    d3.width = 100;
    d3.headerText = "City";
    d3.dataField = "city";
    d4.width = 50;
    d4.headerText = "State";
    d4.dataField = "state";
    d5.width = 50;
    d5.headerText = "Zip";
    d5.dataField = "zip";
    d6.width = 100;
    d6.headerText = "Phone";
    d6.dataField = "phone";
    dgc.push(d1);
    dgc.push(d2);
    dgc.push(d3);
    dgc.push(d4);
    dgc.push(d5);
    dgc.push(d6);
    dg.columns = dgc;
    panel = new Panel();
    panel.title = "Here are our venues:";
    panel.width = 658;
    panel.height = 203;
    panel.addChild(dg);
    private function closePopUp(evt:MouseEvent):void {
    PopUpManager.removePopUp(panel);
    private function createPopUp():void {
    PopUpManager.addPopUp(panel, this, true);
    PopUpManager.centerPopUp(panel);

    hey guys,
    im having trouble creating a datagrid within a popup. i
    created the datagrid on a normal panel and everything worked fine.
    then i tried to recreate it within a popup and now im having
    trouble getting the xml data onto the datagrid. i think the problem
    is that the xml is not a variable within the function but ive tried
    multiple methods and i have not gotten it to work.
    whenever it runs it just says TypeError: Error #1009: Cannot
    access a property or method of a null object reference. yet when i
    remove the dg.dataProvider = list.michigan.venue; line the datagrid
    works but there is no data obviously... how do i define the xml
    dataprovider within the function??? also, i need the name of the
    state to be dynamic... how could i make it so that the datagrid
    uses the selected state within the xml file? i imagine i would be
    passing a variable through the function that would be called when i
    select the path within the xml. THX GUYS!
    <venuelist>
    <michigan>
    <venue>
    <name>Location Name</name>
    <address>This is the address</address>
    <city>Detroit</city>
    <state>MI</state>
    <zip>48209</zip>
    <phone>(313)555-5555</phone>
    </venue>
    </michigan>
    <illinois>
    <venue>
    <name>Location Name</name>
    <address>This is the address</address>
    <city>Detroit</city>
    <state>MI</state>
    <zip>48209</zip>
    <phone>(313)555-5555</phone>
    </venue>
    </illinois>
    </venuelist>
    here is the code im using to get the xml file...
    <mx:XML id="list"/>
    <mx:HTTPService id="getXML" url="VenueList/list.xml"
    resultFormat="e4x" result="list = XML(event.result);"/>
    here is the code for the popup
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.collections.ArrayCollection;
    import mx.containers.Panel;
    import mx.controls.Button;
    import mx.controls.DataGrid;
    import mx.controls.dataGridClasses.DataGridColumn
    import mx.managers.PopUpManager;
    private var panel:Panel;
    private function init():void {
    var dg:DataGrid = new DataGrid();
    var dgc:Array = dg.columns;
    var d1:DataGridColumn = new DataGridColumn;
    var d2:DataGridColumn = new DataGridColumn;
    var d3:DataGridColumn = new DataGridColumn;
    var d4:DataGridColumn = new DataGridColumn;
    var d5:DataGridColumn = new DataGridColumn;
    var d6:DataGridColumn = new DataGridColumn;
    dg.width = 638
    dg.height = 163
    dg.dataProvider = list.michigan.venue;
    d1.width = 150;
    d1.headerText = "Venue Name";
    d1.dataField = "list.michigan.venue.name";
    d2.width = 150;
    d2.headerText = "Address";
    d2.dataField = "address";
    d3.width = 100;
    d3.headerText = "City";
    d3.dataField = "city";
    d4.width = 50;
    d4.headerText = "State";
    d4.dataField = "state";
    d5.width = 50;
    d5.headerText = "Zip";
    d5.dataField = "zip";
    d6.width = 100;
    d6.headerText = "Phone";
    d6.dataField = "phone";
    dgc.push(d1);
    dgc.push(d2);
    dgc.push(d3);
    dgc.push(d4);
    dgc.push(d5);
    dgc.push(d6);
    dg.columns = dgc;
    panel = new Panel();
    panel.title = "Here are our venues:";
    panel.width = 658;
    panel.height = 203;
    panel.addChild(dg);
    private function closePopUp(evt:MouseEvent):void {
    PopUpManager.removePopUp(panel);
    private function createPopUp():void {
    PopUpManager.addPopUp(panel, this, true);
    PopUpManager.centerPopUp(panel);

Maybe you are looking for

  • Connecting an old monitor to an iMac G5

    I want to use an older Apple Color Display (1992; Serial #SG240LOCE04) as a second monitor with my G5 iMac. The old connector uses 15 pins in two rows of 7 and 8, repectively. The adaptor I bought from Apple on-line has the 15 pins but in three rows

  • Dynamic WebService client within a WebService Handler

    We have a WebService running on WebLogic 10.3 that has a handler that contains a Webservice client that connects to a set of IIS WebServices. The client is called with code like this: QName qname = new QName("http://www.company.com/Webservices/", "Us

  • Problem with non-stop looping

    This file has been supposedly changed from As2 to As3. It seems as if it used to stop when I first got it. But the links didn't work. When I followed troubleshooting protocols, it started looping non-stop. Please help. I can't seem to attach the flv

  • Can i create different file for my movies

    I need to create diferent file for movies, but i don't know how to do it

  • GR value different

    Hello, I have come across a PO with X qty at the cost of 17.81 USD. We have made GR against I/deliveries but I found that all the GR values are different. e.g. While GR has been done for 100 CAR (PO cost is 17.81 USD), it should come as 1781 USD.  Bu