Creating XML dynamically

Hi,
I need to create XML which follows this exact structure:
<root>
    <node>
        <row>
            <item>item01</item>
            <item>item02</item>
        </row>
        <row>
            <item>item03</item>
            <item>item04</item>
        </row>
        <row>
            <item>item05</item>
            <item>item06</item>
        </row>
    </node>
</root>
but I need to do it dynamically, so I am doing this:
var xml:XML = <root></root>;
xml.appendChild(<node></node>);
xml.child("node").appendChild(<row></row>);
xml.child("node").child("row").appendChild(<item>item01</item>);
xml.child("node").child("row").appendChild(<item>item02</item>);
xml.child("node").appendChild(<row></row>);
xml.child("node").child("row").appendChild(<item>item03</item>);
xml.child("node").child("row").appendChild(<item>item04</item>);
and I get this error:
TypeError: Error #1086: The appendChild method only works on lists containing one item.
    at XMLList/http://adobe.com/AS3/2006/builtin::appendChild()
    at xml_fla::MainTimeline/frame1()
Any suggestions as to what I can do?  I can change the format as the script on the server is expecting this format.
I have tried using SimpleXMLEncoder and tried creating the XML from an Object but neither of these helped.
Any suggestions warmly welcome...
Thanks

try:
var xml:XML = <root></root>;
xml.appendChild(<node></node>);
xml.child("node").appendChild(<row></row>);
xml.child("node").child("row").appendChild(<item>item01</item>);
xml.child("node").child("row").appendChild(<item>item02</item>);
xml.child("node").appendChild(<row></row>);
xml.child("node").row[1].appendChild(<item>item03</item>);
xml.child("node").row[1].appendChild(<item>item04</item>);

