XML file creation

I am trying to write XML file from xPath with corresponding
values from database. Below are the part of xpath's and values in
1. I am trying to write as XML file with this format in 2(this is
part of file). Could any please tell me how to write this file?
1)
ReturnDataState/FEIN
ReturnDataState/NameControl
ReturnDataState/OriginalSubmissionID
ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/AddressLine1
ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/AddressLine2
ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/City
ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/State
ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/ZIPCode
ReturnDataState/BusinessEntity/Header/HdrAddress/AddressChange
ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/AddressLi ne1
ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/AddressLi ne2
ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/City
ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/State
ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/ZIPCode
ReturnDataState/BusinessEntity/Header/HdrCheckBox/AmendedReturnIndicator
ReturnDataState/BusinessEntity/Header/HdrCheckBox/AttachmentFiledIndicator
0
ReturnDataState/BusinessEntity/Header/HdrCheckBox/CalendarYearFilerIndicator
ReturnDataState/BusinessEntity/Header/HdrCheckBox/DebtIndicator
ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120AIndicator
0
ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120HIndicator
0
ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120Indicator
1
ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120SIndicator
0
ReturnDataState/BusinessEntity/Header/HdrCheckBox/FedConsIndicator
0
2)
<?xml version="1.0" encoding="UTF-8"?>
<ReturnDataState>
<FEIN></FEIN>
<NameControl></NameControl>
<OriginalSubmissionID></OriginalSubmissionID>
<BusinessEntity>
<Header>
<HdrAddress>
<Address>
<USAddress>
<AddressLine1></AddressLine1>
<AddressLine2></AddressLine2>
<City></City>
<State></State>
<ZIPCode></ZIPCode>
</USAddress>
</Address>
<AddressChange></AddressChange>
<StateOfIncorporation>
<USAddress>
<AddressLine1></AddressLine1>
<AddressLine2></AddressLine2>
<City></City>
<State></State>
<ZIPCode></ZIPCode>
</USAddress>
</StateOfIncorporation>
</HdrAddress>
<HdrCheckBox>
<AmendedReturnIndicator></AmendedReturnIndicator>
<AttachmentFiledIndicator>0</AttachmentFiledIndicator>
<CalendarYearFilerIndicator></CalendarYearFilerIndicator>
<DebtIndicator></DebtIndicator>
<Fed1120AIndicator>0</Fed1120AIndicator>
<Fed1120HIndicator>0</Fed1120HIndicator>
<Fed1120Indicator>1</Fed1120Indicator>
<Fed1120SIndicator>0</Fed1120SIndicator>
<FedConsIndicator>0</FedConsIndicator>

These links should help you. The process is pretty simple.
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=part_dev.htm
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=part_dev.htm

