Creation of XML

Till now i was working on my test server and creation of XML file seemed to be ok.
Now i shifted to live server and suddenly XML creation is a problem. I do not have write access problem as the file is getting created and also root element is getting created. But after root nothing is going inside the file.
I do not understand why suddenly server is behaving like this, but can anybody give clues ? Is there any settings required ?
I am on Tomcat 5/Struts framework and using DOM to create file.
regards
Manisha

i am a newbie in xml
I want to know how to crate xml that takes value
from the application
Waiting for your reply
thanking u
take care
byeAre you talking about saving objects to XML files?
That can easily be done with XMLEncoder and XMLDecoder. Useful when you're too lazy to write a class to input and output to binary files... Like me :D

Similar Messages

  • 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

  • Please help, Urgent ! creation of xml from servlet

    Hi,
    I have to write a servlet that takes user input from a html form and creates a xml file from those input parameters and transform that xml file into html form using xsl program. Whenever the user adds new values to the form this newly generated xml file should overwrite the previous xml file content.
    Can anybody please tell me how to create a xml file from user input in servlet so that I can pass it to a transformer object.
    Thanks in advance!

    why write out the XML, it seems to be only a temporary file?
    Doing as you suggest is extremely risky for when several requests come in at the same time you can never be sure that the file contains the data that you just wrote to it.
    Better to keep the XML all in memory.
    For the XML creation, look no further than DOM. Most XML parsers provide excellent DOM support, I'll be using Xerces 2 here as that's what I'm most familiar with.
    Document doc = new DocumentImpl();
    Element root = doc.createElement("mydoc");
    * fill in the XML
    Element elem = doc.createElement("focuscontrol");
    elem.appendChild(doc.createTextNode("alert('loaded')"));
    root.appendChild(elem);
    elem = doc.createElement("data");
    elem.appendChild(doc.createTextNode("Hello World!"));
    root.appendChild(elem);     
    doc.appendChild(root);     creates an XML Document object like this:
    <?xml version="1.0"?>
    <mydoc>
      <focuscontrol>alert('loaded')</focuscontrol>
      <data>Hello World!</data>
    </mydoc>This XML Document object can be easily passed to an XSLT processor to turn it into HTML.
    String path = getServletContext().getRealPath("/WEB-INF/xsl/");
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Source xslSource = new StreamSource(new File(path, "myxslfile.xsl"));
    Source xmlSource = new DOMSource(doc);     
    t.transform(xmlSource, new StreamResult(out));where out is the PrintWriter for the servlet and your XSL file is stored in yourwebapp/WEB-INF/xsl (thus out of sight of prying eyes).
    I leave it up to you to find an encoding of your request parameters into the generated XML that you like.

  • Creation of XML !DOCTYPE DTD Validation line

    Hello all!
    I've been working in the creation of an XML File via Abap Objects.
    <b>if_ixml</b>          For Document Header
    <b>if_ixml_document</b> For Document Header
    <b>if_ixml_element</b>  For Nodes and their Child Nodes
    I have already developed the code for creating the XML File.
    I think I have it completed, but I don't know how to insert the line that starts with <!DOCTYPE>.
    This line validates all the DOM tree structure against a DTD File.
    I've been searching for an example of how to do it, but I dind't find anything
    Wich is the proper Class, object or method that I have to implement for this topic?
    The Line I have to post on the XML file is one like this:
    <!DOCTYPE e-billing-payable PUBLIC "-//BxxxxFxxxxx.com//DTD Ebilling Enterprise to Bank 1.0//EN" "https://hb.xxx.com.ar/cobranzasonline/ebillingE2B.dtd">
    Thanks in advance,
    Claudio.

    Thanks Sandra, I was succesfull in getting the doc type but here is the format that I need
    <!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN" "gsafeed.dtd">
    If I try to use entity declaration , it dosen't let me without passing the SYSTEM paramater. Is there any method within if_ixml_document_type or outside, that would help me pass the attributes to get in the below format.
    <!DOCTYPE rootElement PUBLIC "PublicIdentifier" "URIreference">
    Thanks
    Ganesh.S

  • Efficient way for Continous Creation of XML Content?

    Hi
    I have a requirement of creating xml content from the data extraced from a udp packet.
    As the packet arrives, i have to generate appropriate xml content from them and keep in the same single xml file.
    Problem:
    Since the xml file is not a flat file, i can't just append the new contents at the end. So if i have to write into xml file, Each and Every time i have to parse the content as a packet arrives and insert the new content under appropriate parent. I think this is not the most efficient way.
    Every time parsing the file may affect cpu time and as the file grows in size, the memory will also be a constraint.
    Other options i could think of
    * Hold the XML Document Object in memory until a certain event like timeout for receiving packet and write into the xml file at oneshot.
    * Serialize the objects containing the extracted packet content to a temp file and after some event, parse and create the xml file at oneshot
    Which is the efficient way or is there any design pattern to handle this situation? I am worried about the memory footprint and performance on peak loads
    I am planning to use JDOM / SAX Builder for xml creation.
    Thank you...

    Lot's of "maybe" and "I think" and "I'm worried about" in that question, and no "I have found" or "it is the case that". In short, you're worrying too much about problems you don't even know you have. XML is a verbose format anyway, efficiency isn't paramount when dealing with it. Even modestly powered machines can deal with quite a lot of disk I/O these days without noticeable impact. The most efficient thing you can do here is write something that works, and see if you can live with the performance

  • Question regarding creation of xml-elements with numerical values

    When i create xml-documents from xml stored in the database (xmltype table based on an xml-schema), i find that numerical values which were stored as 0.395 (with the "." as the decimal separator) are retrieved as .395.
    Is it possible to apply a format mask so that the numerical value is retrieved as 0.395?
    thanks, Bart
    N.b. Note that i select a complete xml-fragment. So my problem seems related to the storage or retreival of 'schredded' XML. I do not use SQL/XML-functions with relational data, in which case i know how to apply a format mask.

    I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
    I have posted a simple example over here Re: Is it possible to influence the creation of empty elements?

  • Portal Domain creation - config.xml

    Folks,
    I created a portal domain using weblogic 8.1 GUI configuration wizard.It wlp.jar
    file as a template to create this one.
    After creating this, I opened config.xml file of new portal domain and it have
    JDBC connection pool setup for point database.I do not want to have this in my
    config.xml file and do not want to remove this manually because of our automation.
    How can I resolve this?
    Thanks
    - Spider

    if you don't want the JDBC Connection pool ion your domain ,
    please use the config Wizard to configure JDBC connection pool with database
    other that pointbase at the time of creation.
    otherwise using the wizard, you change the properties of exisiting domain.
    Karthi.
    "SpiderMan" <[email protected]> wrote in message
    news:3f74b601$[email protected]..
    >
    Folks,
    I created a portal domain using weblogic 8.1 GUI configuration wizard.Itwlp.jar
    file as a template to create this one.
    After creating this, I opened config.xml file of new portal domain and ithave
    JDBC connection pool setup for point database.I do not want to have thisin my
    config.xml file and do not want to remove this manually because of ourautomation.
    >
    How can I resolve this?
    Thanks
    - Spider

  • Disable datalink creation on xml import

    Hi
    I am trying to disable the datalink creation on an xml import.
    It is possible in the indesign xml import options window but I cannot find the way to disable it for the custom import I perform in my plug-in.
    Thanks a lot if you can help me about this.

    Hi David,
    Do not use "date of creation" and "SAP user" fields in "Edit" form. You don't need to add this fields to "Edit" page of your xml forms since they are available as Properties.
    In the Project Browser go to
    Expand Properties -> System item and you can see
    "Created By" -> for Sap User and
    "Created" -> for date
    You can use lots of variables here in your RenderListItem and Show views.
    Hope this helps.
    Regards
    Abdul.

  • Automate report creation from XML

    Hello,
    Is there a way to automate the report creation based on a specification based on a XML file ?
    Regards,
    Laurent.

    Thanks,
    I will have a look to the RAS SDK.
    If the API are available it will be sufficient to start building the solution.
    Thanks,
    Laurent

  • 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 ?

  • Marshaling problem in creation of xml thru JAXB

    Hi java gurus,
    I am trying to create an XML which will has the data of database using JAXB. I am able to generate JAXB classes, but its giving some error the stack trace is like this
    java.lang.NoSuchMethodError: com.sun.xml.bind.marshaller.XMLWriter.setXmlDecl(Z)V
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:223)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:238)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:233)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:126)
         at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
         at org.bas.dss.common.dao.MetaDAO.createInstInformation(MetaDAO.java:627)
         at org.bas.core.fidownload.DownloadActionHandler.getInstInfoXMLData(DownloadActionHandler.java:163)
         at org.bas.core.fidownload.DownloadActionHandler.performPreDownloadAction(DownloadActionHandler.java:74)
         at org.bas.core.fidownload.DownloadAction.perform(DownloadAction.java:129)
         at org.bas.core.fidownload.DownloadAction.execute(DownloadAction.java:79)
    the method is like this,
    valueObject = getInstInformation (registrationId, appVersionId);
    System.out.println("MetaDAO-->valueObject:"+valueObject); //here i am gettingthe object
    context = JAXBContext.newInstance("org.bas.dss.common.vo.bii");
    System.out.println("MetaDAO-->context:"+context); //here i am getting the context
    sumissionInfoMarshaller = context.createMarshaller();
    System.out.println("MetaDAO-->sumissionInfoMarshaller:"+sumissionInfoMarshaller); //here also i am getting some object type
    sumissionInfoMarshaller.setProperty(
    Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
    System.out.println("MetaDAO-->MetaDAO-->");
    sumissionInfoMarshaller.marshal (valueObject, streamToWrite); // the problem is coming here.
    anyone can suggest what will be the problem, and tell me how can i resolve this issue,
    thanks in advance,
    varma

    Pl post this question to SDK Forum

  • Creation of xml file in r3 application server (AL11)

    Hi All
    I need to create xml file in r3 application server (AL11) using PI.Can we achieve this using file adapter or we need to proceed with proxy. As I tried with file adapter with FTP transport protocol. Its giving the error as "Unable to create new pooled resource:FTPEx:Login incorrect".
    Thanks in advance
    Regards,
    Kartikeya

    Hi
    need to create xml file in r3 application server (AL11) using PI.Can we achieve this using file adapter or we need to proceed with proxy.
    To generate file at AL11 file directory use File adapter. Proxy is not required for this
    Its giving the error as "Unable to create new pooled resource:FTPEx:Login incorrect".
    1. Check with the Login credentials for the FTP service.
    2. FTP User you use in communication channel must have 777 access to FTP location.
    Thanks
    Gaurav

  • Creation of XML files with the DME Engine

    Hi Experts,
    For a Belgium client, I have a requirement to generate DME file in XML format for payments made to foreign and domestic vendors. I want to know the following,
    1. Can DME file be generated in XML format using classic payment medium programs RFFOBE_E and RFFOBE_I.
    2. If not why and what are the other options.
    3. I also came to know that there is an options of using Payment medium workbench - through XML format trees BE_BEPDTA and BE_PIBDTA. But since we are in 4.6C, i am not able to create a payment format. Is there any support package or patch that is required.
    4. I tried for SEPA_CT - again a XML format tree but was not very successful as that too was not available in SAP 4.6C. Is there any way that I can get this done in 4.6C - any support packages or patches available?
    Thanks

    HEllo,
    1.Classic RFFO* programs don't support XML files. Technical constraint.
    2.XML can be generated through DME tree ( PMW in this case ).
    3.PMW is available as of 4.6C SP 34.
    4.XML is available in DME Engine as of 4.6C SP 47.
    REgards,
    Renan Correa

  • 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

Maybe you are looking for