Create Root Element in XML

Hi Experts,
I am develpoing a program to generate xml file as output. I am using the method CL_IXML and other interfaces to generate the xml data. Here I need to create a root element. I did search in SDN but I couldnot found anything to generate xml root element.
My output should be like this:
<?xml version="1.0" encoding="UTF-8"?>
<Request Version="11.1" IssuerID="1">
        <CreatePurchaseRequest
            RequestID="123456"
            Commonname="test"
        </CreatePurchaseRequest>
</Request>
Can anybody plz suggest how can I generate the root element Request here?
Regards,
Ranganadh.

Thanks Sandra,
My issue got resolved.
I just created the root element using the method create_sample_element and set the attributes using set_attributes method.
Thanks for your help.
w_ixml = cl_ixml=>create( ).
      w_document = w_ixml->create_document( ).
      w_root = w_ixml->create_document( ).
      IF w_document IS INITIAL.
        RAISE EXCEPTION TYPE cx_cmx_da_exception
          EXPORTING
            textid = cx_cmx_da_exception=>cx_cmx_da_error_internal.
      ENDIF.
      w_encoding = w_ixml->create_encoding(
                             character_set = 'utf-8'
                             byte_order    = if_ixml_encoding=>co_none ).
      w_document->set_encoding( w_encoding ).
      w_element_inv1  = w_document->create_simple_element(
                  name = 'OrbiscomRequest'
                  parent = w_document ).
      w_element_inv1->set_attribute( name = 'Version'
                                     namespace = ''
                                     value = '11.1' ).
      w_element_inv1->set_attribute( name = 'IssuerID'
                                     namespace = ''
                                     value = '1' ).

