Error accessing XML file
When i try to read an XML from a url outside my domain, i
receive this sandbox error : [RPC Fault faultString="Security error
accessing url" faultCode="Channel.Security.Error"
faultDetail="Destination: DefaultHTTP"
I understand this is under cross domain policies in Flash
Player. Anyway, is there a technique i could read or load this XML
file without getting the error?
The web site that you are trying to read from must have a
crossdomain.xml file
in it's root that allows access.
Below is an example that allows all access (fine for testing
but not for production)
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" secure="true"
/>
</cross-domain-policy>
This must be in the root of the WebSever. Note that this
varies based on the WebServer. For tomcat it is the webapps\ROOT
directory.
To verify that the policy file is in the root you should be
able to see
it by typing in a browser:
http://myserver:myport/crossdomain.xml
Similar Messages
-
Hi,
I need access XML file from HTTP. Server need parameters in the URL to generate XML files. For example, http://fileserver/xmlfile?orderid=123&custid=321.
I created a XML Data Server in ODI 11g. The JDBC Url should be jdbc:snps:xml?f=<filename>&s=<schema>&d=<DTD>.
However, it reports error when replaced the <filename> with "http://fileserver/xmlfile?orderid=123&custid=321".
I found it's caused by ampersand of the HTTP Url. I guess ODI treat custid=321 as JDBC parameter rather than HTTP parameter.
How to fill the JDBC Url in this situation?
Thanks,i solved my problem by using the Socket object and controlling my file access by writing requests to the outputstream
-
Is XML adapter should be installed in BODS server in order to access XML files?
Hi All,
I have doubts while working withe XML/XSD files.
1.Is XML adapter should be installed in BODS server in order to access XML files?
2.What is startup_script.xml that we need to set up in Admin side.
Thanks,
DeepthiHi Shiva,
Thanks for reply. With out XML adapter I am able to load .xml file throght BODS using template XML. But I am notable to view the file properly like it is not showing schema.
I doubt I need to check with XML source using BODS.But I have few doubts.
1. XSD in local mechine and XML in Remote server (FTP).- In this case I am able to read the stucture of XSD.
2. XSD and XML in FTP server-- In this case I am unable read the XSD structure from FTP server
Please suggest how access XSD and XML in the job with out error.
Thanks,
Deepa -
"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 -
How to access xml file using c
how to access xml file using c. are there any libraries regarding xml fastinfoset in c? Please let me know about any resources if u know? thanks!!!
samithaThere are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.
-
Accessing XML files through java
Can any one explain me the easiest way of accessing XML files from Java.
Hi,
If you want to only access the XML file, use the SAX parser It will be very easy to handle and identify the element and value.
else if u want to change the XML value also, then better go with DOM, Which has very good flexiblity.
use according to the need, let me know if any help is required......
With Cheers
PrasannA -
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 RoushanHi 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 -
Help: Problems accessing XML file in WebSphere 3.5 Fix Pack 4 on Solaris
We are having an emergent issue with WebSphere 3. 5 Fix Pack 4 on Solaris 2.6: The WAR file we deployed fails with runtime exception due to the inability
to access a local resource(XML file) in the converted WAR file's web directory.
The way we access this XML file is as follows:
ServletContext theCon = getServletContext();
URL u = theCon.getResource ("/web/test.xml");
String newPath = u.toExternalForm ();
InputStream is = new URL (newPath).openStream();
The InputStream returned from the URL object is NULL.
After checked the URL's externalForm string, we noticed that its protocol part is "classloader", e.g. the whole URL string is like "classloader:/opt/...../web/test.xml". However, if we replaced "classloader" with "file", the problem disappeared and the XML file can be read without error.
Anybody know why "classloader:" in the URL string cause this problem, and what is the solution without changing the URL string?
Thanks a lot!Hi,
Can you try to replace the two last lines with:InputStream is = new FileInputStream (u.getFile());Hope this helps,
Kurt. -
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 -
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 -
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
NagendraThis 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 -
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 -
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 -
Flex Widget in Acrobat 9 access xml file
Hi,
I made a Flex application which accesses an xml file on my pc. When I insert the application in Acrobat 9, the data in the xml isn't loaded. I think that the Flash player in Acrobat 9 can't access the xml due to security reasons. Embedding the xml in the swf isn't an option because changes to the xml must be visible. What can I do to load the xml?I can view the xml file via web browser. one more thing is if
i access the swf file under http request, it does work, say
http://localhost/xxx.swf.
Could tell me why i failed to run the swf file out of project/bin
folder by double click ?
Thanks again.
Maybe you are looking for
-
Couldn't and can't connect to iTunes or game center before and after updating to 8.2
Okay so i was playing clash of clans and signed out of my Game Center and when i went to sign back in I was given the error saying there wasn't communication with the server. I tried signing out of iTunes and back in and that wouldn't let me connect.
-
does the iphone 4s have a voice assisted gps system when io6 is downloaded onto the phone?
-
Hi ALL my Field Catalogue has been built and i am using the pollowing code on PBO module of screen IF g_container IS INITIAL. CREATE OBJECT g_container EXPORTING container_name = 'GRD_CNTRL' EXCEPTIONS cntl_system_erro
-
GridControl: Column width and Font Color
I'm having two problems with the GridControl in JBCL: 1) I can't set the font color of the text in the gridcontrol. Is this possible? I tried setting the foreground color, but that didn't work. I'd also like to be able to set the background color for
-
I want to have a button that when moused over, slowly fades to 100% alpha, and when moused off, fades back away to 0%. My code works fine if I mouseover the button, wait for it to fade all the way up, and then mouse off. If I quickly mouse over it an