Create controls dynamically based on XML file

Hi All,
I am very new to Flex environment. I am trying to integrate FLEX with ASP.net for better UI interfacing.
May I know if is it possible to draw fields (Text boxes, option buttons, etc) on the Flex dynamically using a XML file at runtime.
What my expectation is, if I have an XML file with the filed names and type, can the Flex draw them on the front end UI?
Please  let me know your thoughts.
Naveen

Is there possible to have an portlet that can be enlarged?Yes. You can maximise a portlet
And is there possible if I have a .php file, and then I want to create a portlet based on that .php fileNot directly.
If you are going to run the PHP file in its own machine then you could use a browser or clipper portlet. If you want to run the PHP file on the JVM itself, I believe there are some commercial products that let you do this (then its equivalent to a JavaServlet). This could then be included by any dummy JSP and you could use a plain jsp portlet . however you wqould have to be careful how you generate links within the PHP file (because you'd have to mimic the way BEA tags behave) .
never tried this and if you have few PHP pages then you could probably rewrite to java.

Similar Messages

  • How to generate controls dynamically based on value stored in database using mvc4?

    In my database, i have a field called control_ids corresponding to  text box, dropdownlist, radiobuttonlist etc. My goal is to
    create controls dynamically based on value of control_id-field in table. Anybody please help me how to create the controls dynamically in MVC 4 for this scenario.

    In your view you could do something like that:
    foreach (var field in Model.FormStruture.fields)
    <div class="editor-label">
    <label for="@field.Name">@field.Descricao</label>
    </div>
    <div class="editor-field">
    <input class="text-box single-line" id="@field.Name" name="@field.Name" type="text" value="@field.Valor" data-rules-required="@field.Mandatory.ToString().ToLower()" data-rule-number="@field.Tipo.Equals(SiB.OCR.Documentos.Modelo.TipofieldDocumento.Numerico).ToString().ToLower()" title="@field.Descricao" />
    </div>
    if (!String.IsNullOrEmpty(field.Format))
    @:<script type="text/javascript">$("[email protected]").mask("@field.Format");</script>

  • CME not creating custom SEP MacAddress .cnf.xml files, using XMLDefault.cnf.xml for phones

    Hello, I have CME 8.6 installed on two 2851s and before going into production, I am testing a few phones.
    One of my 2851's is creating cnf.xml files for each phone using SEP<Mac address>.cnf.xml and the other one will not and the phones keep booting up with XMLDefault.cnf.xml.
    I've looked at both configurations and I can't see what the difference is. Other than not being able to create the SEP<MacAddress>.cnf.xml files, the phones appear to be loading up fine. 
    One difference I see is the "its" directory is located on system: on the one that creates the cnf files, and the "its" directory is located in flash on the one that doesn't, although I don't know how that matters.
    Below is the one that doesn't create the SEP<MACADDRESS>.cnf.xml files for phones:
    Current configuration : 2657 bytes
    ! Last configuration change at 02:12:45 UTC Wed Oct 8 2014
    version 15.1
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname RtrPod2
    boot-start-marker
    boot-end-marker
    no aaa new-model
    no network-clock-participate wic 3
    crypto pki token default removal timeout 0
    dot11 syslog
    ip source-route
    ip cef
    ip dhcp excluded-address 20.0.30.0 20.0.30.10
    ip dhcp excluded-address 20.0.10.0 20.0.10.10
    ip dhcp pool Data
     network 20.0.10.0 255.255.255.0
     default-router 20.0.10.254
     option 150 ip 20.0.30.254
    ip dhcp pool Voice
     network 20.0.30.0 255.255.255.0
     default-router 20.0.30.254
     option 150 ip 20.0.30.254
     dns-server 8.8.8.8
    no ipv6 cef
    multilink bundle-name authenticated
    voice-card 0
    license udi pid CISCO2851 sn FTX1331AJQ1
    username cisco privilege 15 password 0 cisco
    redundancy
    controller T1 0/3/0
    controller T1 0/3/1
    interface Loopback0
     no ip address
    interface GigabitEthernet0/0
     no ip address
     duplex auto
     speed auto
    interface GigabitEthernet0/0.10
     encapsulation dot1Q 10
     ip address 20.0.10.254 255.255.255.0
    interface GigabitEthernet0/0.30
     encapsulation dot1Q 30
     ip address 20.0.30.254 255.255.255.0
    interface GigabitEthernet0/1
     ip address 192.168.5.232 255.255.255.0
     duplex auto
     speed auto
    interface Serial0/0/0
     no ip address
     shutdown
     clock rate 2000000
    interface Serial0/0/1
     ip address 200.2.0.1 255.255.255.0
    ip forward-protocol nd
    no ip http server
    no ip http secure-server
    tftp-server flash:cmterm-7940-7960-sccp.8-1-2.cop.sgn alias cmterm-7940-7960-sccp.8-1-2
    tftp-server flash:/Ringtones/DistinctiveRingList.xml alias DistinctiveRingList.xml
    tftp-server flash:/Ringtones/Ringlist.xml alias Ringlist.xml
    tftp-server flash:P00308010200.bin
    tftp-server flash:P00308010200.loads
    tftp-server flash:P00308010200.sb2
    tftp-server flash:P00308010200.sbn
    control-plane
    mgcp profile default
    telephony-service
     no auto-reg-ephone
     max-ephones 110
     max-dn 288
     ip source-address 20.0.30.254 port 2000
     system message Branch System
     load 7960-7940 P00308010200
     max-conferences 8 gain -6
     transfer-system full-consult
     create cnf-files version-stamp Jan 01 2002 00:00:00
    ephone-dn  1  dual-line
     number 2000
     label Phil Davis
     description Branch Office
    ephone  1
     device-security-mode none
     mac-address 0009.E89D.0B4F
     username "cisco" password cisco
     button  1:1
    line con 0
    line aux 0
    line vty 0 4
     login local
     transport input all
    line vty 5 15
     login local
     transport input all
    scheduler allocate 20000 1000
    end

    Hello, and thanks for the good advice. I did try and added the cnf perphone command and ran no create cnf-files and then create cnf-files, but unfortunately its still not making them.
    Also, from the other few CME installations I've seen, all of the information is in flash, but for some reason when I xtracted the tar for this CME, it's showing up in system: ? Could that be a problem?  Here is what I see:
    CompactFlash directory:
    File  Length   Name/status
      1   67922508  c2800nm-adventerprisek9-mz.151-4.M8.bin
      2   85149696  cme-full-8.0.0.1.tar
      3   2942935  apps11.8-5-3TH1-6.sbn
      4   503269   cnu11.8-5-3TH1-6.sbn
      5   2104751  cvm11sccp.8-5-3TH1-6.sbn
      6   340615   dsp11.8-5-3TH1-6.sbn
      7   1616686  jar11sccp.8-5-3TH1-6.sbn
      8   670      SCCP11.8-5-3S.loads
      9   674      term06.default.loads
     10   674      term11.default.loads
     11   1916     MISCH-1.3.3.SBN
     12   900      CP7921G-1.3.3.LOADS
     13   900      CP7925G-1.3.3.LOADS
     14   674      term42.default.loads
     15   674      term62.default.loads
     16   670      SCCP42.8-5-3S.loads
     17   655      term31.default.loads
     18   654      term41.default.loads
     19   654      term45.default.loads
     20   654      term61.default.loads
     21   654      term65.default.loads
     22   654      term70.default.loads
     23   654      term71.default.loads
     24   654      term75.default.loads
     25   651      SCCP31.8-5-3S.loads
     26   650      SCCP41.8-5-3S.loads
     27   650      SCCP45.8-5-3S.loads
     28   650      SCCP70.8-5-3S.loads
     29   650      SCCP75.8-5-3S.loads
     30   61       SCCP69xx.8-5-3-0.loads
     31   131470   Desktops/320x212x12/CampusNight.png
     32   80565    Desktops/320x212x12/CiscoFountain.png
     33   8156     Desktops/320x212x12/CiscoLogo.png
     34   138278   Desktops/320x212x12/FOUNTAIN.PNG
     35   740      Desktops/320x212x12/LIST.XML
     36   109076   Desktops/320x212x12/MorroRock.png
     37   108087   Desktops/320x212x12/NantucketFlowers.png
     38   10820    Desktops/320x212x12/TN-CampusNight.png
     39   9657     Desktops/320x212x12/TN-CiscoFountain.png
     40   2089     Desktops/320x212x12/TN-CiscoLogo.png
     41   7953     Desktops/320x212x12/TN-Fountain.png
     42   7274     Desktops/320x212x12/TN-MorroRock.png
     43   9933     Desktops/320x212x12/TN-NantucketFlowers.png
     44   740      Desktops/320x212x16/LIST.XML
     45   740      Desktops/320x216x16/LIST.XML
     46   8224     Ringtones/Analog1.raw
     47   8307     Ringtones/Analog2.raw
     48   5280     Ringtones/AreYouThere.raw
     49   5040     Ringtones/AreYouThereF.raw
     50   8206     Ringtones/Bass.raw
     51   12240    Ringtones/CallBack.raw
     52   16066    Ringtones/Chime.raw
     53   8160     Ringtones/Classic1.raw
     54   16080    Ringtones/Classic2.raw
     55   10800    Ringtones/ClockShop.raw
     56   2823     Ringtones/DistinctiveRingList.xml
     57   9665     Ringtones/Drums1.raw
     58   13610    Ringtones/Drums2.raw
     59   15928    Ringtones/FilmScore.raw
     60   16244    Ringtones/HarpSynth.raw
     61   8245     Ringtones/Jamaica.raw
     62   16127    Ringtones/KotoEffect.raw
     63   12776    Ringtones/MusicBox.raw
     64   8223     Ringtones/Piano1.raw
     65   15422    Ringtones/Piano2.raw
     66   9360     Ringtones/Pop.raw
     67   7200     Ringtones/Pulse1.raw
     68   4000     Ringtones/Ring1.raw
     69   4000     Ringtones/Ring2.raw
     70   4000     Ringtones/Ring3.raw
     71   4000     Ringtones/Ring4.raw
     72   4000     Ringtones/Ring5.raw
     73   4000     Ringtones/Ring6.raw
     74   4088     Ringtones/Ring7.raw
     75   495      Ringtones/Ringlist.xml
     76   10858    Ringtones/Sax1.raw
     77   14233    Ringtones/Sax2.raw
     78   16100    Ringtones/Vibe.raw
     79   8095286  apps37sccp.1-3-4-0.bin
     80   2942935  apps31.8-5-3TH1-6.sbn
     81   2935993  apps42.8-5-3TH1-6.sbn
     82   2935993  apps45.8-5-3TH1-6.sbn
     83   2935993  apps75.8-5-3TH1-6.sbn
     84   2933329  apps41.8-5-3TH1-6.sbn
     85   2933329  apps70.8-5-3TH1-6.sbn
     86   2599169  APPSH-1.3.3.SBN
     87   2591877  APPS-1.3.3.SBN
     88   2118620  SYSH-1.3.3.SBN
     89   2103754  cvm70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     90   2101414  cvm41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     91   2100804  cvm45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     92   2100554  cvm75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     93   2100286  cvm31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     94   2099070  cvm42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     95   2083047  SYS-1.3.3.SBN  [invalid checksum]
     96   1939872  WLANH-1.3.3.SBN  [invalid checksum]
     97   1906272  SCCP69xx.8-5-3-0.zz  [invalid checksum]
     98   1892036  GUIH-1.3.3.SBN  [invalid checksum]
     99   1887312  jar75sccp.8-5-3TH1-6.sbn  [invalid checksum]
     100   1882934  jar45sccp.8-5-3TH1-6.sbn  [invalid checksum]
     101   1848343  GUI-1.3.3.SBN  [invalid checksum]
     102   1828410  jar70sccp.8-5-3TH1-6.sbn  [invalid checksum]
     103   1756328  jar42sccp.8-5-3TH1-6.sbn  [invalid checksum]
     104   1628021  jar41sccp.8-5-3TH1-6.sbn  [invalid checksum]
     105   1616425  jar31sccp.8-5-3TH1-6.sbn  [invalid checksum]
     106   1379535  WLAN-1.3.3.SBN  [invalid checksum]
     107   939293   TNUXH-1.3.3.SBN  [invalid checksum]
     108   896477   TNUX-1.3.3.SBN  [invalid checksum]
     109   537925   dsp41.8-5-3TH1-6.sbn  [invalid checksum]
     110   537925   dsp70.8-5-3TH1-6.sbn  [invalid checksum]
     111   524969   cnu45.8-5-3TH1-6.sbn  [invalid checksum]
     112   524917   cnu42.8-5-3TH1-6.sbn  [invalid checksum]
     113   524876   cnu75.8-5-3TH1-6.sbn  [invalid checksum]
     114   503753   cnu31.8-5-3TH1-6.sbn  [invalid checksum]
     115   500084   cnu70.8-5-3TH1-6.sbn  [invalid checksum]
     116   499644   cnu41.8-5-3TH1-6.sbn  [invalid checksum]
     117   496521   music-on-hold.au  [invalid checksum]
     118   340615   dsp31.8-5-3TH1-6.sbn  [invalid checksum]
     119   340615   dsp42.8-5-3TH1-6.sbn  [invalid checksum]
     120   340615   dsp45.8-5-3TH1-6.sbn  [invalid checksum]
     121   340615   dsp75.8-5-3TH1-6.sbn  [invalid checksum]
     122   264368   DSP69xx.0-0-0-3.zz  [invalid checksum]
     123   165355   B016-1-0-3.SBN  [invalid checksum]
     124   146463   B015-1-0-3.SBN  [invalid checksum]
     125   44896    BOOT69xx.0-0-0-14.zz  [invalid checksum]
     126   11601    CME-8-0-Full-Readme-v.1.0.txt  [invalid checksum]
     127   5134     7970-71-75-Background-readme-v1.txt  [invalid checksum]
     128   1916     MISC-1.3.3.SBN  [invalid checksum]
     129   4118     GUI/admin_user.html  [invalid checksum]
     130   677820   GUI/admin_user.js  [invalid checksum]
     131   1029     GUI/CiscoLogo.gif  [invalid checksum]
     132   639      GUI/CME_GUI_README.TXT  [invalid checksum]
     133   953      GUI/Delete.gif  [invalid checksum]
     134   16344    GUI/DOM.JS  [invalid checksum]
     135   864      GUI/downarrow.gif  [invalid checksum]
     136   6315     GUI/ephone_admin.html  [invalid checksum]
     137   4558     GUI/LOGOHOME.GIF  [invalid checksum]
     138   3978     GUI/normal_user.html  [invalid checksum]
     139   78428    GUI/normal_user.js  [invalid checksum]
     140   1347     GUI/Plus.gif  [invalid checksum]
     141   843      GUI/SXICONAD.GIF  [invalid checksum]
     142   174      GUI/Tab.gif  [invalid checksum]
     143   2496     GUI/telephony_service.html  [invalid checksum]
     144   870      GUI/UPARROW.GIF  [invalid checksum]
     145   10230    GUI/xml-test.html  [invalid checksum]
     146   3412     GUI/xml.template  [invalid checksum]
     147   12       OS79XX.txt
     148   130552   P00308010200.bin
     149   461      P00308010200.loads
     150   708448   P00308010200.sb2
     151   130956   P00308010200.sbn
     152   703535   cmterm-7940-7960-sccp.8-1-2.cop.sgn
    [239789964 bytes used, 281983088 available, 521773052 total]
    509544K bytes of ATA CompactFlash (Read/Write)
    RtrPod2#show telephony-service tftp-bindings
    tftp-server system:/its/united_states/7960-tones.xml alias United_States/7960-tones.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7960-font.xml
    tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7920-font.xml
    tftp-server system:/its/united_states/7960-dictionary.xml alias English_United_States/7960-dictionary.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7960-kate.xml
    tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7920-kate.xml
    tftp-server system:/its/united_states/SCCP-dictionary.xml alias English_United_States/SCCP-dictionary.xml
    tftp-server system:/its/SEPDEFAULT.cnf alias SEPDefault.cnf
    tftp-server system:/its/vrf1/XMLDefault.cnf.xml alias XMLDefault.cnf.xml

  • TREX Indexing issue. Form based publishing XML files.

    In order to test my TREX indexing functionality, I have created a lot of test XML files (with form based publishing) containg test words.
    What I experiments is that TREX only index the words that is presented on the 'Show' form of the xml document. The template created in the XML Forms Builder that is used to present the document. But thing is, that I only want to index the words from the XML source file, not from the 'Show' form template. Because on that i only have a static label with constant text.
    How do I set TREX to index the source XML file and not the show form template representation of the file?

    Hi Flemming,
    this works as designed. If you want index the whole XML data, you have to store your XMLForms items in a repository on which no "XMLFormsResourceFilter" is defined.
    But if you do that, all the items are rendered as XML and not as HTML. So the SearchResult only gives you links pointing to XML files.
    The only way to index more informations (from my point of view) is to store your additional information into ResourceProperties (you have to design your XMLFormsProject). These properties can be found by the search, if they are set to "indexable=yes".
    Hope this helps
    --Matthias

  • Creating a dynamic GUI with XMl

    Hey folks, i might have posted this already but i cant find it, so posting it again!!! I have an XML snippet that looks like this
    <button id=Add action=AddAction />
    Essentially what that does when parsed is creates a button and we load the AddAction using reflection and attach that as the actionlistenr for that button!! Now my problem is this, what if that the AddAction takes a parameter of say a Jtree, using reflection it tells me what parameters it takes but it doesnt tell me, "ok yep we pass in myTree as an argument into the construction of AddAction". Now im just looking for ideas for a solution to do this, how do i dynamically pass in references to objects i want to realize???
    Sorry if this appears twice but like i said i cant see it posted, any ideas or suggestions would be gratefull!!
    cheers,
    LL

    Also if any one has any thoughts on creating a front end using XML files, pros cons etc??? Just prototyping and wondering should i do down this road!!

  • Dynamic url to XML file url in jstl

    Hi!
    What i need to do:
    1. I get some parameters when entering a jsp page
    2. I use these parameters to get an xml file from a server
    3. I get a url to a picture from the xml file and load it
    The problem is when i need to create the url to that xml file.
    1. I read the parameters
    String x = request.getParameter("X");
    String y= request.getParameter("Y");
    2. forming the url to xml file
    this doesnt work:
    <c:import url="http://www.website.com/something/something.jsp?xcoord=x&ycoord=y" var="xml">
    <x:parse...
    this works, but it is static...
    <c:import url="http://www.website.com/something/something.jsp?xcoord=5&ycoord=6" var="xml">
    <x:parse...
    It is propable that i read the parameters in a wrong way... what is the right way? Heh, i hope u understood what i tried to tell. :)

    This is maybe because you are using a String and an Integer.
    Try this:
    int x = Integer.parseInt(request.getParameter("X"));
    int y = Integer.parseInt(request.getParameter("Y"));Happy Coding! :-)
    bye ki

  • Creating a PL/SQL table based on XML file.

    I have created two procedures to try and achieve the problem at hand.
    It retrieves and displays the record from a DBMS_OUTPUT.PUT_LINE prospective as indicated in (1&2), but I am having difficulty loading these values into a PL/SQL table from the package labeled as (3).
    All code compiles. (1&2) work together, (3) works by itself but will not populate the table, and I get no errors.
    1.The first being the one that retrieves the XML file and parses it.
    CREATE OR REPLACE procedure xml_main is
    P XMLPARSER.Parser;
    DOC CLOB;
    v_xmldoc xmldom.DOMDocument;
    v_out CLOB;
    BEGIN
    P := xmlparser.newParser;
    xmlparser.setValidationMode(p, FALSE);
    DOC := '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <com.welligent.Student.BasicStudent.Create>
    <ControlAreaSync messageCategory="com.welligent.Student" messageObject="BasicStudent" messageAction="Create" messageRelease="1.0" messagePriority="1" messageType="Sync">
    <Sender>
    <MessageId>
    <SenderAppId>com.openii.SyncRouter</SenderAppId>
    <ProducerId>a72af712-90ea-43be-b958-077a87a29bfb</ProducerId>
    <MessageSeq>53</MessageSeq>
    </MessageId>
    <Authentication>
    <AuthUserId>Router</AuthUserId>
    </Authentication>
    </Sender>
    <Datetime>
    <Year>2001</Year>
    <Month>3</Month>
    <Day>23</Day>
    <Hour>13</Hour>
    <Minute>47</Minute>
    <Second>30</Second>
    <SubSecond>223</SubSecond>
    <Timezone>6:00-GMT</Timezone>
    </Datetime>
    </ControlAreaSync>
    <DataArea>
    <NewData>
    <BasicStudent mealCode="" usBorn="Yes" migrant="No" workAbility="No" ellStatus="">
    <StudentNumber>052589F201</StudentNumber>
    <ExternalIdNumber>1234567890</ExternalIdNumber>
    <StateIdNumber>123456</StateIdNumber>
    <Name>
    <LastName>Lopez</LastName>
    <FirstName>Maria</FirstName>
    <MiddleName>S</MiddleName>
    </Name>
    <Gender>Female</Gender>
    <BirthDate>
    <Month>1</Month>
    <Day>1</Day>
    <Year>1995</Year>
    </BirthDate>
    <Race>Hispanic</Race>
    <Ethnicity>Hispanic</Ethnicity>
    <PrimaryLanguage>English</PrimaryLanguage>
    <HouseholdLanguage>Spanish</HouseholdLanguage>
    <Address>
    <Street>123 Any Street</Street>
    <ApartmentNumber>12-D</ApartmentNumber>
    <City>Los Angeles</City>
    <County>Los Angeles</County>
    <State>CA</State>
    <ZipCode>90071</ZipCode>
    </Address>
    </BasicStudent>
    </NewData>
    </DataArea>
    </com.welligent.Student.BasicStudent.Create>';
    --v_out  := DOC;
    SYS.XMLPARSER.PARSECLOB ( P, DOC );
    v_xmldoc := SYS.XMLPARSER.getDocument(P);
    --DBMS_LOB.createtemporary(v_out,FALSE,DBMS_LOB.SESSION);
    --v_out := SYS.XMLPARSER.PARSECLOB ( P, DOC );
    --SYS.XMLDOM.writetoCLOB(v_xmldoc, v_out);
    --INSERT INTO TEST (TEST_COLUMN)
    --VALUES(V_OUT);
    --printElements(v_xmldoc);
    printElementAttributes(v_xmldoc);
    exception
    when xmldom.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when xmldom.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when xmldom.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when xmldom.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when xmldom.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when xmldom.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when xmldom.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when xmldom.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when xmldom.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when xmldom.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    END;
    2. The second which displays the values from the .xml file I initialized above.
    CREATE OR REPLACE procedure printElementAttributes(doc xmldom.DOMDocument) is
    nl XMLDOM.DOMNODELIST;
    len1           NUMBER;
    len2 NUMBER;
    n      XMLDOM.DOMNODE;
    e      XMLDOM.DOMELEMENT;
    nnm      XMLDOM.DOMNAMEDNODEMAP;
    attrname VARCHAR2(100);
    attrval VARCHAR2(100);
    text_value VARCHAR2(100):=NULL;
    n_child XMLDOM.DOMNODE;
    BEGIN
    -- get all elements
    nl := XMLDOM.getElementsByTagName(doc, '*');
    len1 := XMLDOM.getLength(nl);
    -- loop through elements
    FOR j in 0..len1-1 LOOP
    n := XMLDOM.item(nl, j);
    e := XMLDOM.makeElement(n);
    DBMS_OUTPUT.PUT_LINE(xmldom.getTagName(e) || ':');
    -- get all attributes of element
    nnm := xmldom.getAttributes(n);
         n_child:=xmldom.getFirstChild(n);
    text_value:=xmldom.getNodeValue(n_child);
    dbms_output.put_line('val='||text_value);
    IF (xmldom.isNull(nnm) = FALSE) THEN
    len2 := xmldom.getLength(nnm);
              dbms_output.put_line('length='||len2);
    -- loop through attributes
    FOR i IN 0..len2-1 LOOP
    n := xmldom.item(nnm, i);
    attrname := xmldom.getNodeName(n);
    attrval := xmldom.getNodeValue(n);
    dbms_output.put(' ' || attrname || ' = ' || attrval);
    END LOOP;
    dbms_output.put_line('');
    END IF;
    END LOOP;
    END printElementAttributes;
    3. The package trying to insert into a PL/SQL table.
    CREATE OR REPLACE PACKAGE BODY XMLSTUD2 AS
    PROCEDURE STUDLOAD
    IS
    v_parser xmlparser.Parser;
    v_doc xmldom.DOMDocument;
    v_nl xmldom.DOMNodeList;
    v_n xmldom.DOMNode;
    DOC CLOB;
    v_out CLOB;
    n2 XMLDOM.DOMNODELIST;
    TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
    s_tab stuxml_type := stuxml_type();
    --l_sturec students%rowtype;
    BEGIN
    -- Create a parser.
    v_parser := xmlparser.newParser;
    xmlparser.setValidationMode(v_parser, FALSE);
    DOC := '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <com.welligent.Student.BasicStudent.Create>
    <ControlAreaSync messageCategory="com.welligent.Student" messageObject="BasicStudent" messageAction="Create" messageRelease="1.0" messagePriority="1" messageType="Sync">
    <Sender>
    <MessageId>
    <SenderAppId>com.openii.SyncRouter</SenderAppId>
    <ProducerId>a72af712-90ea-43be-b958-077a87a29bfb</ProducerId>
    <MessageSeq>53</MessageSeq>
    </MessageId>
    <Authentication>
    <AuthUserId>Router</AuthUserId>
    </Authentication>
    </Sender>
    <Datetime>
    <Year>2001</Year>
    <Month>3</Month>
    <Day>23</Day>
    <Hour>13</Hour>
    <Minute>47</Minute>
    <Second>30</Second>
    <SubSecond>223</SubSecond>
    <Timezone>6:00-GMT</Timezone>
    </Datetime>
    </ControlAreaSync>
    <DataArea>
    <NewData>
    <BasicStudent mealCode="" usBorn="Yes" migrant="No" workAbility="No" ellStatus="">
    <StudentNumber>052589F201</StudentNumber>
    <ExternalIdNumber>1234567890</ExternalIdNumber>
    <StateIdNumber>123456</StateIdNumber>
    <Name>
    <LastName>Lopez</LastName>
    <FirstName>Maria</FirstName>
    <MiddleName>S</MiddleName>
    </Name>
    <Gender>Female</Gender>
    <BirthDate>
    <Month>1</Month>
    <Day>1</Day>
    <Year>1995</Year>
    </BirthDate>
    <Race>Hispanic</Race>
    <Ethnicity>Hispanic</Ethnicity>
    <PrimaryLanguage>English</PrimaryLanguage>
    <HouseholdLanguage>Spanish</HouseholdLanguage>
    <Address>
    <Street>123 Any Street</Street>
    <ApartmentNumber>12-D</ApartmentNumber>
    <City>Los Angeles</City>
    <County>Los Angeles</County>
    <State>CA</State>
    <ZipCode>90071</ZipCode>
    </Address>
    </BasicStudent>
    </NewData>
    </DataArea>
    </com.welligent.Student.BasicStudent.Create>';
    -- Parse the document and create a new DOM document.
    SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
    v_doc := SYS.XMLPARSER.getDocument(v_parser);
    -- Free resources associated with the Parser now it is no longer needed.
    xmlparser.freeParser(v_parser);
    -- Get a list of all the STUD nodes in the document using the XPATH syntax.
    v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address');
    dbms_output.put_line( 'New Stud processed on '||to_char(sysdate, 'YYYY-MON-DD'));
    -- Loop through the list and create a new record in a tble collection
    -- for each STUD record.
    FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
    v_n := xmldom.item(v_nl, stud);
    s_tab.extend;
    -- Use XPATH syntax to assign values to he elements of the collection.
         --s_tab(s_tab.last).STUDENT_ID :=xslprocessor.valueOf(v_n,'StudentNumber');
         --s_tab(s_tab.last).SSN :=xslprocessor.valueOf(v_n,'ExternalIdNumber');
         --s_tab(s_tab.last).SHISID :=xslprocessor.valueOf(v_n,'StateIdNumber');
         s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'LastName');
         --dbms_output.put_line( s_tab(s_tab.last).STUDENT_LAST_NAME);
         s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'FirstName');
         --s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'MiddleName');
         --s_tab(s_tab.last).STUDENT_GENDER :=xslprocessor.valueOf(v_n,'Gender');
         --s_tab(s_tab.last).SHISID :=xslprocessor.valueOf(v_n,'Month');
         --s_tab(s_tab.last).SHISID :=xslprocessor.valueOf(v_n,'Day');
         --s_tab(s_tab.last).SHISID :=xslprocessor.valueOf(v_n,'Year');
         --s_tab(s_tab.last).STUDENT_RACE :=xslprocessor.valueOf(v_n,'Race');
         --s_tab(s_tab.last).STUDENT_ETHNIC :=xslprocessor.valueOf(v_n,'Ethnicity');
         --s_tab(s_tab.last).STUDENT_PRI_LANG :=xslprocessor.valueOf(v_n,'PrimaryLanguage');
         --s_tab(s_tab.last).STUDENT_SEC_LANG :=xslprocessor.valueOf(v_n,'HouseholdLanguage');
         --s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'Street');
         --s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'ApartmentNumber');
         --s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'City'); 
         --s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'County');
         --s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'State');
         --s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'ZipCode');
    END LOOP;
    FOR stud IN s_tab.first..s_tab.last LOOP
    dbms_output.put_line( s_tab(s_tab.last).STUDENT_LAST_NAME);
    INSERT INTO STUDENTS (
    SHISID, SSN, DOE_SCHOOL_NUMBER,
    PATIENT_TYPE, TEACHER, HOMEROOM,
    STUDENT_LAST_NAME, STUDENT_FIRST_NAME, STUDENT_MI,
    STUDENT_DOB, STUDENT_BIRTH_CERT, STUDENT_COMM,
    STUDENT_MUSA, STUDENT_FAMSIZE, STUDENT_FAMINCOME,
    STUDENT_UNINSURED, STUDENT_LUNCH, STUDENT_ZIP,
    STUDENT_STATE, STUDENT_COUNTY, STUDENT_STREET,
    STUDENT_APART_NO, STUDENT_PHONE, STUDENT_H2O_TYPE,
    STUDENT_WASTE_TRT, STUDENT_HOME_SET, STUDENT_NONHOME_SET,
    STUDENT_GENDER, STUDENT_RACE, STUDENT_ETHNIC,
    STUDENT_PRI_LANG, STUDENT_SEC_LANG, STUDENT_ATRISK,
    EMER_COND_MEMO, ASSIST_DEVICE_TYPE, SCHOOL_ENTER_AGE,
    STUDENT_CURR_GRADE, S504_ELIG_DATE, S504_DEV_DATE,
    S504_REV_DATE, STUDENT_504, STUDENT_IEP,
    IEP_EXP_DATE, GRAD_CLASS, TYPE_DIPLOMA,
    GRADE_RETAIN, LIT_PASS_TEST_MATH, LIT_PASS_DATE_MATH,
    LIT_PASS_TEST_WRITE, LIT_PASS_DATE_WRITE, LIT_PASS_TEST_READ,
    LIT_PASS_DATE_READ, SPEC_ED_ELIG, SPEC_ED_CODE,
    TRANSPORT_CODE, TRANSPORT_NO, PRIME_HANDICAP,
    PRIME_HANDICAP_PERCENT, PRIME_HANDI_MANAGER, FIRST_ADD_HANDI,
    FIRST_ADD_HANDICAP_PERCENT, FIRST_ADD_HANDI_504, FIRST_ADD_HANDI_504_DATE,
    SECOND_ADD_HANDI, SECOND_ADD_HANDICAP_PERCENT, MED_EXTERNAL_NAME,
    INS_TYPE, INS_PRI, INS_NAME,
    INS_MEDICAID_NO, ELIGDATE, INS_PRIV_INSURANCE,
    INS_APPR_BILL, INS_APPR_DATE, INS_PARENT_APPR,
    INS_POL_NAME, INS_POL_NO, INS_CARRIER_NO,
    INS_CARRIER_NAME, INS_CARRIER_RELATE, INS_AFFECT_DATE,
    INS_COPAY_OV, INS_COPAY_RX, INS_COPAY_AMBUL,
    INS_COPAY_EMER, INS_COPAY_OUTPAT, STUDENT_INACTIVE,
    PHYS_ID, ENCOUNTERNUM, USERID,
    MODDATE, STUDENT_ID, S504_DISABILITY,
    CHAPTER1, WELLNESS_ENROLL, SCHOOL_OF_RESIDENCE,
    INITIAL_IEP_DATE, CALENDAR_TRACK, USA_BORN,
    ALT_ID, FUTURE_SCHOOL, IEP_LAST_MEETING,
    IEP_LAST_SETTING, IEP_LAST_REFER_EVAL, THIRD_ADD_HANDI,
    LEP, GIFTED, IEP_EXIT_REASON,
    CASE_MANAGER_ID, INTAKE_NOTES, CALLER_PHONE,
    CALL_DATE, CALLER_RELATIONSHIP, CALLER_NAME,
    BUSINESS_PHONE, FAX, EMAIL,
    HIGHEST_EDUCATION, INTAKE_DATE, SERVICE_COORDINATOR,
    DISCHARGE_DATE, DISCHARGE_REASON, DISCHARGE_NOTES,
    INTAKE_BY, INTAKE_STATUS, IEP_LAST_SERVED_DATE,
    IEP_APC_DATE, IEP_EXIT_DATE, ADDRESS2,
    LEGAL_STATUS, RELIGION, EMPLOYMENT_STATUS,
    TARG_POP_GROUP1, TARG_POP_GROUP2, MARITAL_STATUS,
    THIRD_ADD_HANDI_PERCENT, LAST_INTERFACE_DATE, SERVICE_PLAN_TYPE,
    CURRENT_JURISDICTION, FIPS, BIRTH_PLACE_JURISDICTION,
    BIRTH_PLACE_HOSPITAL, BIRTH_PLACE_STATE, BIRTH_PLACE_COUNTRY,
    OTHER_CLIENT_NAME, SIBLINGS_WITH_SERVICES, PERM_SHARE_INFORMATION,
    PERM_VERIFY_INSURANCE, REFERRING_AGENCY, REFERRING_INDIVIDUAL,
    AUTOMATIC_ELIGIBILITY, INTAKE_IEP_ID, FUTURE_SCHOOL2,
    FUTURE_SCHOOL3, TRANSLATOR_NEEDED, TOTAL_CHILDREN_IN_HOME,
    REFERRED_BY, FAMILY_ID, SCREENING_CONSENT_FLAG,
    PICTURE_FILE, DUAL_ENROLLED, DOE_SCHOOL_NUMBER2)
    VALUES (123456789012, null,null ,
    null,null,null ,s_tab(stud).STUDENT_LAST_NAME
    , s_tab(stud).STUDENT_LAST_NAME,null ,
    null ,null ,null ,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null ,null , null,
    null, null,null );
    END LOOP;
    COMMIT;
    -- Free any resources associated with the document now it
    -- is no longer needed.
    xmldom.freeDocument(v_doc);
    END STUDLOAD;
    END XMLSTUD2;
    /

    Hi
    I have created a PLSQL package based Oracle Portal
    form. This is created a s a databse provider. I have
    following questions to check :
    1. How to capture return values from the package and
    display different messages on success or failure ?
    - http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABBAFGI
    Step 16
    2. How to return to blank form by intializing already
    entered values after successfuly process of the form
    data.
    - http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABGBCHH
    thanks
    Manjith

  • I want to create a parser file which dynamically reads out XML file.

    HI ,.
    I created a DOM parser where i am getting the values of XML file by tag names...
    which is increasing my code lines number ...
    So can any one suggest me with proper way of approach to overcome this....

    HI ...
    Here is the code...
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.PrintStream;
    import java.lang.Integer;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import sun.java2d.loops.FillPath;
    import sun.nio.ch.FileKey;
    public class XMLFileParser{
         int Size,Height,X,Y,W,H;
         String L;
         String Path;
         boolean resize;
         XMLFileParser(){
    void Parser(){
         try {
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                Document doc = docBuilder.parse (new File("book.xml"));
                // normalize text representation
                doc.getDocumentElement ().normalize ();
                System.out.println ("Root element of the doc is " +
                     doc.getDocumentElement().getNodeName());
           //first node.
                                        NodeList FrameValues = doc.getElementsByTagName("Frame");
                                        NodeList children=(NodeList)doc.getDocumentElement().getChildNodes();
                                        System.out.println("total of childs are: "+children.getLength());
                                        //for (int j = 0; j < children.getLength(); j++)
                                        //     System.out.println(" the childs are: "+children.item(j));
                                             for(int s=0; s<FrameValues.getLength() ; s++){
                                                  // System.out.println(FrameValues.getLength());
                                 Node FirstFileNode = FrameValues.item(s);
                                 if(FirstFileNode.getNodeType() == Node.ELEMENT_NODE){
                                 Element frameelements = (Element)FirstFileNode;
                                 NodeList FrameValueList1 = frameelements.getElementsByTagName("setSize");
                                 Element firstAttributeElement = (Element)FrameValueList1.item(0);
                                    NodeList List1 = firstAttributeElement.getChildNodes();
                                 Node node1 = (Node)List1.item(0);
                                 String nodeName1 = node1.getNodeValue();
                                 int value1 = Integer.parseInt(nodeName1);                           
                                 setSize(value1);
                                 NodeList FrameValueList2 = frameelements.getElementsByTagName("Height");
                                 Element secondAttributeElement = (Element)FrameValueList2.item(0);
                                 NodeList List2 = secondAttributeElement.getChildNodes();
                                 Node node2 = (Node)List2.item(0);
                                 String nodeName2 = node2.getNodeValue();
                                 int value2 = Integer.parseInt(nodeName2);
                                   setHeight(value2);
                                 NodeList FrameValueList3 = frameelements.getElementsByTagName("BoundsX");
                                 Element thirdAttributeElement = (Element)FrameValueList3.item(0);
                                 NodeList List3 = thirdAttributeElement.getChildNodes();
                                 Node node3 = (Node)List3.item(0);
                                 String nodeName3 = node3.getNodeValue();
                                 int value3 = Integer.parseInt(nodeName3);
                                   setBounds(value3);
                                    NodeList FrameValueList4 = frameelements.getElementsByTagName("BoundsY");
                                    Element fourthAttributeElement = (Element)FrameValueList4.item(0);
                                    NodeList List4 = fourthAttributeElement.getChildNodes();
                                    Node node4 = (Node)List4.item(0);
                                    String nodeName4= node4.getNodeValue();
                                    int value4 = Integer.parseInt(nodeName4);
                                  setBounds1(value4);
                                  NodeList FrameValueList5 = frameelements.getElementsByTagName("BoundsW");
                                    Element fifthAttributeElement = (Element)FrameValueList5.item(0);
                                    NodeList List5 = fourthAttributeElement.getChildNodes();
                                    Node node5 = (Node)List5.item(0);
                                    String nodeName5 = node5.getNodeValue();
                                    int value5 = Integer.parseInt(nodeName5);
                                  setBounds2(value5);
                                  NodeList FrameValueList6 = frameelements.getElementsByTagName("BoundsH");
                                    Element sixthAttributeElement = (Element)FrameValueList6.item(0);
                                    NodeList List6 = sixthAttributeElement.getChildNodes();
                                    Node node6 = (Node)List6.item(0);
                                    String nodeName6 = node6.getNodeValue();
                                    int value6 = Integer.parseInt(nodeName6);
                                  setBounds3(value6);
                                  NodeList FrameValueList7 = frameelements.getElementsByTagName("Resize");
                                    Element seventhAttributeElement = (Element)FrameValueList6.item(0);
                                    NodeList List7 = seventhAttributeElement.getChildNodes();
                                    Node node7 = (Node)List7.item(0);
                                    String nodeName7 = node7.getNodeValue();
                                    boolean value7= Boolean.parseBoolean(nodeName7);
                                  setResize(value7);
         // second node.
                                        NodeList PanelValues = doc.getElementsByTagName("Panel");
                                        for(int s=0; s<PanelValues.getLength() ; s++){
                          // System.out.println(FrameValues.getLength());
                                 Node FirstFileNode = PanelValues.item(s);
                                 if(FirstFileNode.getNodeType() == Node.ELEMENT_NODE){
                                 Element Panelelements = (Element)FirstFileNode;
                                 NodeList PanelValueList1 = Panelelements.getElementsByTagName("Layout");
                                 Element firstAttributeElement = (Element)PanelValueList1.item(0);
                                    NodeList List1 = firstAttributeElement.getChildNodes();
                                 Node node1 = (Node)List1.item(0);
                                 String Layout = node1.getNodeValue();
                                 //int value1 = Integer.parseInt(nodeName1);                           
                                 setLayout(Layout);
                                 NodeList PanelValueList2 = Panelelements.getElementsByTagName("ImagePath");
                                 Element secondAttributeElement = (Element)PanelValueList2.item(0);
                                    NodeList List2 = secondAttributeElement.getChildNodes();
                                 Node node2 = (Node)List1.item(0);
                                 String path = node1.getNodeValue();
                                 //int value1 = Integer.parseInt(nodeName1);                           
                                 setPath(path);
                    }//end of if clause
                }//end of for loop with s1 var*/
            catch (SAXParseException err)
            System.out.println ("** Parsing error" + ", line "
                 + err.getLineNumber () + ", uri " + err.getSystemId ());
            System.out.println(" " + err.getMessage ());
            catch (SAXException e)
            Exception x = e.getException ();
            ((x == null) ? e : x).printStackTrace ();
            catch (Throwable t)
            t.printStackTrace ();
    private void setResize(boolean value7) {
         // TODO Auto-generated method stub
         resize=value7;
    public boolean getResize(){
         System.out.println("Resize" + resize);
         return resize;
    private void setPath(String path) {
         // TODO Auto-generated method stub
          Path = path;
    public String getPath(){
         System.out.println("Path" + Path);
         return Path;
    private void setLayout(String layout) {
         // TODO Auto-generated method stub
         L=layout;
    public String getLayout(){
         System.out.println("Layout" + L);
         return L;
    private void setBounds3(int value6) {
         // TODO Auto-generated method stub
         H=value6;
         System.out.println("setBoundsH" + H);
    public int getBounds3(){
         System.out.println("getBoundsH" + H);
         return H;
    private void setBounds2(int value5) {
         // TODO Auto-generated method stub
         W=value5;
         System.out.println("setBoundsW" + W);
    public int getBounds2(){
         System.out.println("getBoundsW" + W);
         return W;
    private void setBounds1(int value4) {
         // TODO Auto-generated method stub
         Y=value4;
         System.out.println("setBoundsY" + Y);
    public int getBounds1(){
         System.out.println("getBoundsY" + Y);
         return Y;
    public void setBounds(int value3) {
         // TODO Auto-generated method stub
    X= value3;
         System.out.println("setBoundsX" + X);
    public int getBounds(){
         System.out.println("getBoundsX" + X);
         return X ;
    public void setHeight(int value2) {
              // TODO Auto-generated method stub
              Height=value2;
              System.out.println("setHeight " + Height);
    public int getHeight(){
         System.out.println("getHeight " + Height);
         return (Height);
    setSize(int value1) {
              // TODO Auto-generated method stub
              Size=value1;
              System.out.println("setSize " + Size);
         public int getSize() {
              System.out.println("getSize " + Size);
              return ( Size);
          }here i am calling the elements of my xml file each time by tag name ...which is increasing my code lines....so any solution please....

  • Create a list from an XML file    no display

    I have a multiline Dynamic text box called projList.
    I am trying to populate it from an xml file and create a
    clickable list.
    The trace works but cannot get to display the list in the
    text box.
    As far as the clickable goes, haven't gotten that far yet.
    Help very much appreciated.
    The xml is structured like this:
    <?xml version="1.0" ?>
    - <images>
    - <pic>
    <Image>/Butler/Images/sfah2_small.jpg</Image>
    <Category>Institutional</Category>
    <Proj_title>FRESH AIR HOME</Proj_title>
    Please see code below:
    import mx.xpath.XPathAPI;
    var allproj_xml:XML = new XML();
    allproj_xml.ignoreWhite = true;
    allproj_xml.onLoad = function(success:Boolean) {
    trace("onload...");
    if (success) {
    trace("success...");
    var thePath_str:String = "/images/pic/Proj_title";
    var title_array:Array =
    XPathAPI.selectNodeList(this.firstChild,
    thePath_str);
    for (var i:Number = 0; i < title_array.length; i++) {
    trace(title_array
    .firstChild.nodeValue);
    projList.addItem(title_array.attributes.Proj_title);
    } else {
    trace("error loading XML");
    allproj_xml.load("allimages.xml");
    stop();

    This did it:
    projList.addItem(title_array
    .firstChild.nodeValue);
    > Thanks for your response.
    > How can I add what I am tracing, to the component
    properly?
    >
    > "DMennenoh **AdobeCommunityExpert**"
    <[email protected]> wrote in
    > message news:eqaejh$bi8$[email protected]..
    >>>>trace(title_array.firstChild.nodeValue);
    >> projList.addItem(title_array
    .attributes.Proj_title);
    >>
    >>
    >> Your code seems OK. What you are tracing here
    however isn't what you're
    >> adding to the component. Are you sure what you're
    adding traces?
    >>
    >> --
    >> Dave -
    >> Head Developer
    >> www.blurredistinction.com
    >> Adobe Community Expert
    >>
    http://www.adobe.com/communities/experts/
    >>
    >

  • Cannot create controls/constants/indicators from XML parser

    Is there any reason I cannot create (by right clicking) a control/constant/indicator of a XML ref from the XML parser function? I need to make subvi's to build/read xml files, and that is really impossible without that ability.
    Labview 2012 f3
    Solved!
    Go to Solution.

    This bug has already been reported (CAR 357092), and is scheduled to be fixed in the next service pack release. For now, here's a workaround:
    1. Create a reference indicator from Functions » Programming » File I/O » XML » XML Parser » New.vi.
    2. Right click on the new "DOM Document Out" indicator terminal and select Create > Control (or Indicator).
    3. Right click on the new control/indicator and choose Select XML Parser Class. Then, you can select whatever class you need.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Dynamic Link Buttons & xml file

    Hi All
    I'm calling an external XML File with a structure of ;
    <papers>
    <paper id="1">
    <name>Net Paper One</name>
    <description>
    ~~~~~~~~~~
    </description>
    </paper>
    </papers>
    which i'm calling using
    <mx:HTTPService id="myNetPapers"
    url="xml/newearthpapers.xml" result="netPapersResultHandler(event)"
    resultFormat="e4x"/>
    and
    private function
    netPapersResultHandler(event:ResultEvent):void {
    xmlNetPapers = event.result.paper as XMLList;
    Initially i wanted to use a combobox for the name and display
    the description in a textbox.
    How can i dynamically disply a Link Button for each name of
    the xml document and still display the description as normal. The
    link buttons i want to display horizontally across the top of the
    page.
    Any suggesttions
    Whitetimer

    Hi Leotemp
    I managed to sort it out with this ;
    <mx:Script>
    <![CDATA[
    import mx.controls.LinkButton;
    import mx.controls.Button;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    private var xmlNetPapers:XMLList = new XMLList();
    private function
    netPapersResultHandler(event:ResultEvent):void
    xmlNetPapers = event.result.paper as XMLList;
    /* resultCombo.dataProvider = xmlNetPapers.name; */
    createButtons();
    private function createButtons():void
    for each(var name:String in xmlNetPapers.name)
    var myButton:Button = new LinkButton();
    myButton.label = name;
    myButton.addEventListener("buttonDown", buttonClick);
    resultBox.addChild(myButton);
    /* private function comboChanged(eventObj:Event):void
    textOutput.text = xmlNetPapers.(name ==
    eventObj.target.selectedItem).description;
    private function buttonClick(eventObj:Event):void
    textOutput.text = xmlNetPapers.(name ==
    eventObj.target.label).description;
    ]]>
    </mx:Script>
    Many thanks
    Whitetimer

  • Contact Form: How do i create a link from an XML file to another domain to read a PHP File

    So i purchased a template from Template Monster and im having a little trouble with the contact form. The server that im uploading it to is a privite server that the company owns. It supports ASP and not PHP. I cant seem to get the ASP form to work so all i want to do it create a link to another one of there servers that supports PHP and have the contact form link to there and read the PHP file (that i will upload to that server) and send the email from there.
    This is the XML that i have to fill in in order to make it work
    Everything in Red is what i needed to fill out in order for the form to work.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
            Please read this information to learn how to set up the contact form integrated
            into the template.
            This readme file explains in details the meaning of the settings that can be
            done in the fcContactFormConfiguration.xml configuration file.
            It is recommended for you to use an XML editor to make changes to this file
             because it’s less possible to make an error in the markup which can cause to
            a not working contact form.
      -->
    <contactFormConfiguration>
        <!--
                An e-mail address which will be used to receive messages from your contact form.
                You can specify several e-mail addresses separating them with a comma.
                For example: [email protected], [email protected], [email protected]
          -->
        <emailTo>[email protected]</emailTo>
        <!--
                A server script type which will process sending e-mails. It depends on your
                hosting and in the current version of the contact form it is allowed to use
                two types:  php (Apache, PHP Hosting); asp (IIS web server, ASP).
          -->
        <serverProcessorType>php</serverProcessorType>
        <!--
                A name of the script file which process sending e-mails on your server (without
                extension). The name contact is used by default.
          -->
        <serverProcessorFileName>contact</serverProcessorFileName>
        <!--
                Set whether to validate only required fields (true/false).  The default value is
                true which means the not required fields of your contact form will not be validated.
                For example if the e-mail field of your form is set as not required (imagine it)
                the form will be processed even if the user types in an incorrect e-mail address.
          -->
        <validateRequiredOnly>false</validateRequiredOnly>
        <!--
                Set whether to submit the form when the Enter key is pressed even if the focus is
                not on the Submit button (true/false).
          -->
        <submitFormOnEnter>false</submitFormOnEnter>
        <!--
                Text showing to the user when the form is submitted without any errors.
          -->
        <messageSentText>Thank you for your message.</messageSentText>
        <!--
                Text showing in case the form is not submitted because of a server error.
          -->
        <messageSentFailedText>Sorry, your message couldn't be sent</messageSentFailedText>
        <!--
                Text your visitor will see while waiting till the processing is over.
          -->
        <formProcessingText>processing...</formProcessingText>
        <!--
                Your SMTP server (for ASP only).
          -->
        <smtpServer>localhost</smtpServer>
        <!--
                Your SMTP port (for ASP only).
          -->
        <smtpPort>25</smtpPort>
        <!--
                Set whether to send the message as a plain text (true) or as HTML (false).
          -->
        <plainText>false</plainText>
        <!--
                ID of the input field (in the structure XML file) to use for the “from: ”
                or email to use instead (for example: [email protected]).
          -->
        <emailFromSource>2</emailFromSource>
        <!--
                Subject of the e-mails that will be sent through this contact form or ID of
                the input field (in the structure XML file) to use for the “subject: ” label
                in your e-mail client.
          -->
        <subjectSource>Contact Form from your site</subjectSource>
        <!--
                Validation error messages that are showing to the user when the form fails to
                validate. The form supports different types of validators. You can change the
                text of the error messages the validators produce here.
                You can use the {LABEL} keyword in these messages. It will replace it with the
                label value of the field where an error occurs.
          -->
        <validationErrorMessages>
            <!--
                    A required field is not filled in.
              -->
            <message type="fieldIsRequired">{LABEL} is required.</message>
            <!--   
                    The specified e-mail address is incorrect.
              -->
            <message type="emailNotValid">{LABEL} - is not valid email address.</message>
            <!--
                    The specified number of characters in a field is less than a required minimum.
              -->
            <message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less than a required minimum.</message>
            <!--
                    The specified string does not match with the regular expression.
              -->
            <message type="reqExpError">{LABEL} - The specified string does not match with the regular expression.</message>
            <!--
                    The specified number is greater than an acceptable biggest number for this field.
              -->
            <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable biggest number for this field.</message>
            <!--
                    The specified number is lower than an acceptable lowest number for this field.
              -->
            <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable lowest number for this field.</message>
            <!--
                    The data is not a number.
              -->
            <message type="notANumberError">{LABEL} - The data is not a number.</message>
            <!--
                    The specified number must not be negative.
              -->
            <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
            <!--
                    The minimum number of variants is not selected
              -->
            <message type="minRequirementError">{LABEL} - The minimum number of variants is not selected</message>
            <!--
                    The number of variants selected exceeds the maximum
              -->
            <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the maximum</message>
            <!--
                    The fields that should be equal do not match
              -->
            <message type="shouldBeEqualError">{LABEL} - values do not match</message>
            <!--
                     The date has wrong format.
              -->
            <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
        </validationErrorMessages>
    </contactFormConfiguration>
    THIS IS THE ACTUAL CONTACT.PHP Form That i would like to link to.
    <?php
    //-----------------Getting data sent by flash---------------------
    foreach ($_POST as $key => $value){
            if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
                $mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
                $mail_body .= ''.stripslashes($value).'<br/>';
    $message = '<html><body>'.$mail_body.'</body></html>'; //  mail body
    //------------if plain text is set to true removing html tags------
    if ($_POST['plain_text']=='true') {
        $message = str_replace('<br/>',"\r\n", $message);
        $message = strip_tags($message);
    } else {
    //----otherwise composing message headers---------------------------
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=windows-1251' . "\r\n";
    //------------setting conf data-------------------------------------
    $to = $_POST['mail_to'];
    $from = $_POST['mail_from'];
    $subject = $_POST['mail_subject'];
    $smtp_server = $_POST['smtp_server'];
    $smtp_port = $_POST['smtp_port'];
    //---------setting header info--------------------------------------
    $headers .= 'From:' .$from;
    if (mail($to, $subject, $message, $headers)){ // sending mail
        print('&mail=1');  //succes
    } else {
        print('&mail=0');//failure
    ?>

    You can open both Muse files at once, copy the content of a page on one site, then paste it into a new page on the other site. You might have to redo some of the page styling.

  • How to create xforms binding-excaption of xml file in the xhtml source?

    Hello,
    is anyone here who could help me?
    I've spent plenty of hours by searching the correct and suitable way for creating a binding exception in XForms, but I did not succeed...
    My situation is: I've got an XHTML page with XForms and XML (input) file, which describes this page. Whenewer I change the input data in the XML file (for example there are tags <person> and ....</person> if I change it to <peson1> and ...</person1>) after saving the changes and refreshing the page, the XForms will be changed (for example some text fields are missing or they've got white background instead red one, which there was before et cetera). {I hope it is clear till now.....}
    My task is: to create a xforms-binding-expression event, which will display an error message (for example: FILE HAVE BEEN CHANGED, CAN NOT DISPLAY THE PAGE PROPERLY) to the user.
    i've found some stuff, how to create such message, but i need to know the exact order of commands to make it work, where to insert them, the structure etc, so I can comprehend your advices...
    The XHTML file contains of several blocks - bind, model, submission, instance etc - and I do not actually know, where to insert such lines (with message)...I think I should make some bindings with the page loading, but I've got no idea how to get it done, however there are very few sites with such stuff on the internet. I hope this task is no big deal for you gyus, THANK YOU A LOT IN ADVANCE

    Hello,
    is anyone here who could help me?
    I've spent plenty of hours by searching the correct and suitable way for creating a binding exception in XForms, but I did not succeed...
    My situation is: I've got an XHTML page with XForms and XML (input) file, which describes this page. Whenewer I change the input data in the XML file (for example there are tags <person> and ....</person> if I change it to <peson1> and ...</person1>) after saving the changes and refreshing the page, the XForms will be changed (for example some text fields are missing or they've got white background instead red one, which there was before et cetera). {I hope it is clear till now.....}
    My task is: to create a xforms-binding-expression event, which will display an error message (for example: FILE HAVE BEEN CHANGED, CAN NOT DISPLAY THE PAGE PROPERLY) to the user.
    i've found some stuff, how to create such message, but i need to know the exact order of commands to make it work, where to insert them, the structure etc, so I can comprehend your advices...
    The XHTML file contains of several blocks - bind, model, submission, instance etc - and I do not actually know, where to insert such lines (with message)...I think I should make some bindings with the page loading, but I've got no idea how to get it done, however there are very few sites with such stuff on the internet. I hope this task is no big deal for you gyus, THANK YOU A LOT IN ADVANCE

  • Create a portlet based on php file

    Hi All..I'm a very new comer about weblogic portal..now I'm using weblogic portal 10.3..
    I have a question..Is there possible to have an portlet that can be enlarged?
    And is there possible if I have a .php file, and then I want to create a portlet based on that .php file?
    Could anyone help me to solve this problem..or is there any guidance about those questions?
    Thank's a lot before...

    Is there possible to have an portlet that can be enlarged?Yes. You can maximise a portlet
    And is there possible if I have a .php file, and then I want to create a portlet based on that .php fileNot directly.
    If you are going to run the PHP file in its own machine then you could use a browser or clipper portlet. If you want to run the PHP file on the JVM itself, I believe there are some commercial products that let you do this (then its equivalent to a JavaServlet). This could then be included by any dummy JSP and you could use a plain jsp portlet . however you wqould have to be careful how you generate links within the PHP file (because you'd have to mimic the way BEA tags behave) .
    never tried this and if you have few PHP pages then you could probably rewrite to java.

  • Need help in creating header node at reciver XML file?

    Hello All,
    Iam creating proxy to file scenario.....at receiver side iam creating XML file like below.
    <?xml version="1.0" encoding="UTF-8" ?>
    <OrderTransaction>
    <TransactionInformation Version="2.0.0">
      <DocId>0180000186</DocId>
       <Sender>........
      </OrderTransaction>
    bit now client require one header node like below
    <!DOCTYPE OrderTransaction PUBLIC "Order" "Order.dtd">
    now th recevier xml need to look like
    <?xml version="1.0" encoding="UTF-8" ?>
    <OrderTransaction>
    <!DOCTYPE OrderTransaction PUBLIC "Order" "Order.dtd">
    <TransactionInformation Version="2.0.0">
      <DocId>0180000186</DocId>
       <Sender>........
      </OrderTransaction>
    how to add that node........... i cant add it as node element............ Please help me out.
    Thanks and Regards,
    Chinna
    Edited by: chinnasapxi on Mar 16, 2010 8:11 PM

    Hi Chinna,
    Probably writing a script and calling in receiver file adapter after message processing and in the script just add the line in the 3rd line and then put the rest.
    Regards,
    ---Satish

Maybe you are looking for