Similar Messages

  • Create XML dynamically from schema and Java bean

    Hi,
    I'm looking for suggestions on the best approach to create an XML file programatically from a schema and Java bean.
    The schema used is not fixed and may vary with each request so a dynamic way to create the XML is required.
    Is there an API available that allows me to achieve this easily? Any help would be appreciated to point me in the right direction.
    Thanks.

    XMLBeans or JAXB should work for you.
    - Saish

  • Create xml dynamically

    Hi Folks, I want to, within a batch process, create a simple peice of xml and data. Within the process I know what my tags are to be. I will have data as well. And so I simply want to construct this xml (with the tags and data) and then pass this xml as a string to another method.
    There is no need for dtd's here or validation. Just simple basic ... a few tags ... a little data ...
    So I can just construct this using a stringBuffer ... or do I use an api / parser ... ?

    Cool. Good thoughts. I can go look at the javadoc for jdk1.5 ... in lieu of that, as I am using 1.4, what api, pkg, class would be most appropriate for such a simple scenario? It seems like most of what I see in dom is geared more towards reading and parsing existing xml.

  • Create XML file with worksheet's dynamically assigned through XSLT

    Hi all
    I have a requirement to create a xml file with worksheets dynamically created based on a field value in the internal table .
    I have all my values in internal table,  and am calling the transformation from bsp application.
    Say the internal table has field dataxyz, for every change in value in this field dataxyz  i need to create separate worksheet and populate that sheet with some corresponding values .
    please guide me how to create worksheet dynamically.
    thanks in advance.
    Bharathy
    Edited by: elam.bharathy on May 16, 2011 6:51 AM

    Can you use a schema when we compose XML doc from Database tables?
    Actually, I'm using SQL Server (sorry, wrong forum). But, I thought a Java tool would have a solution for me.

  • Dynamically creating XML using Sap-xMII Colum and Row Action Block

    Hi,
    I am trying to create a xMII-format XML using IlluminatorDocument Action Block.
    My problem statement is during run time I am required to create columns on the fly.which I have done using xMII Colum Action block.but now I am required to assing values to these dynamically created columns.I have tried using Data Item and Row action block but am not sucessful in doing so.Can anyone help in creating this xml Dynamically.
    The steps that I have followed is
    defined
    tagquery action block and defined tagquery
    blank Illuminator Document Action block
    put a repeater on result of tag query
    set a counter
    updated the counter
    used column action block and mapped the column name i.e IlluminatorColumn_0.Name------"test"&Local.count
    my column output looks like
    Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
              </Columns>
    </Rowset>
    </Rowsets>
    after this action block i want to assign values to each column i.e
         <Row/>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
    i.e erach row tags should be filled with columntag and value
    but i am not able to achieve the same
    Can anyone help me doing this

    After adding IllumColum Action block I have created 5 columns dynamically
    but now I am unable to add row.
    currently for everycolumn created it is giving one row  without any column node
    the configurations that I have done in Data Item Action Block is
    In My Link Editor
    IlluminatorColumn_0.Name----
    >IlluminatorDataItem_0.Name
    hardcoded the value i.e 20----
    >IlluminatorDataItem_0.Value
    IlluminatorDocument_0.Output----
    >IlluminatorDataItem_0.IlluminatorDocument
    current resultset I am getting is
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
              </Columns>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
         </Rowset>
    </Rowsets>

  • Creating a dynamic jtree using datas retrieved by dom in xml parsing

    help me with code to create a dynamic jtree using data retrieved as nodes by xml parsing using dom

    Ok, so you want to make a tree. To determine the data that appears in a tree, you have to make a custom tree model. The API for this is at :
    http://java.sun.com/j2se/1.4.2/docs/api/
    A tutorial for using trees is at :
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    I assume you are going to be using Nodes, since you are using XML. For this I might start with something like
    class NodeTreeModel implements TreeModelI would then implement the 'getChildCount()' as the number of subnodes a node has, and the value of a tree node to the nodes value.
    Hope that starts you off.

  • Creating a dynamic nested menu with xml data received from a webservice

    I need to create a dynamic menu based on a xml returned by a webservice.
    the xml comes basically in this format:
    [quote]
    <resposta>
        <status>Success</status>
        <mensagem>Whatever</mensagem>
        <dados>
            <projeto nome="name" cliente="client name">
                <atividade nome="name">
                    <etapa>
                        <nome>name</nome>
                         <other_attributes>...</other_attributes>
                    </etapa>
                    (other etapas)
                 </atividade>
                 (other atividades)
            </projeto>
            (other projetos)
        </dados>
    </resposta>
    [/quote]
    What I need is to create a menu like:
    - Projeto.Nome - Projeto.Cliente:
        - Atividade.nome:
            (start button) etapa1
            (start button) etapa2
    - Projeto2.Nome - Projeto2.Cliente:
        - Atividade.nome:
            (start button) etapa1
            (start button) etapa2
    And so on...
    I've tried using an HTTPService and a DataGroup, this code above works fine for  display the projeto's names:
    [quote]
    <s:HTTPService id="loginService"
                            url="http://timesheet.infinitech.local/services"
                            method="POST" contentType="application/xml"
                            result="handleLoginResult();"
                            fault="handleFault(event);" >
                            <s:request xmlns="">
                                <requisicao>
                                    <tipo>login</tipo>
                                    <usuario>{campoUsuario.text}</usuario>
                                    <senha>{campoSenha.text}</senha>
                    </requisicao>
                </s:request>
    </s:HTTPService>
    and the DataGroup:
    <s:DataGroup dataProvider="{tarefasService.lastResult.resposta.dados.projeto}" width="100%" y="100" x="20"
                         includeIn="Principal">
                <s:layout>
                    <s:VerticalLayout />
                </s:layout>
                <s:itemRenderer>
                    <fx:Component>
                        <s:ItemRenderer>
                            <s:layout>
                                <s:HorizontalLayout />
                            </s:layout>
                            <s:Button />
                            <s:Label text="{data.nome}" />
                        </s:ItemRenderer>
                    </fx:Component>
                </s:itemRenderer>
            </s:DataGroup>
    [/quote]
    I have then tried including another datagroup inside the datagroup item renderer, but I just couldn't get it to work anyway, and tried it in a lot of ways... (basically, it would be a datagroup with dataProvider={data.atividade}).
    Can anyone tell me how to get this to work?
    I've uploaded an example xml, you can use it as the url for the HTTPService:
    http://www.pdinfo.com.br/example.xml
    Thanks in advance.

    Hi,
    A lot of the information you need is in Adobe's scripting guide http://www.adobe.com/go/learn_lc_scriptingReference  Also there is a very useful Adobe guide to Calculations and Scripts (and while it is for version 6 it is still very good because of the way it is laid out) http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
    The Javascript could be used in the Layout: Ready event.
    For italic font:
    if (...some test...)
         this.font.posture = "italic";
    else
         this.font.posture = "normal";
    For bold font:
    if (...some test...)
         this.font.weight = "bold";
    else
         this.font.weight = "normal";
    The script will change the font for the complete field. I don't think you can change parts of a field.You can also change font colour and font type (the guides above will help).
    Good luck,
    Niall

  • Create xml tag dynamically within simple transformation

    Hi all together,
    I'm faceing the following problem:
    There is a internal table provided, consisting of name/value-pairs. Something like
    ls_struc-name = 'NAME1'.
    ls_struc-value = 'XYZ'.
    append ls_struc to lt_struc
    ls_struc-name = 'CITY1'.
    ls_struc-value = 'Munich'.
    append ls_struc to lt_struc
    and so on.
    I have to create this XML (with simple transformation):
    <NAME1>XYZ</NAME1>
    <CITY1>Munich</CITY1>
    Everythings works fine so far (tables, values etc.), but I have problems with creating the XML-Tag, e.g <NAME1> from "$line.name" within the transformation. I don't have any information about the data structure (therefore "call transaction id" does not work).
    Any hint is useful!!!
    Best regards,
    Thomas

    Exaple program for creating XML file from abap
    REPORT  z_xit_xml_dom_create.
      TYPE-POOLS: ixml.
      TYPES: BEGIN OF xml_line,
              data(256) TYPE x,
             END OF xml_line.
      DATA: l_ixml            TYPE REF TO if_ixml,
            l_streamfactory   TYPE REF TO if_ixml_stream_factory,
            l_ostream         TYPE REF TO if_ixml_ostream,
            l_renderer        TYPE REF TO if_ixml_renderer,
            l_document        TYPE REF TO if_ixml_document.
      DATA: l_element_flights TYPE REF TO if_ixml_element,
            l_element_airline TYPE REF TO if_ixml_element,
            l_element_flight  TYPE REF TO if_ixml_element,
            l_element_from    TYPE REF TO if_ixml_element,
            l_element_to      TYPE REF TO if_ixml_element,
            l_element_dummy   TYPE REF TO if_ixml_element,
            l_value           TYPE string.
      DATA: l_xml_table       TYPE TABLE OF xml_line,
            l_xml_size        TYPE i,
            l_rc              TYPE i.
      DATA: lt_spfli          TYPE TABLE OF spfli.
      DATA: l_spfli           TYPE spfli.
      START-OF-SELECTION.
    *   Fill the internal table
        SELECT * FROM spfli INTO TABLE lt_spfli.
    *   Sort internal table
        SORT lt_spfli BY carrid.
    *   Start filling xml dom object from internal table
        LOOP AT lt_spfli INTO l_spfli.
          AT FIRST.
    *       Creating a ixml factory
            l_ixml = cl_ixml=>create( ).
    *       Creating the dom object model
            l_document = l_ixml->create_document( ).
    *       Fill root node with value flights
            l_element_flights  = l_document->create_simple_element(
                        name = 'flights'
                        parent = l_document ).
          ENDAT.
          AT NEW carrid.
    *       Create element 'airline' as child of 'flights'
            l_element_airline  = l_document->create_simple_element(
                        name = 'airline'
                        parent = l_element_flights  ).
    *       Create attribute 'code' of node 'airline'
            l_value = l_spfli-carrid.
            l_rc = l_element_airline->set_attribute( name = 'code' value = l_value ).
    *       Create attribute 'name' of node 'airline'
            SELECT SINGLE carrname FROM scarr INTO l_value WHERE carrid EQ l_spfli-carrid.
            l_rc = l_element_airline->set_attribute( name = 'name' value = l_value ).
          ENDAT.
          AT NEW connid.
    *       Create element 'flight' as child of 'airline'
            l_element_flight  = l_document->create_simple_element(
                        name = 'flight'
                        parent = l_element_airline  ).
    *       Create attribute 'number' of node 'flight'
            l_value = l_spfli-connid.
            l_rc = l_element_flight->set_attribute( name = 'number' value = l_value ).
          ENDAT.
    *     Create element 'from' as child of 'flight'
          CONCATENATE l_spfli-cityfrom ',' l_spfli-countryfr INTO l_value.
          l_element_from  = l_document->create_simple_element(
                      name = 'from'
                      value = l_value
                      parent = l_element_flight  ).
    *     Create attribute 'airport' of node 'from'
          l_value = l_spfli-airpfrom.
          l_rc = l_element_from->set_attribute( name = 'airport' value = l_value ).
    *     Create element 'to' as child of 'flight'
          CONCATENATE l_spfli-cityto ',' l_spfli-countryto INTO l_value.
          l_element_to  = l_document->create_simple_element(
                      name = 'to'
                      value = l_value
                      parent = l_element_flight  ).
    *     Create attribute 'airport' of node 'from'
          l_value = l_spfli-airpto.
          l_rc = l_element_to->set_attribute( name = 'airport' value = l_value ).
    *     Create element 'departure' as child of 'flight'
          l_value = l_spfli-deptime.
          l_element_dummy  = l_document->create_simple_element(
                      name = 'departure'
                      value = l_value
                      parent = l_element_flight ).
    *     Create element 'arrival' as child of 'flight'
          l_value = l_spfli-arrtime.
          l_element_dummy  = l_document->create_simple_element(
                      name = 'arrival'
                      value = l_value
                      parent = l_element_flight ).
    *     Create element 'type' as child of 'flight'
          CASE l_spfli-fltype.
            WHEN 'X'.
              l_value = 'Charter'.
            WHEN OTHERS.
              l_value = 'Scheduled'.
          ENDCASE.
          l_element_dummy  = l_document->create_simple_element(
                      name = 'type'
                      value = l_value
                      parent = l_element_flight ).
        ENDLOOP.
        IF sy-subrc NE 0.
          MESSAGE 'No data into db table ''spfli'', please run program ''SAPBC_DATA_GENERATOR'' with transaction ''SA38''' TYPE 'E'.
        ENDIF.
    *   Creating a stream factory
        l_streamfactory = l_ixml->create_stream_factory( ).
    *   Connect internal XML table to stream factory
        l_ostream = l_streamfactory->create_ostream_itable( table = l_xml_table ).
    *   Rendering the document
        l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                              document = l_document ).
        l_rc = l_renderer->render( ).
    *   Saving the XML document
        l_xml_size = l_ostream->get_num_written_raw( ).
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize = l_xml_size
            filename     = 'c:\temp\flights.xml'
            filetype     = 'BIN'
          CHANGING
            data_tab     = l_xml_table
          EXCEPTIONS
            OTHERS       = 24.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.

  • Create XML file dynamically from textInput fields

    Hi,
    I'm very new to Flex and trying to create an application that creates XML files on the users' local computer, based on a users input into textInput fields.
    At the moment I'm having trouble finding how to dyamically create an external XML file at all, ideally when the user pushes a button a browseForSave dialog box will open allowing the user to select somewhere on their hard drive to create the XML file.
    Can anyone give me a hint what direction I should be heading in?
    Thanks

    If this post answered your question or helped, please mark it as such.
    You could use a SharedObject for small files, but in general Flex does not have access to the local hard drive.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      initialize="init()">
      <mx:Script>
        <![CDATA[
          public var mySO:SharedObject;
          public function init():void{
            mySO = SharedObject.getLocal("mydata");
            if(mySO.data.myData!=null){
              var xml:XML = mySO.data.myData;
              fname.text = xml.fname;
              lname.text = xml.lname;
              email.text = xml.email;
          private function storeData():void{
            var xml:XML =
              <data/>;
            if(fname.text != ""){
              xml.appendChild(<fname>{fname.text}</fname>);
            if(lname.text != ""){
              xml.appendChild(<lname>{lname.text}</lname>);
            if(email.text != ""){
              xml.appendChild(<email>{email.text}</email>);
            mySO.data.myData = xml;
            mySO.flush();
          private function resetData():void{
            mySO.clear();
            fname.text = "";
            lname.text = ""
            email.text = "";
        ]]>
      </mx:Script>
      <mx:Form>
        <mx:FormItem label="First Name:">
          <mx:TextInput id="fname"/>
        </mx:FormItem>
        <mx:FormItem label="Last Name:">
          <mx:TextInput id="lname"/>
        </mx:FormItem>
        <mx:FormItem label="Email:">
          <mx:TextInput id="email"/>
        </mx:FormItem>
      </mx:Form>
      <mx:Button label="Store Data" click="storeData()"/>
      <mx:Button label="Reload Stored Data" click="init()"/>
      <mx:Button label="Delete Stored Data" click="resetData()"/>
    </mx:Application>

  • How to create a dynamic RTF report which creates dynamic columns based on dynamic column selection from a table?

    Hi All,
    Suppose I have table, whose structure changes frequently on daily basis.
    For eg. desc my_table gives you following column name on Day 1
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    On Day 2, two more columns are added, viz, Address and Salary.
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    Address
    Salary
    Now I want to create an Dynnamic RTF report which would fetch data from ALL columns from my_table on daily basis. For that I have defined a concurrent program with XML as output type and have attached a data template/data definition to it which takes in XML as input and gives final output of conc program in EXCEL layout. I am able to do this for constant number of columns, but dont know how to do it when the number of columns to be displayed changes dynamically.
    For Day 1 my XML file should be like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 1, EXCEL output from RTF template should be like this.
    Name     Age     Phone
    Swapnill     23     12345
    For Day 2 my XML file should be like this. With 2 new columns selected in SELECT clause.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 2, EXCEL output from RTF template should be like this.
    Name     Age     Phone     Address     Salary
    Swapnill     23     12345         Madrid     100000
    Now, I dont know below things.
    Make the XML dynamic as in on Day 1 there must be 3 columns in the SELECT statement and on Day 2, 5 columns. I want to create one dynamic XML which should not be required to be changed if new columns are added in my_table. I dont know how to create this query and also create their corresponding elements below.
    Make the RTF template dyanamic as in Day1 there must 3 columns in EXCEL output and on Day 2, 5 columns. I want to create a Dynamic RTF template which would show all the columns selected in Dynamic XML.I dont know how the RTF will create new XML tags and how it will know where to place it in the report. Means, I can create RTF template on Day 1, by loading XML data for 3 columns and placing 3 XML tags in template. But how will it create and place tags for new columns on Day 2?
    Hope, you got my requirement, its a challenging one. Please let me know how I can implement the required solution using RTF dynamically without any manual intervention.
    Regards,
    Swapnil K.
    Message was edited by: SwapnilK

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Creation of XML dynamically helppppppppppppp

    hello all
    i had developed an application in java .corresponding to that i want
    to create xml that take its value of attributes
    dynamically
    Can anybody help me out how to proceed to this problem
    thanks in advance
    bye

    You can look into JAXB, if you are comfortable with XML Schema and automatic code generation. If not, you can write your own parsing and serialization routines via Xerces and Xalan (available at xml.apache.org). Finally, I am sure there are a number of open source projects that have their own XML serialization and de-serialization schemes. Search www.sourceforge.net.
    - Saish

  • How to create a Dynamic UI that can work as a Graphic builder

    Hi Guys
    I have a requirement here
    There should be a Graphic Builder ...........like the way we see our Flex Builder
    But this should be a web application with the following functionality
    Lot of widgets on your left panel like say meter , cricle, chart, line graph etc. All this would be a different flex widgets(say compiled swf file loaded separately in the main application
    On the right Panel there would be dash board where they can drag and drop this above widgets and create a separate page like dragging a chart. user would be given option to configure the points for chart ....................and the data for the live chart would be feed from the backend
    Now I am little confused to how to go about ?
    Creation of separate widgets is ok ?
    Creation of applcation with this widgets is ok
    Giving an option to drag and drop , configure is ok ?
    But the main thing is that If we have to save the pages created by different user ? What is the best way to do that ? Do we use xml to save the customized widget pages including the UI layout information like widget Graph at coordinate x= 120 and y=56 etc etc then parse these xml to get the Layout back and putting the widget back to their location as the way the user created those pages
    Any suggestion ..................
    Regards
    Biswamit

    assign your library images each a class.  you can then use the "new" constructor to create instances dynamically.

  • Create XML or Create XSL? Output HTML

    Which is the most logical/fastest solution? Creating a dynamic XML Document by an XSQL query and apply a master stylesheet to obtain HTML output, or Create a dynamic stylesheet(XML Document) and apply to a master XML Document to obtain HTML?
    Any suggestions or direction to this question would be of great help.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Manish Mahajan ([email protected]):
    Which is the most logical/fastest solution? Creating a dynamic XML Document by an XSQL query and apply a master stylesheet to obtain HTML output, or Create a dynamic stylesheet(XML Document) and apply to a master XML Document to obtain HTML?
    Any suggestions or direction to this question would be of great help.
    <HR></BLOCKQUOTE>
    IMO here the shorter path:
    - Designs your web page, with your favorite HTML tool, for example Dreamweaver.
    - Converts it with XSplit[url] utility from. It takes a standard html file with special tags for making dynamically generated tags, and generates the XSL,the XML example and the DTD.
    - At last, make the xsql page which generate the same XML generated by the XSplit as demo.
    Best regards, Marcelo.
    null

  • Creating a Dynamic Web Project from existing source?

    I don't see this option in OEPE like there is in Workshop for Weblogic. All I can choose from is "Create Dynamic Web Project" which creates a new project from scratch, or "Create Java Project" which has an option in the wizard to import existing source.. however this makes it a vanilla Java project instead of a Dynamic web project.
    Did the concept of importing existing code into a project not cross anyone's minds when this plugin was developed? It's as if the expectation was that everyone would use this on their own private projects and there would be no collaborative/parallel development.
    What is the recommended way for creating a Dynamic Web project off of existing source code without stomping all over the existing web.xml weblogic.xml?

    There are many "import" scenarios, so let's break them down and lay out the support expectations:
    1. A java ee project created with base Eclipse using Web Tools Platform project types. This scenario includes both the case where the project creator had OEPE installed as well as the case where there was no OEPE installed. In this case, one should use the import existing projects wizard as the project being included already has metadata that can be read directly.
    2. A java ee project created with a non-Eclipse IDE or perhaps completely by hand with rudimentary tools such as notepad. Currently, the way this case is supported is by creating new projects and copying application source into them. Advanced users may be able to configure support in place, but we cannot support users with this approach as the possibility of corruption is high. We are currently working on a set of wizards that will help automate this case. These wizards will be available in the release of OEPE that's slated to ship around the end of 2009 or early 2010.
    3. A project created with BEA Workshop. This case is not supported as there are a number of technologies in Workshop that have been end-of-lifed (such as Apache Beehive). Users with Workshop applications should stay with Workshop until they are able to remove dependencies on end-of-lifed technologies. At that point moving to OEPE is recommended. Unofficially (this option is not supported but may work), advanced users may be able to migrate a Workshop app to OEPE, by stripping out all Workshop metadata (.project, .classpath, .settings, etc.) and by pretending that this is scenario #2 (import of a non-Eclipse application). Don't try this if your application still have dependencies on end-of-lifed technologies.
    - Konstantin

  • Creating InfoObjects Dynamically

    Hi,  Anyone have any ABAP I could use to create infoObjects dynamically?  I have a list of InfoObjects and related attributes and I'd Like to have them created using an ABAP... 
    ThankS!
    There must be some enterprising soul who could help out?
    I thought some enterprising soul would jump on this one.  There has to be a way using a class or BAPI?  anyone?

    Hi
    The upload from XML is a valid method if you can make an XML file with the required values.
    An alternative is to create a BDC with the LSMW instrument or use the BAPI BAPI_IOBJ_CREATE that manage all the different parameters you need (compounding, attribute,...)
    Regards,
    Vishwa

Maybe you are looking for