Similar Messages

  • Creating root element w/reference to XSD file

    I'm using JDOM and would like to know how to create the root element so it
    looks like this:
    <Import xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.mydomain.com/XSDfilename.xsd">

    I am trying to create a xml file with then serves as an input to a vendor tool
    I tried creating the root element with default namespace but the second elemnt is also created with the default namespace. I am using Jdom to create this xml file .
    My program output:
    <?xml version="1.0" encoding="UTF-8"?>
    <PacketGroup xmlns="http://www.abc.com/schemas/idwebarchive/data">
    <DefaultPacket xmlns="" logonid="scott" password="humptydumpty">
    <IndexLevel level="1" containerDesc="" containerName="Recorder Docs" />
    <IndexLevel level="2" containerName="Recorded Year" containerDesc="">
    <Keyword name="Recorded Year" value="2005" />
    </IndexLevel>
    <DocumentLevel documentName="Documents" docDesc="" >
    <Keyword name="Document Number" value="2005-034378" />
    </DocumentLevel>
    </DefaultPacket>
    </PacketGroup>
    Vendor REquirement:
    <?xml version="1.0" encoding="UTF-8"?>
    <PacketGroup xmlns="http://www.abc.com/schemas/idwebarchive/data">
    <DefaultPacket logonid="scott" password="humptydumpty">
    <IndexLevel level="1" containerDesc="" containerName="Recorder Docs" />
    <IndexLevel level="2" containerName="Recorded Year" containerDesc="">
    <Keyword name="Recorded Year" value="2005" />
    </IndexLevel>
    <DocumentLevel documentName="Documents" docDesc="" >
    <Keyword name="Document Number" value="2005-034378" />
    </DocumentLevel>
    </DefaultPacket>
    </PacketGroup>
    How do I go about creating this structure without the default namespace in my subsequent elements.
    Any help is appreciated , I am new to this aspect of programming
    Thanks
    VK

  • Unable to find root element in XML Schema when Syndicating (SAP MDM)

    Hi experts,
    We are having a problem with our Syndication.
    We have created an XML Schema using XML Spy. We need a namespace, and this is 70 characters long (in other words, far shorter than maximum at 255 characters).
    <xs:schema xmlns:ns="http://schemas.xxxxx.com/ServiceManagement/ServiceMasterDataFromMDM/0.3" xmlns:xs="http://www.xxxxx.org/2001/XMLSchema" targetNamespace="http://schemas.xxxxxx.com/ServiceManagement/ServiceMasterDataFromMDM/0.3" elementFormDefault="unqualified" attributeFormDefault="unqualified">
    When opening the xml schema file in Syndicator, the root field is disabled.
    If we remove namespace in heading of xml schema, the root field is enabled, and the root element is correct.
    How can we make use of the XML schema when we need namespace?
    We have tried to add namespace annotation ns: to all type definitions:
       <xs:element name="ServiceCategory" type="ns:ServiceCategoryType">
    This did not help.
    Please advice.
    KR,
    Thomas
    Edited by: Thomas on Mar 2, 2011 2:12 PM

    >>We need a namespace, and this is 70 characters long
    If you want namespace to appear in XML and your XSD has it too. please add the namespace under "URI" attribute in XML schema in Console.
    You need to import the XSD in Console first, specify namespace under URI and then use this to build syndication map.
    Thanks
    Aamir

  • How to handle blank root element in xml source file

    Hi There,
    I have a dataflow which using xml source file. The job keep failing and I guess it might be caused by one of the root element which is blank. Can anyone advise me how to handle it?
    The xml file look like this:
    -<orderinfo>
    --<orderdetail>
    ---<orderid>1</orderid>
    ---<orderdate>20110101</orderdate>
    --</orderdetail>
    --<abc />
    -</orderinfo>
    element <abc> is blank
    Thanks and Regards,
    BL

    Hi Suneer,
    The issue is DS cannot validate the source file at all. It returns error message when I try to preview the source file in the dataflow. Is there any work around I can implement other than request the source team to change the file layout?
    Thanks,
    BL

  • Create repeating elements in xml document

    Good day,
    I have a problem with a project I am busy with. I am creating an XML document from a predefined schema. I am able to this with no problem for one level using this method:
    XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
    XmlSerializer serializer = new XmlSerializer(typeof(UKFATCASubmissionFIReport));
    TextWriter writer = new StreamWriter(destinationPath);
    UKFATCASubmissionFIReport fatcaSub = new UKFATCASubmissionFIReport();
    fatcaSub.SchemaVersion = schemaVersion;
    //Initialize classes and objects
    #region classes and objects
    AccountDataType accountData = new AccountDataType();
    AccountHolderCodeType accountHolderType = new AccountHolderCodeType();
    MessageDataType messageData = new MessageDataType();
    MonetaryType moneyType = new MonetaryType();
    SubmissionType submissionData = new SubmissionType();
    FIReturnActionType fireturnActionData = new FIReturnActionType();
    AccountActionType accountActionData = new AccountActionType();
    TINCodeType tinCode = new TINCodeType();
    HolderTaxInfoType holderInfo = new HolderTaxInfoType();
    //PaymentDataType paymentData = paymentDetails();
    #endregion
    //Monetary type
    moneyType.Value = moneyTypeValue;
    moneyType.currCode = currCode_Type.GBP;
    //Create message data
    messageData.FATCAUserId = FatcaUserID;
    messageData.XMLTimeStamp = timeStamp;
    messageData.MessageCategory = MessageType.NewSubmission;
    fatcaSub.MessageData = messageData;
    //Create submission data object
    submissionData.ReportingPeriod = reportingPeriod;
    submissionData.Item = messageRef;
    fatcaSub.Item = submissionData;
    //FI Return Action
    fireturnActionData.Action = ActionType.New;
    fireturnActionData.FIReturnRef = returnRef;
    //FIReturnActionType[] fireturnItems = new FIReturnActionType[] { fireturnActionData };
    //TIN Code Type
    tinCode.TINCountryCode = countryCode;
    tinCode.Value = tinCodeValue;
    tinCode.TINCountryCodeSpecified = itemSpecified;
    //TIN Information
    holderInfo.ReportableJurisdiction = countryCode;
    holderInfo.TIN = holderTIN;
    holderInfo.TINCode = tinCode;
    //ContactPersonInformation contactInfo = ContactInformation(holderInfo);
    //Contact address
    ContactAddressType contactAddress = new ContactAddressType();
    contactAddress.StreetName = streetName;
    contactAddress.City = contactCity;
    contactAddress.CountryCode = holderInfo.ReportableJurisdiction;
    //Person Details
    ContactPersonInformation contactInfo = new ContactPersonInformation();
    contactInfo.FirstName = firstName;
    contactInfo.LastName = lastName;
    contactInfo.Address = contactAddress;
    contactInfo.HolderTaxInfo = holderInfo;
    contactInfo.BirthDateSpecified = itemSpecified;
    contactInfo.BirthDate = dateOfBirth;
    PaymentMonetaryType paymentMonetary = new PaymentMonetaryType();
    paymentMonetary.currCode = currCode_Type.GBP;
    paymentMonetary.Value = paymentValue;
    //Payment data object
    PaymentDataType paymentData = new PaymentDataType();
    paymentData.PaymentCode = PaymentCodeType.Item20;
    paymentData.PaymentAmount = paymentMonetary;
    //return paymentData;
    //Account action
    accountActionData.AccountRef = accountRef;
    accountActionData.Action = ActionType.New;
    //Account information array
    //AccountData(paymentData, contactInfo, accountActionData, accountData, accountHolderType);
    object[] accountItems = new object[] { accountActionData, accountNumber, paymentData, accountHolderType, contactInfo };
    accountData.Items = accountItems;
    ItemsChoiceType[] accountFieldNames = new ItemsChoiceType[] { ItemsChoiceType.AccountAction, ItemsChoiceType.AccountNumber, ItemsChoiceType.PaymentData, ItemsChoiceType.AccountHolderType, ItemsChoiceType.Person };
    accountData.ItemsElementName = accountFieldNames;
    //Financial Information Return main array
    //FIReturn(submissionData, fireturnActionData, accountData);
    FIReturnType fireturn = new FIReturnType();
    object[] fiItems = new object[] { fireturnActionData, fiRegisterID, dueDilligenceInd, thresholdInd, accountData };
    fireturn.Items = fiItems;
    ItemsChoiceType1[] fiFieldnames = new ItemsChoiceType1[] { ItemsChoiceType1.FIReturnAction, ItemsChoiceType1.FIRegisterId, ItemsChoiceType1.DueDiligenceInd, ItemsChoiceType1.ThresholdInd, ItemsChoiceType1.AccountData };
    fireturn.ItemsElementName = fiFieldnames;
    FIReturnType[] fiData = new FIReturnType[] { fireturn };
    //Map FI return data to submissionData
    submissionData.FIReturn = fiData;
    //Serialize the submission close the TextWriter
    serializer.Serialize(writer, fatcaSub);
    writer.Close();
    Process.Visible = false;
    MessageBox.Show("Processing Complete!", "Complete", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
    Close();
    The problem is that I would like fireturn to appear in the document more than once from a dataset. If I changed my code to this:
    FIReturnType[] fiData = new FIReturnType[] { fireturn, fireturn, fireturn };
    //Map FI return data to submissionData
    submissionData.FIReturn = fiData;
    I am able to get the three elements as required. How can I change my code to allow for a foreach statement for example?

    I managed to change FIReturnType into a list as below. I have a sample datatable also. My code now creates the nodes as expected but the all contain the last item only. What do I need to change so that I get the correct values written?
    DataTable dtTable = new DataTable();
    dtTable.Columns.Add("FirstName", typeof(string));
    dtTable.Columns.Add("Surname", typeof(string));
    // Here we add five DataRows.
    dtTable.Rows.Add("Test", "Test");
    dtTable.Rows.Add("Two", "Three");
    dtTable.Rows.Add("Four", "Five");
    dtTable.Rows.Add("Six", "Seven");
    dtTable.Rows.Add("Eight", "Nine");
    List<FIReturnType> fiRetList = new List<FIReturnType>();
    foreach (DataRow row in dtTable.Rows)
    object fName = row["FirstName"];
    object sName = row["Surname"];
    contactInfo.FirstName = fName.ToString();
    contactInfo.LastName = sName.ToString();
    FIReturnType fireturn = new FIReturnType();
    object[] fiItems = new object[] { fireturnActionData, fiRegisterID, dueDilligenceInd, thresholdInd, accountData };
    fireturn.Items = fiItems;
    ItemsChoiceType1[] fiFieldnames = new ItemsChoiceType1[] { ItemsChoiceType1.FIReturnAction, ItemsChoiceType1.FIRegisterId, ItemsChoiceType1.DueDiligenceInd, ItemsChoiceType1.ThresholdInd, ItemsChoiceType1.AccountData };
    fireturn.ItemsElementName = fiFieldnames;
    fiRetList.Add(new FIReturnType { Items = fiItems, ItemsElementName = fiFieldnames });
    FIReturnType[] fiData = fiRetList.ToArray();
    submissionData.FIReturn = fiData;

  • Root Element Expected - XML-0801 using example w/Oracle 8.1.6

    Using the XSU readme release example #7 (Inserting XML values into all columns JAVA) gave me the same error several other threads had. I wonder if anyone got theirs to work? Using this XML in file C:\insert.xml :
    <?xml version='1.0'?>
    <ROWSET>
              <ROW num="1">
              <EMPNO>7369</EMPNO>
    <ENAME>Smith</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>12/17/1980 0:0:0</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </ROW>
    <!-- additional rows ... -->
    </ROWSET>
    and this code snippet:
    Connection conn = getConnection("scott","tiger");
    OracleXMLSave sav = new OracleXMLSave(conn, "scott.emp");
    // Assume that the user passes in this document.
    // Save it in to the table.!
    sav.insertXML("C:\\insert.xml");
    sav.close();
    Any help would be greatly appreciated! Thanks ...

    actually there seems to be some pasting error and the way i have it in BI Publisher is:-
    <xml name="DovicoSK3" expressionPath=".//ROW[TRANS_ID=$TRANS_ID]">
    <url method="GET" realm="" username="" password=""> file:///C:/OracleBI/xmlp/XMLP/DemoFiles/DovicoSK3.xml</url>
    </xml>
    Edited by: user3610205 on Jun 18, 2009 12:26 PM
    (Note:- Some pasting issues
    1.Square brackets are not seen after "ROW" and after"TRANS_ID"
    2. "TRANS_ID" seen in strange way)
    Edited by: user3610205 on Jun 18, 2009 12:28 PM
    Edited by: user3610205 on Jun 18, 2009 12:32 PM

  • Getting oracle.xml.parser.v2.XMLParseException: Start Of root Element

    Hi All,
    I am getting below error while creating STUB/Skeleton in Jdeveloper to call a web service from OAF Page But getting below error while trying to creating Stub/Skeleton to call weservice
    ERROR:
    oracle.xml.parser.v2.XMLParseException: Start Of root Element
    Any suggestion on This
    P.S: I am calling a third party web service so can not able to make changes in XML
    Regards,
    903096

    Possibility is that there is a problem in the XML that is being passed. Can you double check with the third party software? Also check if you can try it outside OA Framework first and then if its tested you can integrate with EBS.

  • Org.xml.sax.SAXParseException: Document root element is missing.

    Hi,
    I am trying to get the portal login id from a weblogic server based application from iplaet portal server.
    I get this follwoing error
    org.xml.sax.SAXParseException: Document root element is missing.
    at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
    at com.sun.xml.parser.Parser.fatal(Parser.java:2805)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:493)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at com.sun.xml.tree.XmlDocument.createXmlDocument(XmlDocument.java:226)
    at com.iplanet.portalserver.util.XMLParser.<init>(XMLParser.java:70)
    at com.iplanet.portalserver.naming.share.NamingResponseParser.<init>(NamingResponseParser.java:33)
    at com.iplanet.portalserver.naming.share.NamingResponse.parseXML(NamingResponse.java:74)
    at com.iplanet.portalserver.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:174)
    at com.iplanet.portalserver.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:155)
    at com.iplanet.portalserver.naming.WebtopNaming.getServiceURL(WebtopNaming.java:57)
    at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:534)
    at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:520)
    at com.iplanet.portalserver.session.Session.getSession(Session.java:414)
    at jsp_servlet.__eatonPortalLogin._jspService(__eatonPortalLogin.java:155)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:462)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    <May 19, 2004 9:01:12 AM EDT> <Error> <HTTP> <101017> <[ServletContext(id=4873279,name=ematrix,context-path=/ematrix)] Root cause of ServletException
    com.iplanet.portalserver.session.SessionException
    at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:539)
    at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:520)
    at com.iplanet.portalserver.session.Session.getSession(Session.java:414)
    at jsp_servlet.__eatonPortalLogin._jspService(__eatonPortalLogin.java:155)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:462)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    Any help/pointers will be appreciated.
    Ashish

    Just for anyone else who hits this problem: I encountered the same issue with an XML document that XMLSpy claims is quite well formed. I opened the document in a hex editor, and there at the from was a three-byte byte order marker - the marker that I believe the UTF-8 standard says is optional. I removed these three bytes, and the file was parsed correctly.
    In this case, the XML file was created using a Microsft DOM (save).
    My solution is to make the java parser - as I use it - a tad more robust: Open the file and create an input stream - a pushback input stream. Read the first three bytes; if they are NOT a BOM, then push those bytes back. Now - in any case - give the stream to the parser to read.
    try {
    // Open file for reading.
    f = new File(path);
    FileInputStream fis = new FileInputStream(f);
    PushbackInputStream pis = new PushbackInputStream(fis);
    byte[] buf = new byte[3];
    pis.read(buf, 0, 3);
    if (! (buf[0] == 0x00EF) && (buf[1] == 0x00BB) && (buf[2] == 0x00BF) ) {
         pis.unread(buf, 0, 3);
    builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    doc = builder.parse(pis);
    catch (Exception x) {
         x.printStackTrace();
    }

  • Creating an Element for an XML Document

    Assuming I have an XML file
    file.xml
    <root>
    <child1>
    <child2>
    <child100>
    <root>
    i do
    SAXBuilder parser = new SAXBuilder();
    doc = parser.build(file);
    root = doc.getRootElement();This returns a root elemnet for the entire tree.Now my question is how do i create a root element for say jus the top 10 children? That is, is there a way i can create a document just reading the first 10 elements from the file tree above so that when i do a getChildren on root I should have only 10 elements in the list.

    | 1. How are the attributes of an XML element can be stored to the database
    XML SQL Utility (which XSQL uses under the covers) only stores
    documents in the canonical format. You'll need to use an XSLT
    transformation to transform data into the canonical format
    (including transforming attribute values into elements whose
    names correspond to the column in which you'd like to store it)
    | 2. How can I store a single XML document to multiple database tables?
    I outline several techniques for this in my upcoming
    O'Reilly book, "Building Oracle XML Applications".
    The basic idea is to either:
    (1) Use an Object View with an INSTEAD OF INSERT trigger, or
    (2) Use a technique that transform the inbound document
    into a multi-table insert-format and passes each
    relevant part for insert to the XML SQL Utility separately.
    null

  • Encountering XML-20108: (Fatal Error) Start of root element expected

    Hi,
    We are trying to invoke a XML Publisher report from a custom OAF page using API's. However, it is erroring out with the following error message (in xdo.log)
    [021710_121811671][oracle.apps.xdo.common.xml.XSLTWrapper][EXCEPTION] XSL error:
    <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
    [021710_121811672][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
    [021710_121811672][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
    [021710_121811673][][EXCEPTION] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at lxe.oracle.apps.ibu.returnmgmt.server.RmaCreateReturnAMImpl.xxPrintShipLabel(RmaCreateReturnAMImpl.java:1046)
    at lxe.oracle.apps.ibu.returnmgmt.webui.OrderConfirmCo.processFormRequest(OrderConfirmCo.java:167)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
    at jtfcrmchrome.jspService(_jtfcrmchrome.java:1191)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
    at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... 56 more
    The XML is generated from the code and is as below:
    <ShippingLabelVO>
    <ShippingLabelVORow>
    <RowKey>1</RowKey>
    <ShipSentToAddr>XXX Repair Center 125 Technology Parkway Austin, TX</ShipSentToAddr>
    <SerialNum>BC104</SerialNum>
    <OrderNum>8000324</OrderNum>
    <ItemNum>MX7AM-170540</ItemNum>
    </ShippingLabelVORow>
    </ShippingLabelVO>
    I can successfully create the PDF from the desktop using the above XML. When I add the XML file to sample XML (in data definition), I can see the output when I choose Preview.
    But, this is not working from the code.
    Any pointers?
    Thanks,
    Ashish

    Hi,
    We are currently on R12.XDO.B.1 (5.6.3?) Is there a patch we'll need to apply on top of this?
    Is there a workaround for this?
    Thanks,
    Ashish

  • Error Error oracle.iam.platform.context.ContextManager BEA-000000 IAM-0030007 org.xml.sax.SAXParseException: Line 1, Column 1 : XML-20108: (Fatal Error) Start of root element expected. error in oim logs

    Hi ,
    I am getting the below error at times in oim logs not able to find the reason please help.
    <Error> <oracle.iam.platform.context.ContextManager> <BEA-000000> <IAM-0030007
    org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
        at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
        at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
        at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:414)
        at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:355)
        at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
    <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBaseClient/bindToInstance encounter some problems: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
    oracle.iam.platform.utils.ServiceInitializationException: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
        at oracle.iam.platform.Platform.getService(Platform.java:265)
        at oracle.iam.platform.OIMInternalClient.getService(OIMInternalClient.java:188)
        at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBaseClient.java:151)
        at com.thortech.xl.client.dataobj.tcDataBaseClient.recoverConnection(tcDataBaseClient.java:401)
        at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:385)
        at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
        at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
        at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43
    Caused By: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at com.sun.naming.internal.VersionHelper12.loadClass(Ve
    <Class/Method: tcDataBaseClient/getInterface encounter some problems: RuntimeException encountered. Reconnecting!
    java.lang.NullPointerException
        at oracle.iam.platform.context.ContextManager.getCounter(ContextManager.java:697)
        at oracle.iam.platform.context.ContextManager.incrementCounter(ContextManager.java:684)
    <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBaseClient/close encounter some problems: Bean has been deleted.
    javax.ejb.NoSuchEJBException: Bean has been deleted.
    Thanks,
    Sahana

    hi Antara
    about "... Though I have imported the following JDK parsers in the code , the Oracle's SAX parser is taking other inside the application server ..."
    If you have used the SAXParserFactory.newSAXParser() method to get a parser, the documentation for this method says "Creates a new instance of a SAXParser using the currently configured factory parameters.".
    So you might get a different parser in a different environment.
    regards
    Jan Vervecken

  • B2B-50029:  B2B runtime error: oracle.xml.parser.v2.XMLParseException: Start of root element expected.

    Dear All,
    I am a beginner to Oracle B2B.
    I have created an agreement to Recieve 852, Product Activity data(POS) from one of the Trading partner. This is an inbound process.
    A  SOA composite application is created to Recieve the data and insert into perticular columns of the database table using database adapter.
    I have tested the Interface with some couple of file and it went perfect without any error. Now I have to test the interface with some other files.
    This time also I am not getting any error in Business Message, Wire message and Application message but the composite application is not picked.
    The log file shows : B2B-50029: B2B runtime error: oracle.xml.parser.v2.XMLParserException: Start of root element expected.
    Please let me know if anyone has faced this issue. it will be of great help.
    Thanks,
    Abhas Kushwaha

    Hello,
    Just a thought, When I had the similar problem, it appeared to be a BOM (Byte order mark - Wikipedia, the free encyclopedia) in the xml file, which is the very first character in the xml file, so the file was not identified to be a valid xml file. Removing the BOM from the xml file fixed my problem, however, I did not spend much time in fixing using B2B, the vendor  (sender of the file) fixed the file and started sending without BOM. So my work was easier.
    The character is not visible in all XML editors, however, it was visible in JDeveloper. I used a tool to identify and remove during testing until the vendor fixed the file, the tool is called file bom detector,http://www.bryntyounce.com/filebomdetector.htm
    Hope this helps,
    Thanks,
    Venkatesh

  • XML-20108: (Fatal Error) Start of root element expected. - jdev 11.1.2.3

    Hello:
    I created a simple ADF Fusion Web app using HR schema based on Employees table.
    I am trying to get Contextual Events working and I did the following:
    Created two taskflows: TaskFlowA and TaskFlowB. TaskFlowA has a form based on employees and TaskFlowB has a table based on employees.
    Run the page and everything works.
    Now, in the property inspector based on the submit button, I added a contextual event to publish the event.
    Attempt to run the page again and I receive compile error:
    \WEB-INF\temp\adf\styles\cache\fusionFx-v2-1-desktop-pr245v-ltr-ie-7.0-cmp.css
    Error(1,1): <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
    Any ideas to prevent/fix this problem?
    Thanks much
    Edited by: 966952 on Apr 9, 2013 5:51 AM

    As a temporary solution you could add below lines in the xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    <test>
    </test>
    See, the link for more info: http://adfhowto.blogspot.in/2011/05/utility-to-remove-once-and-for-all-rdf.html

  • Validate xml with complextype schema without root element!

    Hi All!
    I have a problem that. I want to validate a xml data of complextype but the schema i want to validate is[b] not have root element.
    For example:
    The schema like that
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="www.thachpn.test" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.thachpn.test" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:complexType name="Name">
              <xs:sequence>
                   <xs:element name="FirstName" type="xs:string"/>
                   <xs:element name="LastName" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    and the xml data i want to validate like this
    <?xml version="1.0" encoding="UTF-8"?>
    <Name xmlns="www.thachpn.test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <FirstName>Pham</FirstName>
         <LastName>Thach</LastName>
    </Name>
    My Algorithm is like that:
    I create a complextype object by above schema
    then i create new element with given name and namespace
    after that i use schema of this element to validate xml data.
    I use xmlparserv2 lib of oracle
    But i can not find how to create complextype from schema or create element with have complextype.
    Please help me.
    Thanks a lot!

    <?xml version="1.0" encoding="UTF-8"?>
    Modify the schema.
    Add a root element.
    <xs:schema targetNamespace="www.thachpn.test" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.thachpn.test" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="Name" type="Name"/>
    <xs:complexType name="Name">
    <xs:sequence>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="LastName" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>

  • How to use SAX Parseto paser xml without root element

    Hello,
    I have big a xml file(500M) with without root element. How can I use SAXParse to parse it.

    A well-formed XML file has a single root element. Your parser can't deal with any other kind. So find the person who produced that file and explain politely that it's no good. (Hitting them with a big stick would be optional.)
    You could write a non-XML program that reads it in and creates a new version, wrapped in a single root element, if your supplier can't fix their problem.

Maybe you are looking for

  • How to get video off my camera into iMovie

    I now have a MacBook with the 08 release of iLife. I would like to get the video off my camcorder and into iLife to save the movies (primary) and play/edit with them (secondary). However, here's the catch. My camcorder is an older hand-me-down. The o

  • Play Streaming Audio

    I'm busy designing an app to play audio from a link. The audio is being streamed by a Shoutcast server. The link I have been given is 'http://live.rmr.ru.ac.za'. I've got the following code so far:     // Read sampled audio data from the specified UR

  • USB for Audio Out

    I am looking at buying a Bose Companion speaker system. The Bose Companion Series 5 plays music through a USB connection. If I connect the speakers via USB on the Airport Express will it output audio through this connection via iTunes? Thanks, Mike

  • Subselect in update

    Hello, i want to write an sql-update statement where a field through a part of another field will be supplemented. example: update tabelle set targetDirectiory = ' export/home/VALUE_FROM_FIELD x' where blablabla This should work as a subselect ?but I

  • When I add media to my timeline the screen turns white?

    I added media to my timeline and I can only hear the audio, but not see the video. If I pause the video however I can see what part I am on in the video, like a motionless picture.