Problem in generating a xml

i am developing a application in which i am creating a xml when i am doing it with tomcat it is working but when i am doing it with sun application server it is not creating xml i think it is because of all the files are bundled in war file.i am attaching that file also if u have some sol. plz. tell me thanks in advanced.
package view.action;
import datasources.*;
import view.*;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.Attr;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import java.io.*;
import java.util.*;
import java.sql.*;
public class BeanGenerateXML
private String sfilename = "";
private String sSQLWhere = "";      //To store the Filename
private Document doc;               //To store the XML doc
          private ResultSet rst;               //Recordset from which the XML doc has to be built
          private FileWriter fs;               //File writer
          private BrowseSession session;
          private DBConnectorImpl dbDataSource;     //This for using database API's
          public BeanGenerateXML(BrowseSession session){
          this.session = session;
          //Set the Condition
     public void setSQLWhere(String pSQLWhere) {
               if (pSQLWhere!=null && pSQLWhere != "")
                    sSQLWhere = " WHERE " + pSQLWhere;
          //Set the filename
     public void setFileName(String pfilename) {
               sfilename = pfilename;
          //Get the filename
     public String getFileName(String x) {
               return sfilename;
          //Generate XML Document from the recordset
     public void Generate()
     try
//Create Document
DocumentBuilderFactory dbf =DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.newDocument();
     Element main,root,item;
     //the Top element
     main = doc.createElement("faqs");
     main.appendChild(doc.createTextNode("\n"));
     String nfaqid = "";
     String sfaq = "";
     String sfaqans = "";
//               String sfaqgroup = "";
               int icounter=1;
               String field = "";
               while (rst.next())
     //should check whether there is data not implemented
     nfaqid = rst.getString(1);
     sfaq = rst.getString(2);
     sfaqans = rst.getString(3);
//                    sfaqgroup = rst.getString(4);
     root = doc.createElement("faq");
     root.appendChild(doc.createTextNode("\n"));
     //add nfaqid Element
     item = doc.createElement("nfaqid");
     item.appendChild(doc.createTextNode(nfaqid));
     root.appendChild(item);
     root.appendChild(doc.createTextNode("\n"));
     //add sfaq Element
     item = doc.createElement("sfaq");
     item.appendChild(doc.createTextNode(sfaq));
     root.appendChild(item);
     root.appendChild(doc.createTextNode("\n"));
     //add sfaqans Element
     item = doc.createElement("sfaqans");
     item.appendChild(doc.createTextNode(sfaqans));
     root.appendChild(item);
     root.appendChild(doc.createTextNode("\n"));
     //add sfaqroup Element
//      item = doc.createElement("sfaqgroup");
//      item.appendChild(doc.createTextNode(sfaqgroup));
//      root.appendChild(item);
//     root.appendChild(doc.createTextNode("\n"));
                    field = "idMenuItem" + icounter;
     //add sfaqans Element
     item = doc.createElement("lfaqname");
     item.appendChild(doc.createTextNode(field));
     root.appendChild(item);
     root.appendChild(doc.createTextNode("\n"));     
                    field = "idMenuItem" + icounter + "Detail";
     //add sfaqans Element
     item = doc.createElement("lfaqans");
     item.appendChild(doc.createTextNode(field));
     root.appendChild(item);
     root.appendChild(doc.createTextNode("\n"));          
                    icounter = icounter + 1;
     //add to the Top Element
     main.appendChild(root);
     main.appendChild(doc.createTextNode("\n"));
     }//end of for
     doc.appendChild(main);
               //close the resultset and connection after the use
               rst.close();
               dbDataSource.Close();
     catch(Exception e)
     System.out.println("Error " + e);
     }//end of generate
     //walk the DOM tree and Build as you go
     private void Walk(Node node) throws IOException
     int type = node.getNodeType();
     switch(type)
     case Node.DOCUMENT_NODE:
     fs.write("<?xml version=\"1.0\" encoding=\""+ "UTF-8" + "\"?>");
     break;
     }//end of document
     case Node.ELEMENT_NODE:
     fs.write('<' + node.getNodeName() );
     NamedNodeMap nnm = node.getAttributes();
     if(nnm != null )
int len = nnm.getLength() ;
Attr attr;
for ( int i = 0; i < len; i++ )
attr = (Attr)nnm.item(i);
fs.write(' ' + attr.getNodeName() + "=\"" + attr.getNodeValue() + '"' );
     fs.write('>');
     break;
     }//end of element
     case Node.ENTITY_REFERENCE_NODE:
     fs.write('&' + node.getNodeName() + ';' );
     break;
     }//end of entity
     case Node.CDATA_SECTION_NODE:
fs.write( "<![CDATA[" + node.getNodeValue() + "]]>" );
break;
     case Node.TEXT_NODE:
     fs.write(node.getNodeValue());
     break;
     case Node.PROCESSING_INSTRUCTION_NODE:
     fs.write("<?" + node.getNodeName() ) ;
     String data = node.getNodeValue();
     if ( data != null && data.length() > 0 ) {
     fs.write(' ');
     fs.write(data);
     fs.write("?>");
     break;
     }//end of switch
     //recurse
     for(Node child = node.getFirstChild(); child != null; child = child.getNextSibling())
     Walk(child);
     //without this the ending tags will miss
     if ( type == Node.ELEMENT_NODE )
     fs.write("</" + node.getNodeName() + ">");
     }//end of Walk
     private void LoadData()
     try {
                    dbDataSource = new DBConnectorImpl(this.session);
                    //open database connection
                    dbDataSource.DBConnect();
                    //Set SQL to be executed
                    dbDataSource.setSQL("SELECT nFAQid, sFAQ, sFAQans FROM FAQ" + sSQLWhere);
                    //Store the result for in a local copy
                    rst = dbDataSource.getResultSet();
     catch (ClassNotFoundException ex) {
     System.out.print(ex.getMessage());
     catch (SQLException ex) {
     System.out.print(ex.getMessage());
     catch (Exception ex) {
     System.out.print(ex.getMessage());
     }//end of LoadData
          //Build the XML file
     public void BuildXML() throws IOException
     fs = new FileWriter(sfilename); //Enter the file name
               LoadData();     //Load data fro FAQ
               Generate(); //Generate the XML File
     Walk(doc); //Output the Doc XML into a file
               fs.close();
     }//end of BuildXML
}

To achieve what you'd like to do, you will need to use Data Templates as a data source. The data template can then reference the JDBC connection to the BI Server. Using data templates will allow you to solve both of your problems (non-flat result sets and linked queries).
Using Answers as a data source or using SQL against the BI Server will always result in a flat XML structure getting generated.
Bryan
Message was edited by:
bwise

Similar Messages

  • _pageflow folder creation problems with generated build.xml

    I currently have a Workshop project with a web app that builds my ear file just fine. But the problem is, when I export the build.xml file from the project and try to run it with ant, it doesn't generate the _pageflow folders that I would expect.  Consequently, it doesn't get packaged in and causes errors when I deploy it.  The funny thing is that if I generate the ear file from Workshop, it builds, deploys, and runs just fine.
    Anybody encountered this before? Does anyone know how the pageflow folders get built?  I narrowed it down the to build.xml <apt> task which seems to be one responsible for creating the pageflow folders. It also seems to be looking for jar file references in the .factorypath file, but I don't quite know which ones I'm supposed to use.
    Any help?

    No help from anyone?

  • Classpath problems when generating deployment xml

    Hi,
    I am new to using Toplink (9.0.4), but not new to CMP. I'm using the Toplink Mapping Workbench and have created my CMP Entity. I right-click on my project and export the Java Source. Everything (homes, local, remote) generates successfully. I then try to export the project deployment XML. However, I get a classpath error stating that it can't find my bean classes. My classpath is set to the area where the Java/Class files are. Do I have to compile my generated classes before creating the deployment XML? It appears as if I do because it works when I compile first, then generate the deployment XML. Is this the correct way to use the tool (generate Java, compile, generate XML)?
    Also, Is there a way this can all be generated via Ant (i.e. something similar to EJBGen)?
    Thanks,
    Mike

    Generating Java using the Mapping Workbench is good only for the initial Java Objects.
    After the initial Java Objects has been generated TopLink recommend to generate / modify Java Objects using IDE -&gt; compile -&gt; And in the Mapping Workbench 'Add or Refresh classes' -&gt; Map -&gt; generate XML is the right way of using TopLink.

  • Problem with generating xml and nested cursor (ora-600)

    I have a problem with generating xml (with dbms_xmlquery or xmlgen) and nested cursors.
    When I execute the following command, I get a ORA-600 error:
    select dbms_xmlquery.getxml('select mst_id
    , mst_source
    , cursor(select per.*
    , cursor(select ftm_fdf_number
    , ftm_value
    from t_feature_master
    where ftm_mstr_id = pers_master_id ) as features
    from t_person per
    where pers_master_id = mst_id ) as persons
    from f_master
    where mst_id = 3059435')
    from dual;
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-00600: internal error code, arguments: [kokbnp2], [1731], [], [], [], [], [], []
    </ERROR>
    The problem is the second cursor (t_feature_master).
    I want to generate this:
    <master>
    <..>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    </master>
    If i execute the select-statement in sql-plus, then I get the next result.
    MST_ID MST_SOURCE PERSONS
    3059435 GG CURSOR STATEMENT : 3
    CURSOR STATEMENT : 3
    PERS_MASTER_ID PERS_TITLE PERS_INITI PERS_FIRSTNAME PERS_MIDDL PERS_LASTNAME
    3059435 W. Name
    CURSOR STATEMENT : 15
    FTM_FDF_NUMBER FTM_VALUE
    1 [email protected]
    10 ....
    I use Oracle 8.1.7.4 with Oracle XDK v9.2.0.5.0.
    Is this a bug and do somebody know a workaround?

    Very simple...Drop all type objects and nested tables and create them again. You will get no error. I'll explain the reason later.

  • Using a variable value in CDATA for generating an XML type in Oracle

    Hello,
    I have prepared a function given below where I have some input variables & I have to generate one XML with those input variables as tag attribute value:
    create or replace function NEW_PROJECT_DETAILS
    ( p_ReferenceId in varchar2 ,
    p_Project_No in varchar2,
    p_Project_Name in varchar2,
    p_Project_Desc in varchar2 ,
    p_Project_Type in varchar2,
    p_Project_Location in varchar2,
    p_Project_Status in varchar2 )
    return xmltype
    as
    payload xmltype;
    begin
    dbms_output.put_line('Payload Started');
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation><![CDATA[p_Project_Location]]></ProjectLocation>
    /* <ProjectLocation>'||p_Project_Location||'</ProjectLocation> */
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');
    dbms_output.put_line('Payload Comp1');
    return payload;
    end;
    This procedure works absolutely fine.
    Now the problem which I am having is that the variable p_Project_Location has value like "6747:BBO&M SBV".
    Due to the '*&*' in that value I have to use CDATA. But i dont know how to pass this variable directly in the CDATA in the XML.
    Please help me with this asap.
    Thanks & Regards,
    Divya Aggarwal
    Edited by: 784414 on Dec 2, 2010 4:15 AM
    Edited by: 784414 on Dec 2, 2010 4:16 AM

    Hi,
    If you absolutely want to use a CDATA section, then :
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation><![CDATA['||p_Project_Location||']]></ProjectLocation>
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');Alternatively, you can escape non valid characters with DBMS_XMLGEN.CONVERT, e.g. :
    payload:= xmltype('<?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>'||p_ReferenceId||'</RefID>
    <ProjectNo>'||p_Project_No||'</ProjectNo>
    <ProjectName>'||p_Project_Name||'</ProjectName>
    <ProjectDesc>'||p_Project_Desc||'</ProjectDesc>
    <ProjectType>'||p_Project_Type||'</ProjectType>
    <ProjectLocation>'||dbms_xmlgen.convert(p_Project_Location)||'</ProjectLocation>
    <ProjectStatus>'||p_Project_Status||'</ProjectStatus>
    </ProjectDetails>');which outputs :
    <?xml version="1.0" encoding="UTF-8"?>
    <ProjectDetails>
    <RefID>1</RefID>
    <ProjectNo>1</ProjectNo>
    <ProjectName>PRJ1</ProjectName>
    <ProjectDesc>This is project 1</ProjectDesc>
    <ProjectType>P</ProjectType>
    <ProjectLocation>6747:BBO&amp;M SBV</ProjectLocation>
    <ProjectStatus>S</ProjectStatus>
    </ProjectDetails>Any basic XML parser should then convert back escaped characters when processing the document.
    You can also use SQL/XML functions, which will take care of that automatically.
    For example :
    SELECT appendChildXML(
            XMLType('<?xml version="1.0" encoding="UTF-8"?><ProjectDetails/>'),
            XMLForest(
             '1'                 as "RefID",
             '1'                 as "ProjectNo",
             'PRJ1'              as "ProjectName",
             'This is project 1' as "ProjectDesc",
             'P'                 as "ProjectType",
             '6747:BBO&M SBV'    as "ProjectLocation",
             'S'                 as "ProjectStatus"
    FROM dual;or,
    SELECT appendChildXML(
            XMLType('<?xml version="1.0" encoding="UTF-8"?><ProjectDetails/>'),
            XMLForest(
             '1'                 as "RefID",
             '1'                 as "ProjectNo",
             'PRJ1'              as "ProjectName",
             'This is project 1' as "ProjectDesc",
             'P'                 as "ProjectType",
             XMLCData('6747:BBO&M SBV') as "ProjectLocation",
             'S'                 as "ProjectStatus"
    FROM dual;

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

  • Error in generating Outbound Xml in SNC

    Hi All:
    We are working on SNC 7.0 vrsion along with Pi 7.0 and ECC 6.0.
    When SNC gets a PO from ECC and supplier confirms it then we are not able to see any outbound xml file generation in SNC .
    Due to this nothing is coming out from SNC.
    Folowing are the configuration has been done in SNC.
    A> Outbound processing message ReplishmentOrderConfirmation_Out has been configured properly for sender and receiver.
    B> All required ODM and TSODM has been activated properly.
    C> Structure in proxy name space has been re generated properly for above mentioned outbound message.
    D> No badi has been activated as of now in SNC area.
    Whats happening in SNC once supplier confirms PO.
    A>Error dump saying that Assertion Failed .
    My question.
    A> Do we have to activate any badi by default to generate any outbound xml?
    B> Is there any report by which we can check weather proxy structure has been called or not for generating outbound Xml?
    C>How to generate and activate TSODM and related POS in time series Order Data Management ?
    D>Report to check that what Time Series Object has been activated as of now ?
    Please let us know ur views to slove this
    thanks
    Ganesh

    Hi Ganesh,
    If you have errors within proxy setup, you will get the XML blocked in SXMB_XI transaction.
    As I could see from your description, the problems might be due to any one of these reasons.
    1. Validation Checks - PO Confirmation invloves a validation check before getting published. There might an error if this fails.
    2. ODM and TSDM not initialised properly - Try to generate and activate the necessary ODM and TSDM data types.
    Cheran

  • WE60 - Error while generating the xml schema

    Hi
    Using the transaction WE60 I am trying to generate an XML schema for the BASIC type : DEBMDM06, Segment release - 7 and record type version - 3. Following error message is displayed. "Structure of segment E1T023W is unknown". Kindly let me know how to generate an XML schema successfully and what is the reason for this error to come up
    Regards
    Aruna

    Hi Aruna,
    It seems a dictionary error but it doesn't occurs to me. I can download the XML schema without problems in SAP ECC 6.0.
    If you let me know your email I can send it zipped to you.
    Reward points if helps.
    Roger

  • Problem to generate secret field with JHeadstart 10.1.3.1.0

    Hi,
    I'm experimentig the new version of Jheadstart and I have a problem to generate a JSF page with a secret field using the Oracle JHeadstart 10.1.3 Evaluation Version.
    In fact when I change the display filed in the jheadstart Application Definition Editor to "secret" and then try to generate
    jsf pages, i have this message error for both form and table layout :
    Could not instantiate JhsApplicationGenerator class: No bean named 'secretPGItemModel' is defined:
    org.springframework.beans.factory.xml.XmlBeanFactory defining beans [applicationLayoutGenerator,facesConfigGenerator,
    regionMetaDataProcessor,includesGenerator,menuGenerator,nlsGenerator,pageGenerator,treeGenerator,generatorContext,findPageNameFormat,
    findPage,wizardFindPage,formPageNameFormat,formPage,wizardFormPage,formRegionPage,wizardFormRegionPage,selectPageNameFormat,selectPage,
    wizardSelectPage,treeFormPage,treePage,tablePageNameFormat,tablePage,wizardTablePage,lovTablePage,parentShuttlePage,
    wizardParentShuttlePage,intersectionShuttlePage,wizardIntersectionShuttlePage,formPageComponent,tablePageComponent,
    selectPageComponent,parentShuttlePageComponent,intersectionShuttlePageComponent,pgItemModelHelper,textInputPGItemModel,
    dateFieldPGItemModel,dateTimeFieldPGItemModel,secretFieldPGItemModel,fileUploadPGItemModel,fileDownloadPGItemModel,imagePGItemModel,
    editorPGItemModel,displayFieldPGItemModel,dropDownListPGItemModel,checkBoxPGItemModel,radio-verticalPGItemModel,
    radio-horizontalPGItemModel,hiddenPGItemModel,lovPGItemModel,pgGroupModel,pgDynamicDomainModel,pgStaticDomainModel,
    pgItemRegionModel,pgGroupRegionModel,stackedPGRegionContainerModel,separatePagesPGRegionContainerModel,horizontalPGRegionContainerModel,
    verticalPGRegionContainerModel,searchManagedBeanModel,dependsOnItemManagedBeanModel,dependsOnSearchItemManagedBeanModel,
    lovItemManagedBeanModel,lovItemInTableManagedBeanModel,editorItemManagedBeanModel,lovItemInAdvancedSearchManagedBeanModel,
    lovItemInQuickSearchManagedBeanModel,lovPageManagedBeanModel,fileItemInTableManagedBeanModel,mediaItemInTableManagedBeanModel,
    checkboxInTableManagedBeanModel,treeManagedBeanModel,parentShuttleManagedBeanModel,intersectionShuttleManagedBeanModel,
    collectionModelManagedBeanModel,queryBindParamsManagedBeanModel,queryBindParamsDomainManagedBeanModel,defaultValuesManagedBeanModel,
    wizardPageManagedBeanModel,wizardPageListManagedBeanModel,breadcrumbManagedBeanModel,customManagedBeanModel,velocityInitializer,
    formGroupLayoutFactory,tableGroupLayoutFactory,table-formGroupLayoutFactory,select-formGroupLayoutFactory,tree-formGroupLayoutFactory,
    treeGroupLayoutFactory,parent-shuttleGroupLayoutFactory,intersection-shuttleGroupLayoutFactory,
    pgModelFactory,templateBindingsFactory,pgModelValidator]; root of BeanFactory hierarchy
    My Jdeveloper Version is : 10.1.3.0.4 (SU5)
    thanks

    Steven
    I followed your instructions and it works
    I recently downloaded the production version of JDeveloper Studio Edition Version 10.1.3.1.0.3984
    Build JDEVADF_10.1.3.1.0_NT_061009.1404.3984
    I installed JHeadstart evaluation version.
    I recreate the same example with this new version of JDeveloper
    I found the bean definition in the jag-config.xml (by default)
    I removed the "#ITEM_PARTIAL_TRIGGERS_PROP" from the template (default/item/form/formSecret.vm )
    I thought it will work but unfortunately it doesn't work and and I got the same error
    Could not instantiate JhsApplicationGenerator class: No bean named 'secretPGItemModel' is defined: org.springframework.beans.factory.xml.XmlBeanFactory defining beans [applicationLayoutGenerator,facesConfigGenerator,regionMetaDataProcessor,includesGenerator,menuGenerator,nlsGenerator,pageGenerator,treeGenerator,generatorContext,findPageNameFormat,findPage,wizardFindPage,formPageNameFormat,formPage,wizardFormPage,formRegionPage,wizardFormRegionPage,selectPageNameFormat,selectPage,wizardSelectPage,treeFormPage,treePage,tablePageNameFormat,tablePage,wizardTablePage,lovTablePage,parentShuttlePage,wizardParentShuttlePage,intersectionShuttlePage,wizardIntersectionShuttlePage,formPageComponent,tablePageComponent,selectPageComponent,parentShuttlePageComponent,intersectionShuttlePageComponent,pgItemModelHelper,textInputPGItemModel,dateFieldPGItemModel,dateTimeFieldPGItemModel,secretFieldPGItemModel,fileUploadPGItemModel,fileDownloadPGItemModel,imagePGItemModel,editorPGItemModel,displayFieldPGItemModel,dropDownListPGItemModel,checkBoxPGItemModel,radio-verticalPGItemModel,radio-horizontalPGItemModel,hiddenPGItemModel,lovPGItemModel,pgGroupModel,pgDynamicDomainModel,pgStaticDomainModel,pgItemRegionModel,pgGroupRegionModel,stackedPGRegionContainerModel,separatePagesPGRegionContainerModel,horizontalPGRegionContainerModel,verticalPGRegionContainerModel,searchManagedBeanModel,dependsOnItemManagedBeanModel,dependsOnSearchItemManagedBeanModel,lovItemManagedBeanModel,lovItemInTableManagedBeanModel,editorItemManagedBeanModel,lovItemInAdvancedSearchManagedBeanModel,lovItemInQuickSearchManagedBeanModel,lovPageManagedBeanModel,fileItemInTableManagedBeanModel,mediaItemInTableManagedBeanModel,checkboxInTableManagedBeanModel,treeManagedBeanModel,parentShuttleManagedBeanModel,intersectionShuttleManagedBeanModel,collectionModelManagedBeanModel,queryBindParamsManagedBeanModel,queryBindParamsDomainManagedBeanModel,defaultValuesManagedBeanModel,wizardPageManagedBeanModel,wizardPageListManagedBeanModel,breadcrumbManagedBeanModel,customManagedBeanModel,velocityInitializer,formGroupLayoutFactory,tableGroupLayoutFactory,table-formGroupLayoutFactory,select-formGroupLayoutFactory,tree-formGroupLayoutFactory,treeGroupLayoutFactory,parent-shuttleGroupLayoutFactory,intersection-shuttleGroupLayoutFactory,pgModelFactory,templateBindingsFactory,pgModelValidator]; root of BeanFactory hierarchy

  • Generating a XML file from a JSP request Page

    Hi,
    I am very new to JAVA with XML. My need is i want to capture some data in in a JSP page then after submitting ,it will generate a XML file. How can i do that??? Any help will be highly appriciated. If anybody can give me a good example....
    Thx

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Are you using our XML SQL Utility that comes with the Oracle XDK for Java? Is the correct result produced, but you are having trouble writing it to a file?<HR></BLOCKQUOTE>
    hi steven,
    yes i am using xml sql utility and have solved the problem..... as i was working from a remote system i didnot give the correct path that is the c:\.....etc of the machine i was giving http:// thats why i did not write to a file... now its working

  • Generate an XML file from a DOM tree

    Hi,
    I'm trying to generate an XML file from a DOM tree that I obtained from another XML file with the Xerces library. I used the following operation :
    public static void writeXmlFile(Document doc, String filename) {
    try {
    Source source = new DOMSource(doc);
    File file = new File(filename);
    Result result = new StreamResult(file);
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.transform(source, result);
    } catch (TransformerConfigurationException e) {
    System.err.println(e);
    System.exit(1);
    } catch (TransformerException e) {
    System.err.println(e);
    System.exit(1);
    But I have this Windows/Linux problem. When I execute this on Windows, everything is correct. But if I try on Linux (every distribution does the same thing), I obtain an XML file where everything is written on just ONE LINE : there is neither identation nor carriage return at the end of a line ... And that is pretty annoying 'cause I need to SEE what I generate ...
    Thanks for your answer,
    Blueberryfin.

    Actually I would think that no indents and no new-lines would be more correct, but maybe it's an option for parsers to do it either way if you don't specify it. If you want to specify it, look at this post from last month:
    http://forum.java.sun.com/thread.jsp?forum=34&thread=383400

  • Generating a XML file and Storing on the Presentation Server

    Hi Experts,
    I am facing a problem in generating and storing a XML file on Presentation Server.
    I am using Call Transformation as follows:
    CALL TRANSFORMATION id
    SOURCE para = t_xml[]
    RESULT XML xml_string.
    APPEND xml_string TO xml_tab.
    and then using GUID_DOWNLOAD to store the xml file on the PS.
    DATA: xml_string type string,
              xml_tab type table of string.
    now on using GUI_DOWNLOAD, i get the runtime error as Illegal Type Casting.
    On the other hand if i give the data declaration as follows, the code works fine.
    TYPES: begin of ttab,
                       line(65535) type c,
                 end of ttab.
    DATA: xml_string type string,
              xml_tab type table of ttab.
    SInce my data in INternal Table can be very large, 65535 characters are not sufficient for me.
    How do i solve this problem???
    Please help.
    Regards
    Gaurav Raghav
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 4:09 PM

    Hey Gaurav,
    Can you please tell me how did u solve the problem ..
    i am also currently facing the same situation..please help me..
    Regards,
    Jessica Sam

  • Problem in rendering the XML using  XSLT in Netscape 7

    Hi there,
    I have used the XSLT to generate HTML codes from the XML datafiles.
    It works fine in Internet Explorer, but when I tried it on Netscape
    7.0 , it just displayed the xml data, without the tags..
    For example,
    In the xml ,I have the following :
    <id>11111111111111112</id>
    <name>adegf1</name>
    <date>Mar 24 2003Jan 01</date>
    In the IE, it was transformed into the html perfectly but
    when i used Netscape 7.0, it was displayed as the following in a single
    line:
    11111111111111112adegf1Mar 24 2003Jan 01
    Can anybody tell me how to overcome this ? Does the problem lie in the xml or the xslt ? I am using XSL Transform version 1.0 and XML version 1.0.
    Thanks in advance !
    Kirk

    Hello,
    The generated XML refers to the XSLT which is in the server.
    So, the browser's parsers affects the output..
    Any sugestions ?
    Thanks !

  • Problems while generating the proxy definition

    Hi Experts,
       I am facing the error " Problems while generating the Proxy Definition! ", when creating the proxy definition, for a specific URL.
    The URL to call the webservice is similar to "http://www3.XYZ.com/_vti_bin/newswebservice.asmx?WSDL" and is returning the appropriate XML code. Moreover accessing the webservice through browser, returns the expected response, too.
    From the NWDS side, where we are creating the proxy, again, everything is fine, because we have already created two proxy definitions, in similar fashion, but for different WSDL links.
    The only difference we are encountering is like, earlier the links were of type "www.abc.com/..." while the new URL is of type "www3.xyz.com/..." type. I hope this load balancing technique has hardly to do anything with it.
    Any pointers for possible reasons and solutions will be of much help.
    Regards,
    Akhil Mishra

    If you are consuming a web service in NWDS look below document and check if you are not missing any step:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a

  • Unable to generate users.xml file

    Hi All,
    I have installed OCS 10.1.2.0.0.and applied the cumulative patchset and now on OCS 10.1.2.3.0
    Now i am trying to migrate users and their mail box from exchange 5.5 running on Windows NT 4 server.
    I have installed the esmigration tool on a machine running Windows XP SP2, Outlook 2003 client installed. I ran the tool and successfully created the system profile. Once done when i try extract users which should generate a users.xml file, i get an error saying "Unable to generate users.xml" file. When i look at the log file i can see the error which says invalid domain which is not true. The domain name is right and i have repeated the process more than 10 times, but still keep getting the same error. I tried using IMPA to IMAP as well as with MBOX , but still the same error. Has anyone seen such a behavior ?
    So i tried to choose plan B. As i do not have too many users i decided to export the users mail box as a pst file and then import it. This is not a problem, but what i do not know is that what do i need to do to enable coexistence mode on exchange, meaning when an email arrives, it first goes to exchange and then forwards a copy to OCS.Please note on my research i have found some notes on how to do this on exchange 2000 on a windows 2000 server with AD, but i couldn't find anything for Exchange 5.5 on NT4.
    Any assistance on this would be very helpful.
    Regards,
    Dipak

    Hi Dipak,
    If you do the migration from the Windows 2000 machine with outlook 2000 installed, and connected to Exchange 5.5 via an admin profile, then you will not see this issue.
    In case, it is not possible for you to move to new machine where above said environment exists, then you can request for a patch of migration tool that has fix for this issue. Please send an email to [email protected] or [email protected], for the fixed version.
    For your co-existence query: Please make use of alternate-recipient setup that exists on exchange 5.5 user properties. So, the emails will be routed to both exchange, and ocs server mailboxes of that user.
    If you have any further queries please send an email to [email protected]
    Thanks,
    Venkat

Maybe you are looking for

  • Notebook Lenovo V570c и Windows XP

    Здравствуйте , раз уж мне выпала честь открыть первой темой этот раздел. Имею ноутбук V570c В использовании в рабочих целях выявилась не обходимость пользоваться старыми программами и соотвественно к ним требуются старые ОС. Моя конкретно модификация

  • Can't setup Airport's wifi or ethernet

    With the help of the Community here, I was able to fumble my way through multiple-user Airport network with succes. But now, I'm having problems with a simple Airport setup. The Airport Utility comes up this display on my iMac: ******* The Internet l

  • Mirror iPad VGA display

    Good morning, I have the need to show the display of my Ipad on an external device/display to present a demo of an application. After a quick research on the web I found that the only way to accomplish this task goes through jailbreaking the device,

  • Strange problem using BBM service on WiFi

    Hello everyone, I have a strange problem. I have a Fido phone unlocked by Fido and I am trying using it on another sim card. I am able to connect to the internet and BBM services with Data plan everything fine. I can call everything works fine.  When

  • [SOLVED] /sys/class/power_supply/BAT0 reads 0 for all power files

    I'm on a Macbook 2,1 running Arch and just recently noticed that my conky started showing 2 billion % for my battery's charge. Conky simply uses: ${battery_percent BAT0}% In any case, I've manually dug around as well in /sys/class/power_supply before