Similar Messages

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • XML file creation in Tool 8.45

    Hello All,
    I am on tools 8.45. I have a requirement to create an XML file from peoplesoft and send it to an ESB server(Enterprise Service Bus).
    How can i achieve this. I need to do delta as well as full publish.
    For example whenever there is job data update i need to send the a file to the esb server and at the end of the day i need to send a large single file again
    Can i acheive this in PS 8.8 and tools 8.45

    May be try to define as below and see what happens.
    types : gty_line_t(100) TYPE x.
    data : gt_restab        TYPE STANDARD TABLE OF gty_line_t,
             <gs_restab>        LIKE LINE OF gt_restab.
    OPEN DATASET l_file_name FOR OUTPUT IN BINARY MODE .
              IF sy-subrc = 0.
                LOOP AT gt_restab ASSIGNING <gs_restab>.
                  TRANSFER <gs_restab> TO l_file_name.
               endloop.
              endif.
    CLOSE DATASET l_file_name.

  • APIs for XML file creation

    hi,
    can anyone tell me whether there is any Java APIs for creating XML file( similar to the one used for parsing).
    thx in advance,
    -Soni.

    Hi,
    you can try the org.apache.xml.serialize.XMLSerializer which is included in the Apache Xerces Package (http://xml.apache.org/xerces). This Class allows you to serialize a org.w3c.dom.Document to a OutputStream which can be a FileOutputStream.
    Check out this code:
    OutputFormat format = new OutputFormat();
    format.setDoctype("mapping","mapping.dtd");
    format.setEncoding("ISO-8859-1");
    format.setLineWidth(100);
    XMLSerializer ser = new XMLSerializer(new FileOutputStream(f),format);
    ser.serialize(doc);
    Rgds,
    Sebastian

  • XML file creation and saving

    Hi I am looking for a simple way of creating a xml file, populate it with data and saving it. Is there any simple way to achieve this ?

    What API/language are you using?
    If it's Cocoa look at NSXMLDocument
    http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSXM LDocument_Class/Reference/Reference.html
    Eric

  • Visual Studio TestStand API runtime enable/disable XML reporting file creation

    I am looking for a Visual Studio C# solution to selectively disable creation of the report generation XML file using the TestStand API.
    These XML files are useful for active troubleshooting for technicians, but wind up cluttering important directories with useless information most of the time.
    I am aware that the XML file creation can be disabled through the TestStand Sequence Editor menu item Configure | Result Processing | Output Name Report | Enabled unchecked option.
    This is helpful, but:
    1. I have not found a way to check-uncheck this feature at runtime.
    2. I do not believe that this would be an effective solution for my instal-less Base Deployment Paradigm.
    Any help or ideas would be appreciated!
    Solved!
    Go to Solution.

    Thank you for the quick and concise response James_Grey!
    This is useful, complete, and implementable but not exactly what I was hoping for.
    I was hoping to be able to enable/disable the XML file creation for the currently executing instance of the engine prior to sequence start.
    I would rather not disable reporting through a configuration file that would effectively disable it for all uses of TestStand until it was re-enabled again.
    Are my expectations unrealistic?
    Does anyone have any idea how creation of the XML file can be enabled/disabled for an active instance of the engine prior to sequence start through the API without altering the file based configuration of TestStand?
    I have seen some postings around 2008 that indicate this can be done, but I was unsuccessful implementing those solutions in TestStand 2013.

  • Creating XML files in a userfriendly program?

    Hello Forum
    I am creating a simple application that runs of data in an
    extenal XML file.
    The client has not enough money to create a database and the
    php middleware to facilitate the XML file creation so I am trying
    to look into a way for him to create the XML from Excel perhaps...?
    The person is not the most computer literate but I think if there'
    s a popular or somewhat userfriendly program that I could configure
    to take a bunch of rows (name, title, link, description) and export
    that data properly configuered as an XML file which he can then FTP
    up to the server that would be a fantastic alternative...
    Does anyone have any good (or bad) experiences with such an
    approach? Any recommendations for software that regular people
    would know how to use? (I would like to avoid having to sit down
    with him and explain him the beauty of XML...)
    Any advice is much appreciated.
    Thank you for your time.
    Cheers
    stephank

    Other than Dreamweaver you could try microsoft xml notepad
    http://www.microsoft.com/downloads/details.aspx?FamilyID=72d6aa49-787d-4118-ba5f-4f30fe913 628&DisplayLang=en

  • Simple way to create XML files on desktop

    Hello Forum
    I am creating a simple application that runs of data in an
    extenal XML file.
    The client has not enough money to create a database and the
    php middleware to facilitate the XML file creation so I am trying
    to look into a way for him to create the XML from Excel perhaps...?
    The person is not the most computer literate but I think if there'
    s a popular or somewhat userfriendly program that I could configure
    to take a bunch of rows (name, title, link, description) and export
    that data properly configuered as an XML file which he can then FTP
    up to the server that would be a fantastic alternative...
    Does anyone have any good (or bad) experiences with such an
    approach? Any recommendations for software that regular people
    would know how to use? (I would like to avoid having to sit down
    with him and explain him the beauty of XML...)
    Any advice is much appreciated.
    Thank you for your time.
    Cheers
    stephank

    Hello Or,
    Using Script based view, you can use RANK() function.
    From Graphical, I have not found any way to implement RANK. So will have to wait along with you to know, if there is an easier way to implement rank from graphical calculation view.
    Regards,
    Krishna Tangudu

  • Issue in Creation of XML file from ABAP data

    Hi,
    I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
    The required format is
    -<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
       - <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
              <Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
              <Header4  1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
               <Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
          </Header2>
       </Header1>
    Iu2019m using the call transformation to convert ABAP data to XML file.
    So please anybody can help how to define XML structure in transaction XSLT_TOOL.
    And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
    Please help me in this to get it resolved.

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Help in creation of XML file for IDOC postings

    Hi All,
    Need help if anyone has knowledge/experience in creating XML files for IDOC processing.
    We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface.
    We have an existing input file, which is working correctly.  We are trying to modify this existing input file for a new Tax Code (Non-deductible inverse tax liability).   This tax code is working fine for manual postings.   But, through IDOC, tax postings are not correctly triggering.
    Could you please confirm if any one has experience on this, so that I can share more details for resolving.
    Thanks & Regards,
    Srini

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Can I automate the creation of a cluster in LabView using the data structure created in an autogenerated .CSV, C header, or XML file?

    Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file?  I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types.  (Ideally, I would like to do this with a C header file only.)  Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on.  Unfortunately, this capability has not been created yet.  Has anyone done something like this before? Thanks in advance for the help.  
    Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
    Solved!
    Go to Solution.

    smercurio_fc wrote:
    Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
    You can try LabVIEW scripting, though be aware that this is not supported by NI. 
     Wow!  Thanks for the quick response!  We would use this cluster as a fixed data structure.  No need to change the structure during runtime.  The cluster would be a cluster of clusters with multiple levels.  There would be not pattern as to how deep these levels would go, or how many elements would be in each.   Here is the application.  I would like to be able to autocode a Simulink model file into a DLL.  The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object.  I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink).  To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically.   Right now I can do everything but the auto creation of the cluster.  I can manually build the cluster to match the Simulink model bus structure and it runs fine.  But this is only for an example model with a small structure.  Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks!  

  • Creation of External table by using XML files.

    I am in the process of loading of XML file data into the database table. I want to use the External Table feature for this loading. Though we have the external table feature with Plain/text file, is there any process of XML file data loading into the Database table by using External table?
    I am using Oracle 9i.
    Appreciate your responses.
    Regards
    Edited by: user652422 on Dec 16, 2008 11:00 PM

    Hi,
    The XML file which U posted is working fine and that proved that external table can be created by using xml files.
    Now My problem is that I have xml files which is not as the book.xml, my xml file is having some diff format. below is the extracts of the file ...
    <?xml version="1.0" encoding="UTF-8" ?>
    - <PM-History deviceIP="172.20.7.50">
    <Error Reason="" />
    - <Interface IntfName="otu2-1-10B-3">
    - <TS Type="15-MIN">
    <Error Reason="" />
    - <PM-counters TimeStamp="02/13/2008:12:15">
    <Item Name="BBE-S" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="BBE-SFE" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="ES-S" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="ES-SFE" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="SES-S" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="SES-SFE" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="CSES-S" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="CSES-SFE" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="UAS-S" Direction="Received" Validity="ADJ" Value="135" />
    <Item Name="UAS-SFE" Direction="Received" Validity="ADJ" Value="0" />
    <Item Name="SEF-S" Direction="Received" Validity="ADJ" Value="135" />
    </PM-counters>
    <PM-counters TimeStamp="03/26/2008:12:30">
    <Item Name="BBE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="BBE-FE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="ES" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="ES-FE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="SES" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="SES-FE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="CSES" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="CSES-FE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="UAS" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="UAS-FE" Direction="Received" Validity="OFF" Value="0" />
    <Item Name="PSC" Direction="Received" Validity="OFF" Value="0" />
    </PM-counters>
    </TS>
    </Interface>
    </PM-History>
    My problem is the Item Name and Direction the value of both(ex PSCReceived or UASReceived) will be treated as the coulmn name of the table and '0' would be the value of that column. I am confused how to create the external table creation program for that.
    I would really appreciate your responses.
    Regards

  • Does creation of new xml file captures latest value?

    HI All,
    say for instance, if web port has been changed from 8000 to 80 and after this change xml file gets corrupted in apps tier...
    Does creation of new xml file in apps tier captures latest value of web port 80 and all other latest changes made so far?
    Thanks for your time...

    HI All,
    say for instance, if web port has been changed from
    8000 to 80 and after this change xml file gets
    corrupted in apps tier...
    Does creation of new xml file in apps tier captures
    latest value of web port 80 and all other latest
    changes made so far?
    Thanks for your time...If autoconfig is not run after the changes are made to the context file, and the file is lost then the changes are lost.

  • Automate creation of web.xml file for tomcat 4.1.29

    hi , this is with ref to Tomcat 4.1.29, if i am correct, each Servlet in the application has to be mentioned in the web.xml file for the Tomcat to know about it. Is there any way to automate the creation of web.xml file , depending on the contents of the Servlet folder of the application. Any way to escape from writing each Servlet name in web.xml file.
    rc

    Hello,
    Maybe you should check if you can use Ant tool to do
    that. I am not sure if it can help u.
    Zeph.
    http://ant.apache.org/
    It will, specially if used in conjunction with XDoclets :
    http://xdoclet.sourceforge.net/
    XDoclet has Ant tasks to generate web.xml files.

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

Maybe you are looking for

  • HT1414 how to unlock my disabled ipod

    Thought I had changed my password to my bike lock code but apperently It didnt work cause I tried everything i would have changed it to, till it disabled my Ipod

  • Accounts (Freight Cost) in GR not being cleared

    Hi SAP gurus, There are postings done in a Material account 3xxxx in which the Freight purchase was charged in the Service account 4xxxx. However, 4xxxx is not being cleared during the period end. Would it be any setting in the PO or FI that is causi

  • Facing problem in loading table using IKM Oracle Slowly Changing Dimension

    Hi, I am facing problem in loading dimension table using IKM Oracle Slowly Changing Dimension Following is the setup :- SRC :- source_table (MSSQL) Staging :- staging_table (MSSQL) TRGT :- target_table (Oracle) -------- source_table group_id     int

  • Apex with exising tables

    Hai all, I have a table in my Oracle DB 9i.. k.. All I want to know can I make a form through Apex and give access to the user to the form such that he can enters data directly into the table with some modifications... the table is already created an

  • Music Video Playback

    Tell me if I'm wrong, but after watching a music video, I get a black screen and won't go to the next video. If I hit the fwd button, I get the prior video menu and can select another video. Is this the way its suppose to work? Is there a way to play