Error in XML file generation :240416

Hi All,
I am facing problem with XML file generation.
Steps:
1. Source-->Query Transform and maintained Nested Stucture
2. Generated XML fomat from query transform
3. Created XML format file
4. Make XML format as target and given XML generate path
source table-->Query(nested structure)-->XML Format
when I validate the job no errors found.
Note: XSD file is in Local mechine and XML file will be generated in SFTP.
Prooblems:
1. Getting below error
The input XML refers to file which is not part of the definition of this XML Schema format. Check your schema and XML files,
and check that the root element in the XML file corresponds to the root element in the XML Schema
Validate your XML Schema using external schema validators (found at w3.org)
Thanks,
Deepa

Hi,
I think issue Because in your Query Transform output the Root element is Query and XML target is having some other root element. Make the Query trasform name similar to root element and try...

Similar Messages

  • "Error retrieving xml file from database"

    Hello All,
    I have installed and configured planning with Shared services. While I try to create an instance in Configuration Utility by entering the Instance Name, Host Name, Port (8300) and Click "Next", I get this error -
    *"System failure:Error retrieving xml file from database".*
    My RDBMS is - SQL Server 2005
    OS - Windows 2003 Server
    I am unable to work on planning for few months due to this error.. I would sincerely appreciate if someone can provide me a solution for this..
    Thanks much,
    Varma.

    Hi,
    Ive seen this before.
    If this is a new environment could you create a blank database and configure it as your System database? Then try again and you should be fine.
    I think you may have some invalid entries in your sys database.
    Seb
    www.taysols.com.au

  • Error reading XML file in URL

    On my application I need to take the parameters from a configuration �object� at a XML file outside the Jar file. Executing an applet and through the appletviewer I can read the file if it is on the same folder. When executing from a browser I can not locate the file.
    I have created a class with the code:
            URL codeBase = this.getCodeBase();
            URL url = null;
            try {
                url = new URL(codeBase, "filename.xml");
         .........When I execute the code above the following error appears: java.applet.Applet.getCodeBase(Unknown Source).

    You want to display it or work with the content of the XML File?
    For displaying you do not need a jsp to do that the link to the *.xml will be enough.
    Otherwise you need to parse it, either with a SAX or DOM Parser. Look for dom4j, it is easier for the start as I think.
    Regards
    Tarik

  • SMD uninstallation error "ORADBPAR.XML" file not found.

    Hello Experts,
    I was doing  System preparation in solution manager  through Solman_setup.In step 6.5 I came across Install Diagonostic agent .I checked in my system that older version of SMD is installed that may cause problem in future so I decided to uninstall it and install newer version of SMD7.3.I downloaded the SMD file and started sapinst with sudo access to uninstall it.Now I am getting an error saying ORADBPAR.XML file not found.I checked for this file but I could not find .Plz help me out to find this file and resolve the issue.
    Thanks
    Aditya Roushan

    Hi Carole,
    I had older version of SMD(7.01) installed in my system.I tried uninstalling this with sapinst downloaded with SMD7.2 so i got this error.I had to download the SMD7.01 from market place (you willl get this in archive) and then uninstall the SMD using this sapinst (which came with 7.01 version).i could do this successfully.Hope this will help you
    @Jose:Thanx for ur reply but using sudo had no problem.I uninstalled older SMD7.01 and installed SMD7.2 using sudo privilege only.
    Thanks
    Aditya Roushan

  • Error parsing XML file from a HttpServletRequest using JAXP

    Hi,
    I am trying to generate an XML file from an HttpServletRequest. I am actually using file uploading method in JSP to send the XML file. I think the parser isnt able to correctly identify the XML file from the message body and hence it is giving some strange error messages. Has anyone of u managed to solve this problem ?
    Code snippet:
    //now build an XML document from the requested input stream
    InputStream in = myRequest.getInputStream();
    try {
    myDocRequest = myParser.parse(in);
    } catch (Throwable t) {
    throw new Exception("Could not build document",t);
    Error message is:
    [Fatal Error] :1:1: Content is not allowed in prolog.
    java.lang.Exception: Could not build document
    at XMLUtil.<init>(XMLUtil.java:91)
    at WCS.doPost(WCS.java:44)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at XMLUtil.<init>(XMLUtil.java:89)
    ... 20 more
    Actually if i just print out the message, it gives something like this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <GetCapabilities version="1.0.0" service="wcs">
    <section>/WCS_Capabilities/Capability</section>
    </GetCapabilities>
    -----------------------------7d63dc71b06b2--
    Cheers.

    The ServletInput stream contains this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    i.e., its the HTTP File Upload MIME stuff, followed by the XML. You need to wrap around the input stream something that can decode the HTTP MIME stuff and let you get at the XML itself, i.e., something like: com.orielly.servlet.multipart.MultipartParser (Apache has a similar 'file upload servlet).
    Jeremy

  • Error Opening xml file

    Hi,
    I am struck with one error in opening the xml file. Pls provide me your inputs.
    I am using the pl/sql script for outbounding the data in .xml format. But after creating the file successfully I am not able to open it in the explorer. The data having '&' in one of the columns and it will be available in data in many areas. Where as if I try to create it the same with Oracle report by using 'xml' as output, then I am not getting this issue. And I am able to open the same in explorer perfectly.
    Here I am pasting the script which I've created
    create or replace PROCEDURE GETXML_TAG(ERRBUT OUT VARCHAR2,
    RETCODE OUT VARCHAR2,
    P_DIR_NAME VARCHAR2)
    IS
    v_record_data varchar2(4000) := null;
    v_order_id varchar2(50) := null;
    v_order_date varchar2(50) := null;
    v_order_mode varchar2(50) := null;
    v_order_total varchar2(50) := null;
    v_file_dir varchar2(100):= '/usr/tmp';
    CURSOR cur_hdr IS
    SELECT DISTINCT MINISTRY_CODE, DEPT_CODE, ''ENTITY_CODE
    FROM XGBZ_FIN_STAGE_ACS
    WHERE tx_timestamp IS NULL;
    CURSOR cur_line(p_min_code IN VARCHAR2,
    p_dept_code IN VARCHAR2) IS
    SELECT seg_no,
    seg_code,
    to_char(seg_description) seg_description,
    start_date,
    end_date,
    status,
    disable_flag
    FROM xgbz_fin_stage_acs
    WHERE tx_timestamp IS NULL
    AND ministry_code =p_min_code
    AND dept_code = p_dept_code;
    BEGIN
    v_filename := 'GEBIZ_EPO'||TO_CHAR(SYSDATE,'DDMMYYYYHH24MI')||'.xml';
    f_xml_file := UTL_FILE.FOPEN(v_file_dir, v_filename, 'W');
    v_record_data := '<?xml version="1.0" encoding="UTF-8"?>';
    UTL_FILE.put_line(f_XML_FILE, v_RECORD_DATA);
    UTL_FILE.put_line(f_XML_FILE, '<GEBIZ_ACCOUNT_SEGMENT>');
    dbms_output.put_line('step 1 '||v_file_dir||'-'||v_filename);
    FOR cur_hdr_rec IN cur_hdr
    LOOP
    dbms_output.put_line('step 2 ');
    UTL_FILE.put_line(f_XML_FILE, '<HEADER>');
    UTL_FILE.put_line(f_XML_FILE,'<MINISTRY_CODE>' || cur_hdr_rec.ministry_code || '</MINISTRY_CODE>');
    UTL_FILE.put_line(f_XML_FILE,'<DEPT_CODE>' || cur_hdr_rec.dept_code || '</DEPT_CODE>');
    UTL_FILE.put_line(f_XML_FILE,'<ENTITY_CODE>' || cur_hdr_rec.entity_code || '</ENTITY_CODE>');
    UTL_FILE.put_line(f_XML_FILE, '</HEADER>');
    FOR cur_line_rec IN cur_line(cur_hdr_rec.ministry_code, cur_hdr_rec.dept_code)
    LOOP
    dbms_output.put_line('step 3 ');
    UTL_FILE.put_line(f_XML_FILE, '<DETAILS>');
    UTL_FILE.put_line(f_XML_FILE, '<SEGEMENT>');
    UTL_FILE.put_line(f_XML_FILE,'<NUMBER>' || cur_line_rec.seg_no|| '</NUMBER>');
    UTL_FILE.put_line(f_XML_FILE,'<CODE>' || cur_line_rec.seg_no|| '</CODE>');
    UTL_FILE.put_line(f_XML_FILE,'<DESCRIPTION>' || cur_line_rec.seg_description|| '</DESCRIPTION>');
    UTL_FILE.put_line(f_XML_FILE,'<START_DATE>' || cur_line_rec.start_date|| '</START_DATE>');
    UTL_FILE.put_line(f_XML_FILE,'<END_DATE>' || cur_line_rec.end_date|| '</END_DATE>');
    UTL_FILE.put_line(f_XML_FILE,'<STATUS>' || cur_line_rec.status|| '</STATUS>');
    UTL_FILE.put_line(f_XML_FILE,'<DELETE_FLAG>' || cur_line_rec.disable_flag|| '</DELETE_FLAG>');
    UTL_FILE.put_line(f_XML_FILE, '</SEGEMENT>');
    UTL_FILE.put_line(f_XML_FILE, '</DETAILS>');
    END LOOP;
    END LOOP;
    dbms_output.put_line('step 4 ');
    UTL_FILE.put_line(f_XML_FILE, '</GEBIZ_ACCOUNT_SEGMENT>');
    UTL_FILE.FCLOSE(f_XML_FILE);
    EXCEPTION
    WHEN UTL_FILE.INVALID_OPERATION THEN
    dbms_output.put_line('Invalid Operation For '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.INVALID_PATH THEN
    dbms_output.put_line('Invalid Path For '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.INVALID_MODE THEN
    dbms_output.put_line('Invalid Mode For '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.INVALID_FILEHANDLE THEN
    dbms_output.put_line('Invalid File Handle '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.WRITE_ERROR THEN
    dbms_output.put_line('Invalid Write Error '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.READ_ERROR THEN
    dbms_output.put_line('Invalid Read Error '|| v_filename);
    UTL_FILE.FCLOSE_ALL;
    WHEN UTL_FILE.INTERNAL_ERROR THEN
    dbms_output.put_line('Internal Error');
    UTL_FILE.FCLOSE_ALL;
    WHEN OTHERS THEN
    dbms_output.put_line('Other Error '||'SQL CODE: '||SQLCODE||' Messg: '||SQLERRM);
    UTL_FILE.FCLOSE_ALL;
    END GETXML_TAG;
    The file I am generating at the server level:
    EPO150320111915.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <GEBIZ_ACCOUNT_SEGMENT>
    <HEADER>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPT_CODE>000</DEPT_CODE>
    <ENTITY_CODE></ENTITY_CODE>
    </HEADER>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>1</NUMBER>
    <CODE>1</CODE>
    <DESCRIPTION>Republic Polytechnic</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Operating Grant</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Dev Grant-Renovation to Temp Campus Temp</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Dev Grant-Renovation to Temp Campus Main</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Dev Grant-IT for Temp Campus</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Dev Grant-Land Premium for Woodlands Campus</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Dev Grant-Pre-construction of Woodlands Campus</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
         <DESCRIPTION>Dev Grant-FE</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Tax Exempt-Student Dev Welfare Fund</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>Tax Exempt-Dev Project Fund</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>2</NUMBER>
    <CODE>2</CODE>
    <DESCRIPTION>For Finance Use ONLY</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Library</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Academic Affairs</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Corporate Communications</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Deputy Principal</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Estates</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Finance</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Human Resource</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    <DETAILS>
    <SEGEMENT>
    <NUMBER>3</NUMBER>
    <CODE>3</CODE>
    <DESCRIPTION>Office of Industrial & International Services</DESCRIPTION>
    <START_DATE></START_DATE>
    <END_DATE></END_DATE>
    <STATUS>A</STATUS>
    <DELETE_FLAG></DELETE_FLAG>
    </SEGEMENT>
    </DETAILS>
    </GEBIZ_ACCOUNT_SEGMENT>
    ------ end of file
    I am able to edit it correctly in notepad, when tried to open at explorer level its not allowing me because of '&'.
    Pls confirm what might be the issue.
    Regards
    Nagendra

    This is the output:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <GEBIZ_PO_FUND_STATUS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000086</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>306</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>RM</UNIT_OF_MEASURE>
    <QUANTITY>100</QUANTITY>
    <TOTAL_AMOUNT>306</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>100</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>100</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1ODP/000/220702/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000090</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>4950</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
    <QUANTITY>9000</QUANTITY>
    <TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>2</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>3</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
    <QUANTITY>9000</QUANTITY>
    <TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>2</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>3</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
    <QUANTITY>9000</QUANTITY>
    <TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>2</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    - <LOCATION>
    <LINE_NUMBER>3</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000097</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>160</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
    <QUANTITY>2</QUANTITY>
    <TOTAL_AMOUNT>80</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>2</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>2</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/3SIT/000/221103/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000097</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>240</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>2</LINE_NUMBER>
    <UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
    <QUANTITY>3</QUANTITY>
    <TOTAL_AMOUNT>120</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>3</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/3SIT/000/221103/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000099</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>1000</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
    <QUANTITY>1000</QUANTITY>
    <TOTAL_AMOUNT>1000</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>1000</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>1000</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000112</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>7450</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
    <QUANTITY>50</QUANTITY>
    <TOTAL_AMOUNT>7450</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>50</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>50</QUANTITY>
    <CHART_OF_ACCOUNT>1/D03/1OIS/000/220308/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    - <HEADER>
    <ORDER_CODE>RPO000EPO03000115</ORDER_CODE>
    <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
    <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
    <VARIATION_NUMBER>0</VARIATION_NUMBER>
    - <TOTAL_AMOUNT>
    <CURRENCY_CODE>SGD</CURRENCY_CODE>
    <CURRENCY_AMOUNT>175</CURRENCY_AMOUNT>
    </TOTAL_AMOUNT>
    <MINISTRY_CODE>RPO</MINISTRY_CODE>
    <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </HEADER>
    - <ITEMS>
    - <ITEM>
    <LINE_NUMBER>1</LINE_NUMBER>
    <UNIT_OF_MEASURE>LT</UNIT_OF_MEASURE>
    <QUANTITY>1</QUANTITY>
    <TOTAL_AMOUNT>175</TOTAL_AMOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <LOCATIONS>
    - <LOCATION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>1</QUANTITY>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    - <DISTRIBUTIONS>
    - <DISTRIBUTION>
    <LINE_NUMBER>1</LINE_NUMBER>
    <QUANTITY>1</QUANTITY>
    <CHART_OF_ACCOUNT>1/G01/1OPT/000/220702/0000/0000/0000</CHART_OF_ACCOUNT>
    <FUND_STATUS>COMMITTED</FUND_STATUS>
    <FUND_REJECT_REASON />
    </DISTRIBUTION>
    </DISTRIBUTIONS>
    </LOCATION>
    </LOCATIONS>
    </ITEM>
    </ITEMS>
    </GEBIZ_PO_FUND_STATUS>
    <FUND_REJECT_REASON /> is one of the element where some times I can have data and some times I won't.
    This is the script I used for generating that data
    SELECT xmlserialize(document
    xmlelement("GEBIZ_PO_FUND_STATUS"
    , xmlagg(
    xmlconcat(hdr, dtls)
    as clob indent size = 2
    INTO lv_out
    FROM (
    SELECT xmlelement("HEADER"
    , xmlelement("ORDER_CODE", po_cont_code)
    , xmlelement("EXTERNAL_SYSTEM_CODE", ext_system_code)
    , xmlelement("AMENDMENT_NUMBER", amendment_no)
    , xmlelement("VARIATION_NUMBER", variation_no)
    , xmlelement("TOTAL_AMOUNT"
    , xmlelement("CURRENCY_CODE", currency_code)
    , xmlelement("CURRENCY_AMOUNT", total_amount)
    , xmlelement("MINISTRY_CODE",ministry_code)
    , xmlelement("DEPARTMENT_CODE",dept_code)
    , xmlelement("FUND_STATUS", hdr_fund_status)
    , xmlelement("FUND_REJECT_REASON", hdr_fund_reject_res)
    ) hdr
    , xmlagg(
    xmlelement("ITEMS"
    , xmlelement("ITEM"
    , xmlelement("LINE_NUMBER", line_no)
    , xmlelement("UNIT_OF_MEASURE", uom_code)
    , xmlelement("QUANTITY", line_quantity)
    , xmlelement("TOTAL_AMOUNT", line_total_amount)
    , xmlelement("FUND_STATUS", line_fund_status)
    , xmlelement("FUND_REJECT_REASON", line_fund_reject_res)
    ,xmlelement("LOCATIONS"
    ,xmlelement("LOCATION"
    ,xmlelement("LINE_NUMBER", shipment_num)
    ,xmlelement("QUANTITY",line_location_quantity)
    ,xmlelement("FUND_STATUS",loc_fund_status)
    ,xmlelement("FUND_REJECT_REASON",loc_fund_reject_res)
    ,xmlelement("DISTRIBUTIONS"
    ,xmlelement("DISTRIBUTION"
    ,xmlelement("LINE_NUMBER", distribution_num)
    ,xmlelement("QUANTITY", quantity_ordered)
    ,xmlelement("CHART_OF_ACCOUNT",chart_account)
    ,xmlelement("FUND_STATUS", dist_fund_status)
    ,xmlelement("FUND_REJECT_REASON", dist_fund_reject_res)
    ) dtls
    FROM xgbz_fin_stage_pof_v
    GROUP BY po_cont_code,ext_system_code,amendment_no,variation_no,currency_code,total_amount,
    ministry_code, dept_code, hdr_fund_status,hdr_fund_reject_res);
    When ever, for any of the above columns does not have data that time it is coming like this for eg:
    <FUND_REJECT_REASON />
    instead of this can I have output like this
    <FUND_REJECT_REASON > </FUND_REJECT_REASON>
    for those non data elements.
    Is that possible .
    Thanks for your help.
    Regards
    Nagendra

  • Error in xml file

    I have created a form through screen painter and converted it to xml for accesing it  through asp.net.The xml file gives following error-
    An unhandled exception of type
    'System.Runtime.InteropServices.COMException' occured in Project1.exe
    Additional information:Form -already exists [66000-11].Form Unique Id:
    'SBOFormEditor_16'

    hi dilip,
    As u told, u have two problem..
    1.) error in creating xml.
              do one thing, open srf in any editor, copy all content to a blank notepad file then
              file > save as
               a.) file type to all files
               b.) encoding to unicode
               c.) file name with extension 
    2.) form already exist.
             to overcome this, u have to close the sap business one and restart it.
    hope both will help u.
    if satisfied, rewards points.
    regards
    nirdesh panwar

  • XML File Generation Issues using DBMS_XMLGEN

    Hi,
    I am using DBMS_XMLGEN package in a stored procedure to generate an XML file on Oracle 10 G R2 .But, the problem is the format in which the file is generated.
    CREATE OR REPLACE TYPE "state_info" as object (
    "@product_type" Number
    CREATE OR REPLACE TYPE prod_tab as TABLE OF "state_info";
    CREATE OR REPLACE TYPE state_t as object (
    "state_code" CHAR(2),
    "state_info" prod_tab
    CREATE OR REPLACE PROCEDURE get_xml_serviced_state (p_clob OUT clob)
    IS
    v_xmlctx DBMS_XMLGEN.ctxhandle;
    v_str VARCHAR2 (1000);
    BEGIN
    v_str := 'SELECT state_t(a.st_cd,CAST(MULTISET(select veh_type_id from svcd_st where st_cd =a.st_cd)as prod_tab)) as "state_info"
    from svcd_st a where a.st_cd in (select distinct st_cd from svcd_st) group by a.st_cd having count(*)>=1';
    v_xmlctx := DBMS_XMLGEN.newcontext (v_str);
    DBMS_XMLGEN.setrowsettag (v_xmlctx,'serviced_state');
    DBMS_XMLGEN.setrowtag (v_xmlctx,NULL);
    p_clob := DBMS_XMLGEN.getxml (v_xmlctx);
    printclobout(p_clob);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    RAISE;
    END;
    SHOW ERRORS
    Output :
    <serviced_state>
    <state_info state_code="VA">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    <state_info state_code="AB">
    <state_info>
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </state_info>
    </serviced_state>
    Required it in below format:
    <serviced_state>
    <state_info state_code="VA">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    <state_info state_code="AB">
    <state_info product_type="2"/>
    <state_info product_type="5"/>
    <state_info product_type="9"/>
    </state_info>
    </serviced_state>
    I just need to put in all the rows under one single tag.Appreciate your early responses.
    Thanks.

    Your wanted XML output is NOT VALID...(try it yourself on http://tools.decisionsoft.com/schemaValidate/)

  • I did the update to 3.6.11 - when it restarted it will not open any pages. When i go to check for updates it gives me this error: Update XML file malformed (200) - Any advice?

    I did the update to 3.6.11 - After it started Firefox it would go to the requested site in the addressbar, but the page would be blank. I went to check for updates and it told me there was a problem in updating. It gave me this error message: Update XML file malformed (200)
    I uninstalled and reinstalled and the same problem exists.
    Any advice?

    For the error message see [[AUS Update XML File Malformed 200]].
    As it appears not to be able to load any sites, a possible cause is your firewall blocking the new version of Firefox. For more details see [[Firefox cannot load websites but other programs can]].

  • Sqlldr errors loading XML file

    I am getting two errors on two different data elements trying to load an XML file. DB version is 11.2.0.2.0 - 64bit.
    This is part of the instance file:
    <?xml version="1.0" encoding="utf-8"?>
    <SamseAMSS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://SAMSE-AMSS.org/namespace">
    <FileInfo>
    <AviationUIC>
    <OrigUnit>
    <UIC>WV7PB0</UIC>
    <UnitName>B TRP 1-230TH ACS</UnitName>
    <OrgLocCde>A</OrgLocCde>
    <DPICode>Need LOGSA DPICode</DPICode>
    <IsReporter>true</IsReporter>
    <UnitPOC />
    <POCNbr>(865)985-4634</POCNbr>
    <POCEmail />
    </OrigUnit>
    <AMSSUtilCde>
    <UtilCde>0</UtilCde>
    <Summary>
    <EIC>ROC</EIC>
    *<MDS xsi:type="xsd:string">OH-58D</MDS>*
    *<Model>OH-58D</Model>*
    <QtyAuth>6</QtyAuth>
    <QtyOH>6</QtyOH>
    <RptTimeCde>H</RptTimeCde>
    </Summary>
    </AMSSUtilCde>
    </AviationUIC>
    The problem is with the MDS and Model elements.
    This is part of the schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns="http://SAMSE-AMSS.org/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    targetNamespace="http://SAMSE-AMSS.org/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:smse="http://samsecommon.xsd/namespace"
    elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:import namespace="http://samsecommon.xsd/namespace" schemaLocation="samsecommon.xsd"/>
    <xs:element name="SamseAMSS" xdb:defaultTable="SAMSEAMSS">
    <xs:sequence>
    <xs:element name="FileInfo" smse:type="SamseFileInfoType"/>
    <xs:element name="AviationUIC" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation>1 element for each UIC being reported</xs:documentation>
    </xs:annotation>
    <xs:complexType xdb:SQLType="AMSSUIC_T">
    <xs:sequence>
    <xs:element name="AMSSUtilCde" minOccurs="0" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation>1 element for each UtilCde being reported for this UIC</xs:documentation>
    </xs:annotation>
    <xs:complexType xdb:SQLType="AMSSUTILCDE_T">
    <xs:sequence>
    <xs:element name="UtilCde">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:token">
    <xs:length value="1"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="Summary" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation>1 element per type of equipment (by EIC / PrimeEIC) authorized for this UIC -- always sent every time.</xs:documentation>
    </xs:annotation>
    <xs:complexType xdb:SQLType="SUMMARY_T">
    <xs:sequence>
    <xs:element name="EIC" minOccurs="0" smse:type="EICType">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    </xs:element>
    *<MDS xsi:type="xsd:string">OH-58D</MDS>*
    *<Model>OH-58D</Model>*
                   <xs:element name="PrimeEIC" minOccurs="0" smse:type="EICType" nillable="true">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:element name="QtyAuth" type="xs:unsignedShort"/>
    First, it doesn't recognize the "Model" data element that is defined in the schema:
    Record 3: Rejected - Error on table SAMSEAMSS.
    ORA-30937: No schema definition for 'Model' (namespace 'http://SAMSE-AMSS.org/namespace') in parent '/SamseAMSS/AviationUIC[1]/AMSSUtilCde[1]/Summary[1]'
    If I remove the Model from the instance file and try to load, it does not recognize the xsi:type in the MDS element. I also tried using xsi:type in the schema definition.
    Record 1: Rejected - Error on table SAMSEAMSS.
    ORA-31079: unable to resolve reference to type "string"
    If I change xsi:type to xsd:type it loads with no errors. However we don't control the incoming XML files so it needs to load with xsi:type.
    Thanks for your help.

    Whoops no I didn't put that in the schema definition! This is the part with those elements:
    <xs:complexType xdb:SQLType="AMSSUTILCDE_T">
    <xs:sequence>
    <xs:element name="UtilCde">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:token">
    <xs:length value="1"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="Summary" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation>1 element per type of equipment (by EIC / PrimeEIC) authorized for this UIC -- always sent every time.</xs:documentation>
    </xs:annotation>
    <xs:complexType xdb:SQLType="SUMMARY_T">
    <xs:sequence>
    <xs:element name="EIC" smse:type="EICType">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    </xs:element>
                   *<xs:element name="MDS" minOccurs="0" type="xsd:string"/>*
                   *<xs:element name="Model" minOccurs="0" type="xsd:string"/>*
                   <xs:element name="PrimeEIC" smse:type="EICType" nillable="true">
    <xs:annotation>
    <xs:documentation>Key Field</xs:documentation>
    </xs:annotation>
    </xs:element>
    Thanks.
    Edited by: user4109719 on Jun 12, 2012 6:32 AM Put correct Model definition
    Edited by: user4109719 on Jun 12, 2012 6:37 AM

  • Error parsing XML file

    Hi Everyone:
    When I wrote a java class to parse an XML file,
    I got this strange error:
    "Unconvertible UTF-8 character beginning with 0x97" (line number may be too low)."
    I am using the XMLReaderImpl provided by appache, here is how i wrap it
    String READER = "org.apache.crimson.parser.XMLReaderImpl"
    XMLReader reader = XMLReaderFactory.createXMLReader(READER)
    reader.parse(xmlFile);
    now I copied and paste my xmlfile from Word doc to notepad, and then rename it as an XML file, does this have anything to do with the error i am getting, please let me know,,
    Thanks,

    Okay...I am replying my own thread..this is odd...
    but i found the solution to it...
    if you are editing your xml in a notepad or other text editor, remember to change the encoding from ansi to utf when you save it. That is all you need to do.
    You don't actually need to specify the encoding scheme in your xml doc, it is utf by default...hope this helps, so someone else won't run into the same problem
    cheers, everybody

  • Error loading xml file with sqlldr

    Hi there,
    I am having trouble loading an xml file via sqlldr into oracle.
    The version i am running is Oracle Database 10g Release 10.2.0.1.0 - 64bit Production and the file size is 464 MB.
    It ran for about 10 hours trying to load the file and then threw up the error:
    ORA-22813: operand value exceeds system limits.
    I have loaded a file of 170MB using the same process succesfully.
    Any Ideas?
    Cheers,
    Dan.

    Looked a bit into the issue (ORA-22813) and although it can be caused by a lot of issues varrying database versions, you could have a go at sizing up your PGA database parameter. See Oracle support Doc ID 837220.1 for more info.
    The following might help
    CREATE OR REPLACE PROCEDURE show_pga_memory (context_in IN VARCHAR2 DEFAULT NULL)
    SELECT privileges required on:
      SYS.v_$session
      SYS.v_$sesstat
      SYS.v_$statname
    Here are the statements you should run:
    GRANT SELECT ON SYS.v_$session  TO <schema>;
    GRANT SELECT ON SYS.v_$sesstat  TO <schema>;
    GRANT SELECT ON SYS.v_$statname TO <schema>;
    IS
      l_memory NUMBER;
    BEGIN
      SELECT st.VALUE
        INTO l_memory
        FROM SYS.v_$session se, SYS.v_$sesstat st, SYS.v_$statname nm
      WHERE se.audsid = USERENV ('SESSIONID')
        AND st.statistic# = nm.statistic#
        AND se.SID = st.SID
        AND nm.NAME = 'session pga memory';
      DBMS_OUTPUT.put_line (CASE WHEN context_in IS NULL
                              THEN NULL
                              ELSE context_in || ' - '
                            END
                            || 'PGA memory used in session = ' || TO_CHAR (l_memory));
    END show_pga_memory;
    /

  • Database character set = UTF-8, but mismatch error on XML file upload

    Dear experts,
    I am having problems trying to upload an XML file into an XMLType table. The Database is 9.2.0.5.0, with the character set details:
    SELECT *
    FROM SYS.PROPS$
    WHERE name like '%CHA%';
    Query results:
    NLS_NCHAR_CHARACTERSET          UTF8     NCHAR Character set
    NLS_SAVED_NCHAR_CS          UTF8
    NLS_NUMERIC_CHARACTERS          .,     Numeric characters
    NLS_CHARACTERSET          UTF8     Character set
    NLS_NCHAR_CONV_EXCP          FALSE     NLS conversion exception
    To upload the XML file into the XMLType table, I am using the command:
    insert into XMLTABLE
    values(xmltype(getClobDocument('ServiceRequest.xml','UTF8')));
    However, I get the error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    Why does it mention UCS2, as can't see that on the Database character set?
    Many thanks for your help,
    Mark

    USC2 is known as AL16UTF16(LE/BE) by Oracle...
    Try using AL32UTF8 as the character set name
    AFAIK The main difference between Oracle's UTF8 and AL32UTF8 character set is that is the UTF8 character set does not support those UTF-8 characteres that require 4 bytes..
    -Mark

  • Error in xml file validation to its relevant xml schema

    Hi All,
    I have 3 xml schema files files from which I generated a XML file using PLSQL.I am getting this error when I am trying to validate xml file to the schema:
    *'WMWROOT' NOT DECLARED*.Can anyone help me with this,I am including the main schema file and also the XML generated.
    XML Schem file:
    Itemdownload.xsd:
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema id="ItemDownload" targetNamespace="http://www.manh.com/ILSNET/Interface" elementFormDefault="qualified"
         xmlns="http://www.manh.com/ILSNET/Interface" xmlns:xs="http://www.w3.org/2001/XMLSchema" version ="2007">
         <xs:include schemaLocation="Item.xsd" />
    <xs:element name="WMWROOT" nillable="true" type="WMWROOT" />
    <xs:complexType name="WMWROOT">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="WMWDATA" type="WMWDATA" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="WMWDATA" nillable="true" type="WMWDATA"/>
    <xs:complexType name="WMWDATA">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="Items" type="ItemList" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="Items" nillable="false" type="ItemList" />
    <xs:complexType name="ItemList">
    <xs:sequence>
    <xs:element minOccurs="1" maxOccurs="unbounded" name="Item" nillable="true" type="Item" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    The generated xml file is:
    <?xml version="1.0" ?>
    <WMWROOT>
    <WMWDATA>
    <Items>
    <Item><Action>Save</Action><UserDef8>10074</UserDef8><Active>Y</Active><AvailableOnWeb>N</AvailableOnWeb><Company>OU: ResMed Corp</Company><Cost>285.93</Cost><Desc>HP DESKJET PRINTER (EMBLA)</Desc><HarmCode><UserDef8>10074</UserDef8></HarmCode><Item>R145-794</Item><InventoryTracking>Y</InventoryTracking><LongDesc>HP DESKJET PRINTER (EMBLA)</LongDesc><LotControlled>Y</LotControlled><SerialNumTrackOutbound>7</SerialNumTrackOutbound><StorageTemplate><Template>Each</Template></StorageTemplate><XRefs><XRef><XRefItem></XRefItem></XRef></XRefs></Item>
    <Item><Action>Save</Action><UserDef8>80862</UserDef8><Active>Y</Active><AvailableOnWeb>N</AvailableOnWeb><Company>OU: ResMed Corp</Company><Cost>54.27</Cost><Desc>Mirage Micro Mask MED&amp;LG-Internet Pkg</Desc><HarmCode><UserDef8>80862</UserDef8></HarmCode><Item>16359</Item><InventoryTracking>Y</InventoryTracking><LongDesc>Mirage Micro Mask MED&amp;LG-Internet Pkg</LongDesc><LotControlled>Y</LotControlled><SerialNumTrackOutbound>N</SerialNumTrackOutbound><StorageTemplate><Template>Each</Template></StorageTemplate><XRefs><XRef><XRefItem>619498163597</XRefItem></XRef></XRefs></Item>
    </Items>
    </WMWDATA>
    </WMWROOT>
    I can provide you with the other 2 dependent schemas if needed.Please reply me!!

    Hey,
    As you said I tried keeping the namespace in xml file and it worked for a strange reason I am getting the same error again,I am not able to figure it why!!
    The error is:
    SAMPLEITEMDLFILE.xml:2,139: no declaration found for element 'WMWROOT'
    The XML document SAMPLEITEMDLFILE.xml is NOT valid (1 errors)
    This is the part of PL/SQL code thru which I am generating the xml:
    UTL_FILE.put_line (l_out_file, '<?xml version="1.0" ?>');
    UTL_FILE.put_line (l_out_file, '<WMWROOT');
    UTL_FILE.put_line (l_out_file, 'xmlns="http://www.manh.com/ILSNET/Interface"> ');
    UTL_FILE.put_line (l_out_file, '<WMWDATA>');
    UTL_FILE.put_line (l_out_file, '<Items>');
    I am validating it in stylus studio tool.
    Can you please help me thru this?

  • Error in xml file validating to xml schema

    Hey,
    I am getting the following error while validating xml file to its schema:
    The error is:
    SAMPLEITEMDLFILE.xml:2,139: no declaration found for element 'WMWROOT'
    The XML document SAMPLEITEMDLFILE.xml is NOT valid (1 errors)
    schema file:
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema id="ItemDownload" targetNamespace="http://www.manh.com/ILSNET/Interface" elementFormDefault="qualified"
         xmlns="http://www.manh.com/ILSNET/Interface" xmlns:xs="http://www.w3.org/2001/XMLSchema" version ="2007">
         <xs:include schemaLocation="Item.xsd" />
    <xs:element name="WMWROOT" nillable="true" type="WMWROOT" />
    <xs:complexType name="WMWROOT">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="WMWDATA" type="WMWDATA" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="WMWDATA" nillable="true" type="WMWDATA"/>
    <xs:complexType name="WMWDATA">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="Items" type="ItemList" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="Items" nillable="false" type="ItemList" />
    <xs:complexType name="ItemList">
    <xs:sequence>
    <xs:element minOccurs="1" maxOccurs="unbounded" name="Item" nillable="true" type="Item" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    This is the part of PL/SQL code thru which I am generating the xml:
    UTL_FILE.put_line (l_out_file, '<?xml version="1.0" ?>');
    UTL_FILE.put_line (l_out_file, '<WMWROOT');
    UTL_FILE.put_line (l_out_file, 'xmlns="http://www.manh.com/ILSNET/Interface"> ');
    UTL_FILE.put_line (l_out_file, '<WMWDATA>');
    UTL_FILE.put_line (l_out_file, '<Items>');
    I am validating it in stylus studio tool.
    Can any1 tell me where I am goin wrong?

    Hi,
    I am using databse version 10.2.0.03. I am getting the output of xml file like tis:
    <?xml version="1.0" ?>
    <WMWROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.manh.com/ILSNET/Interface ItemDownload.xsd">
    WMWDATA>
    <Items>
    <Item>
    <action>Save</action><UserDef8>10074</UserDef8><active>Y</active><availableonweb>N</availableonweb><cost>285.93</cost><desc>HP DESKJET PRINTER (EMBLA)</desc><HarmCode><Identifier>9019.20.0000</Identifier></HarmCode><Item>R145-794</Item><InventoryTracking>Y</InventoryTracking><LongDesc>HP DESKJET PRINTER (EMBLA)</LongDesc><LotControlled>Y</LotControlled><SerialNumTrackInbound>Y</SerialNumTrackInbound><SerialNumTrackInventory>Y</SerialNumTrackInventory><SerialNumTrackOutbound>Y</SerialNumTrackOutbound><StorageTemplate><Template>Each</Template></StorageTemplate><XRefs><XRef></XRef></XRefs>
    </Item>
    </Items>
    </WMWDATA>
    </WMWROOT>
    My plsql code is like tis:
    SELECT /*rule*/
    XMLELEMENT (
    "Item",
    XMLFOREST (action AS "action",
    Userdef8 AS "UserDef8",
    active AS "active",
    availableonweb AS "availableonweb",
    cost AS "cost",
    description AS "desc"),
    XMLELEMENT ("HarmCode",
    XMLFOREST (Identifier AS "Identifier")),
    XMLFOREST (
    Item AS "Item",
    inventorytracking AS "InventoryTracking",
    Longdesc AS "LongDesc",
    lotcontrolled AS "LotControlled",
    serialnumtrackinbound AS "SerialNumTrackInbound",
    serialnumtrackinventory AS "SerialNumTrackInventory",
    serialnumtrackoutbound AS "SerialNumTrackOutbound"),
    XMLELEMENT ("StorageTemplate",
    XMLFOREST (Template AS "Template")),
    XMLELEMENT (
    "XRefs",
    XMLELEMENT ("XRef", XMLFOREST (XRefItem AS "XRefitem")))).
    getclobval ()
    ----------------------------------------writing to utl file-------------
    l_out_file :=
    UTL_FILE.fopen (lv_path,
    -- lv_out_file,
    'testingitemsdl.xml',
    'W',
    32767);
    UTL_FILE.put_line (l_out_file, '<?xml version="1.0" ?>');
    UTL_FILE.put_line (l_out_file, '<WMWROOT');
    UTL_FILE.put_line (l_out_file, 'xmlns="http://www.manh.com/ILSNET/Interface"> ');
    UTL_FILE.put_line (l_out_file, '<WMWDATA>');
    UTL_FILE.put_line (l_out_file, '<Items>');
    FOR i IN lc_item_info
    LOOP
    UTL_FILE.put_line (l_out_file, i.item);
    END LOOP;
    UTL_FILE.put_line (l_out_file, '</Items>');
    UTL_FILE.put_line (l_out_file, '</WMWDATA>');
    UTL_FILE.put_line (l_out_file, '</WMWROOT>');
    UTL_FILE.fclose (l_out_file);

Maybe you are looking for

  • Runtime Error DBIF_RSQL_SQL_ERROR exception CX_SY_OPEN_SQL_DB

    Hi, i need some guides to solve this problem. The program works fine in client DEV. However, when it's in QAS, we encounter  short dump: Runtime Error DBIF_RSQL_SQL_ERROR exception CX_SY_OPEN_SQL_DB info from short dump: An SQL error occurred when ac

  • Iphone 4s battery melts after ios 7.1

    Last Friday I've upgraded to IOS 7.1. especially after learning that the upgrade is especially helpful for iphone 4s, Yes it fastens the device but the battery "melts" I've searched the issue from the web and applied all the suggestions to improve ba

  • Uk Curve not working in New Zealand

    Can anyone help me. My 8900 is unlocked but when I put a New Zealand sim in the phone it only makes calls and texts.  It wont use any apps that require to get on the data network. What do I need to do to my handset to let me onto NZ data networks?

  • SG200-26P + SF200-24P, LAG? Trunking?

    I'm not a network person by any means and have no problem admitting that. That's why I'm here. I have a SG200-26P that is already configured and working properly. It is connected to an ASA5505 that is acting as the DHCP server. We currently have 3 VL

  • Text in total

    hi ,                  i have an requirenment, i have to display text before total in alv(like payable by you 2890.00) . am using reuse_alv_grid_display. without appending text in internal table.