How to convert XML content into SQL INSERT statements
Hi all,
I'm very new to XML. Forgive me if I don't use technical XML terms. :-)
We are planning to convert SQL queries into XML format using a third party tool.
After that we have to read the XML files and use the tokens to insert into custom tables.
So, basically we have to create INSERT statements using the data stored in the XML file.
How do we go about reading / parsing the XML file in Java?
Pls help!
Regards,
Sam
This is the requirement with an example.
eg. if the following SQL query is fed into the 3rd party system,
select last_name,job_id,salary from employees a, deptno b
where a.deptno = b.deptno
the output would be,
<?xml version="1.0" ?>
<sqlscript dbvendor="MSSQL">
<fullselectstmt nestlevel="0">
<subselectstmt><selectclause><fieldlist>
<field><fieldname>
<attr>
<sourcetoken toketype="" dbobjtype="field">last_name</sourcetoken>
</attr>
</fieldname>
</field>
<field><fieldname>
<attr>
<sourcetoken toketype="" dbobjtype="field">job_id</sourcetoken>
</attr>
</fieldname>
</field>
<field><fieldname>
<attr>
<sourcetoken toketype="" dbobjtype="field">salary</sourcetoken>
</attr>
</fieldname>
</field>
</fieldlist></selectclause>
<fromclause><joinlist><join nestlevel="0">
<lztable><simpletable><attr>
<sourcetoken toketype="" dbobjtype="table">employees</sourcetoken>
</attr><aliasclause withas="false"><sourcetoken toketype="" dbobjtype="table alias">a</sourcetoken></aliasclause></simpletable></lztable></join><join nestlevel="0">
<lztable><simpletable><attr>
<sourcetoken toketype="" dbobjtype="table">deptno</sourcetoken>
</attr><aliasclause withas="false"><sourcetoken toketype="" dbobjtype="table alias">b</sourcetoken></aliasclause></simpletable></lztable></join></joinlist></fromclause>
<whereclause><expression exprtype="Expr_Comparison" exproop="="><attr>
<sourcetoken toketype="" dbobjtype="table alias">a</sourcetoken>
<sourcetoken toketype="" dbobjtype="unknown">.</sourcetoken>
<sourcetoken toketype="" dbobjtype="field">deptno</sourcetoken>
</attr><attr>
<sourcetoken toketype="" dbobjtype="table alias">b</sourcetoken>
<sourcetoken toketype="" dbobjtype="unknown">.</sourcetoken>
<sourcetoken toketype="" dbobjtype="field">deptno</sourcetoken>
</attr></expression>
</whereclause></subselectstmt></fullselectstmt>
</sqlscript>
So, using the output file, the list of columns (under token "field") last_name,job_id and salary should be inserted into LIST_COLUMNS table. So 3 INSERT statements should be created for 3 columns.
The list of tables (under token "table") employees and dept should be inserted into LIST_TABLES table. So 2 INSERT statements should be created for the 2 tables.
Regards,
Sam
Similar Messages
-
How to convert table content into html format?
Hi,
Experts,
How to convert internal data into HTML format is there any function module or piece of code to download content into HTML.
Thank u,
Shabeer Ahmed.Then use this code....
REPORT ytest_table_html1.
* D A T A D E C L A R A T I O N
*-HTML Table
DATA:
t_html TYPE STANDARD TABLE OF w3html WITH HEADER LINE,
" Html Table
*- Declare Internal table and Fieldcatalog
it_flight TYPE STANDARD TABLE OF sflight WITH HEADER LINE,
" Flights Details
it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
" Fieldcatalog
*-Variables
DATA:
v_lines TYPE i,
v_field(40).
*-Fieldsymbols
FIELD-SYMBOLS: <fs> TYPE ANY.
* S T A R T - O F - S E L E C T I O N
START-OF-SELECTION.
SELECT *
FROM sflight
INTO TABLE it_flight
UP TO 20 ROWS.
* E N D - O F - S E L E C T I O N
END-OF-SELECTION.
*-Fill the Column headings and Properties
* Field catalog is used to populate the Headings and Values of
* The table cells dynamically
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
ct_fieldcat = it_fcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2.
DELETE it_fcat WHERE fieldname = 'MANDT'.
t_html-line = '<html>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '<thead>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '<tr>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '<td><h1>Flights Details</h1></td>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '</tr>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '</thead>'.
APPEND t_html.
CLEAR t_html.
t_html-line = '<table border = "1">'.
APPEND t_html.
CLEAR t_html.
t_html-line = '<tr>'.
APPEND t_html.
CLEAR t_html.
*-Populate HTML columns from Filedcatalog
LOOP AT it_fcat.
CONCATENATE '<th bgcolor = "green" fgcolor = "black">'
it_fcat-scrtext_l
'</th>' INTO t_html-line.
APPEND t_html.
CLEAR t_html.
ENDLOOP.
t_html-line = '</tr>'.
APPEND t_html.
CLEAR t_html.
DESCRIBE TABLE it_fcat LINES v_lines.
*-Populate HTML table from Internal table data
LOOP AT it_flight.
t_html-line = '<tr>'.
APPEND t_html.
CLEAR t_html.
*-Populate entire row of HTML table Dynamically
*-With the Help of Fieldcatalog.
DO v_lines TIMES.
READ TABLE it_fcat INDEX sy-index.
CONCATENATE 'IT_FLIGHT-' it_fcat-fieldname INTO v_field.
ASSIGN (v_field) TO <fs>.
t_html-line = '<td>'.
APPEND t_html.
CLEAR t_html.
t_html-line = <fs>.
APPEND t_html.
CLEAR t_html.
t_html-line = '</td>'.
APPEND t_html.
CLEAR t_html.
CLEAR v_field.
UNASSIGN <fs>.
ENDDO.
t_html-line = '</tr>'.
APPEND t_html.
CLEAR t_html.
ENDLOOP.
t_html-line = '</table>'.
APPEND t_html.
CLEAR t_html.
*-Download the HTML into frontend
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\Flights.htm'
TABLES
data_tab = t_html
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-Display the HTML file
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = 'C:\Flights.htm'
operation = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
none of the above function modules r obsolete... -
How to convert XML data into binary data (opaque data)
Hi,
I am trying to develop a process that delivers files after reading data from a database.
However, it is required not to deliver the data immediately. We want to perform some checks before the files get written.
So the way we want to design this is,
1. Read data from database (or any other input). The data is in XML format (this is a requirement, as in general, we have xml data)
2. This data is written, opaquely, to a JMS queue that can store binary data, along with what is the filename of the file that would be written (filename is passed using JMS Headers)
3. When required, another process reads the JMS queue's binary data, and dumps into a file
The reason I want to use opaque data while inserting in the JMS queue is, that enables me to develop a single process in Step 3 that can write any file, irrespective of the format.
My questions are
1. How to convert the xml data to opaque data. In BPEL I may use a embedded java, but how about ESB. Any other way....?
2. how to pass filename to the jms queue, when payload is opaque. Can I use a header attribute...custom attributes?
3. Which jms message type is better for this kind of requirement - SYS.AQ$_JMS_BYTES_MESSAGE or SYS.AQ$_JMS_STREAM_MESSAGEAna,
We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
Let me know if this helps. -
How to convert xml file into internal table in ABAP Mapping.
Hi All,
I am trying with ABAP mapping. I have one scenario in which I'm using below xml file as a sender from my FTP server.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MTO_ABAP_MAPPING xmlns:ns0="http://Capgemini/Mumbai/sarsingh">
<BookingCode>2KY34R</BookingCode>
- <Passenger>
<Name>SARVESH</Name>
<Address>THANE</Address>
</Passenger>
- <Passenger>
<Name>RAJESH</Name>
<Address>POWAI</Address>
</Passenger>
- <Passenger>
<Name>CARRON</Name>
<Address>JUHU</Address>
</Passenger>
- <Flight>
<Date>03/03/07</Date>
<AirlineID>UA</AirlineID>
<FlightNumber>125</FlightNumber>
<From>LAS</From>
<To>SFO</To>
</Flight>
</ns0:MTO_ABAP_MAPPING>
AT the receiver side I wnat to concatenate the NAME & ADDRESS.
I tried Robert Eijpe's weblog (/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach)
but couldnt succeed to convert the xml file into internal table perfectly.
Can anybody help on this.
Thanks in advance!!
SarveshHi Sarvesh,
The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
Just in case you have not seen this
regards
Vijaya -
XML: How to convert xml string into Node/Document
I have a string in xml form.
<name>
<first/>
<second/>
</name>
I want to convert this string into DOM Node or Document.
How can I do this?
Any help or pointer?
TIA
SachinTry this :
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps. -
How to convert xml data into html format in bpel
Hi ,
Can any one tel me how to conevrt xml into html in oracle bpel.
Does bpel support this functionality or not.
Regards,
Ana
Edited by: user10181991 on Apr 5, 2009 11:16 PMAna,
We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
Let me know if this helps. -
How to convert XML-Information into RSAPrivateKey
Hi,
how can I convert PrivateKey-data issued as XML-document into a valid RSAPrivateKey that can be used for signature and encryption? For X509Certificates and PublicKey-data this seems to be no problem, but I could not find any function that does it for PrivateKey-data.
Please see http://www.w3.org/TR/xkms2/#XKMS_2_0_Section_C_3 for an example XML-PrivateKey.
After converting it into a valid RSAPrivateKey System.out.println(privateKey); should output something like this:
Sun RSA private CRT key, 1024 bits
modulus: 1149848018...
public exponent: 65537
private exponent: 3967455520...
prime p: 1210859164...
prime q: 9496133427...
prime exponent p: 4043649185...
prime exponent q: 6250868914...
crt coefficient: 2246802223but with:
BigInteger mod = new BigInteger(Base64.decode(modulus));
BigInteger exp = new BigInteger(Base64.decode(exponent));
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
RSAPrivateKeySpec keySpec = new RSAPrivateKeySpec(mod, exp);
RSAPrivateKey privateKey = (RSAPrivateKey) keyFactory.generatePrivate(keySpec);I only got the following:
Sun RSA private CRT key, 1024 bits
modulus: 1149848018...
private exponent: 3967455520...Please help!at no charge for you:
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.RSAPrivateCrtKeySpec;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
public class DotNetXMLPrivateKeyReader {
private Document privateKeyDocument;
private InputStream xmlInputStream;
public DotNetXMLPrivateKeyReader(InputStream xmlInputStream) throws SAXException, IOException{
this.xmlInputStream = xmlInputStream;
parseDocument();
public DotNetXMLPrivateKeyReader(byte xmlBytes[]) throws SAXException, IOException{
this(new ByteArrayInputStream(xmlBytes));
public DotNetXMLPrivateKeyReader(String xmlString) throws SAXException, IOException{
this(xmlString.getBytes());
public PrivateKey getPrivateKey() throws IOException, InvalidKeySpecException {
KeyFactory keyFactory;
try {
keyFactory = KeyFactory.getInstance("RSA");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("Error loading RSA KeyFactory", e);
RSAPrivateCrtKeySpec keySpec = loadKeySpec();
return keyFactory.generatePrivate(keySpec);
private void parseDocument() throws SAXException, IOException {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder;
try {
builder = dbf.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException("Error creating DocumentBuilder from DocumentBuilderFactory", e);
privateKeyDocument = builder.parse(xmlInputStream);
private RSAPrivateCrtKeySpec loadKeySpec() throws IOException {
String modulusStr = getNodeContent("Modulus");
String publicExpStr = getNodeContent("Exponent");
String primePStr = getNodeContent("P");
String primeQStr = getNodeContent("Q");
String primeEPStr = getNodeContent("DP");
String primeEqStr = getNodeContent("DQ");
String crtCoefficientStr = getNodeContent("InverseQ");
String privateExpStr = getNodeContent("D");
RSAPrivateCrtKeySpec keySpec = new RSAPrivateCrtKeySpec(
decodeBigDecimal(modulusStr), decodeBigDecimal(publicExpStr),
decodeBigDecimal(privateExpStr), decodeBigDecimal(primePStr),
decodeBigDecimal(primeQStr), decodeBigDecimal(primeEPStr),
decodeBigDecimal(primeEqStr), decodeBigDecimal(crtCoefficientStr));
return keySpec;
private String getNodeContent(String nodeName) {
NodeList elementsByTagName = privateKeyDocument.getElementsByTagName(nodeName);
Node node = elementsByTagName.item(0);
String modulusStr = node.getTextContent();
return modulusStr;
private byte[] b64Decode(String data) throws IOException {
return Base64Util.decode(data);
private BigInteger decodeBigDecimal(String str) throws IOException {
byte decodedMod[] = b64Decode(str);
byte positiveMod[] = new byte[decodedMod.length + 1];
System.arraycopy(decodedMod, 0, positiveMod, 1, decodedMod.length);
return new BigInteger(positiveMod);
Marcus Vin�cius Travassos Haickel de Oliveira
Software Architect
Live Source IT Solutions -
How to convert Xml Document into orcale tempary table
i am creating xml document into java and passing this xml into oracle database and i need to fetch this xml into result set | rowset.
Xml Structure
<Department deptno="100">
<DeptName>Sports</DeptName>
<EmployeeList>
<Employee empno="200"><Ename>John</Ename><Salary>33333</Salary>
</Employee>
<Employee empno="300"><Ename>Jack</Ename><Salary>333444</Salary>
</Employee>
</EmployeeList>
</Department>
i need like this format
Deptno DeptName empno Ename Salary
100 Sports 200 Jhon 2500
100 Sports 300 Jack 3000It does depend on your version as odie suggests.
Here's a way that will work in 10g...
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<Department deptno="100">
2 <DeptName>Sports</DeptName>
3 <EmployeeList>
4 <Employee empno="200"><Ename>John</Ename><Salary>33333</Salary>
5 </Employee>
6 <Employee empno="300"><Ename>Jack</Ename><Salary>333444</Salary>
7 </Employee>
8 </EmployeeList>
9 </Department>
10 ') as xml from dual)
11 --
12 -- End of test data, Use query below
13 --
14 select x.deptno, x.deptname
15 ,y.empno, y.ename, y.salary
16 from t
17 ,xmltable('/'
18 passing t.xml
19 columns deptno number path '/Department/@deptno'
20 ,deptname varchar2(10) path '/Department/DeptName'
21 ,emps xmltype path '/Department/EmployeeList'
22 ) x
23 ,xmltable('/EmployeeList/Employee'
24 passing x.emps
25 columns empno number path '/Employee/@empno'
26 ,ename varchar2(10) path '/Employee/Ename'
27 ,salary number path '/Employee/Salary'
28* ) y
SQL> /
DEPTNO DEPTNAME EMPNO ENAME SALARY
100 Sports 200 John 33333
100 Sports 300 Jack 333444
SQL>If the XML is a string e.g. a CLOB then it can easily be converted to XMLTYPE using the XMLTYPE function. -
How to convert XML file into DTD or XSD
Hi Folks,
This is the output structure I need to get. My interface is file to file. Can u please let me know How do I create a data type or any XSD to get below Structure.
<?xml version="1.0" encoding="UTF-8" ?>
- <Command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Command.xsd">
- <WriteTagData readerID="EasyDP">
- <Item>
- <FieldList format="C:\Documents and Settings\wlee\Desktop\Format_4A.btw" jobName="Test1" quantity="1">
<Field name="PlantNo">4012</Field>
<Field name="PlantName">ANE</Field>
<Field name="SKU">12000001</Field>
< </FieldList>
</Item>
</WriteTagData>
</Command>
Please help me How would I create Data type for this. Your help is highly apreciated
Thanks,
EnivassHi Enivas,
>>>>>>>>>Please help me how would I delete ns0.
For remove ns0, you have to do use XMLAnonymizerBean module in adpater module (In Communication channel).
Insert the XMLAnonymizerBean before the CallSapAdapter .
The module name u2018CallSapAdapteru2019 is default one that can be left as it is.
Module Name : AF_Modules/XMLAnonymizerBean
Type: Local Enterprise Bean
Module Key: 0
Add Parameters in the Module Configuration
2. Module Key: 0
Parameter Name: anonymizer.acceptNamespaces
Parameter Value: <namespace> u2018u2019
Enter a list of namespaces and their prefixes that are to be kept in the target XML document and to result a namespace without a prefix, enter u2018 u2018 (two single quotation marks). In your case like namespace http://www.w3.org/2001/XMLSchema-instance follow with two single quotation marks.
3. Module Key: 0
Parameter Name: anonymizer.quote
Parameter Value: u2018
Here specify the character to be used to enclose the attribute values. The default value is u2018.
When scenario is executed, the target message contains the namespace with no prefix.
Then, you are not facing any issue in target messages.
Regards,
Rajesh -
How to convert XML into word doc or pdf
hi all ,
i ve to create a xml with specified alignment,but while taking print out alignments changing according to IE's alignment.
So, Plz some one tel me whether any solution is there in xml itself or it have to be convert into word doc or PDF.If so, tell me an idea for how to convert xml file into Word doc or PDF.thanx ,i saw about FOP in xml.apache.org site and i learned something abt tat . But i dont know how to download FOP package from apache..
Actually they gave links to download
like http://ftp.wayne.edu/apache/xml/fop
inside tat link they mentioned as parent,Directory,binaries,sources and tar files.From this i dont know how to download?
Plz can someone tell a solution.. -
How to convert XML into XSD Using Altova XML Spy
Hi,
How to convert XML file into XSD Using Altova XML Spy.
I want to use that XSD as an External Def in my IR
Regards
Sumanhi
Following is the path where you could get the PDF's and zip file.
https://www.sdn.sap.com/irj/sdn/howtoguides?rid=/webcontent/uuid/5024a59a-4276-2910-7580-f52eb789194b [original link is broken]
please check out the following Heading, and at the bottom corner you will find the download option where you will get the zip file:
How to Generate XSD Schemas from Existing MDM 5.5 Repositories
You can download xomlite45.jar from sdn
copy the jar file to your java installation location like c:>java in
Java jar xomLite45.jar MyFile.xml
then you get correspondig MyFile.xsd
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb -
Inserting XML content into Database
Hallo
i´m new to Oracle.
i want to insert xml content into the database. for testing i installed the version 10g on a windowsxp computer.
i read the oracle xmldb developer´s guide. on page 3-4 ff. it is explained how i can insert content into the database. that´s how i did it (with isqlplus):
create table example1(key_column varchar2(10) primary key, xml_column xmltype)
-->works fine
create table example2 of xmltype
-->works fine
now i made a directory under c:\myXmlFilesForDb in WinXp
create directory xmldir as 'c:/myXmlFilesForDb in WinXp'
(also tried: create directory xmldir as 'c:\myXmlFilesForDb in WinXp')
--> in this directory is a file named: mydokument.xml
--> works fine
insert into example2 values(xmltype(bfilename('xmldir','mydokument.xml'), nls_charset_id('AL32UTF8')))
the following error message is displayed (in German):
ORA-22285: Verzeichnis oder Datei für FILEOPEN-Vorgang nicht vorhanden
ORA-06512: in "SYS.DBMS_LOB",Zeile 523
ORA-06512: in "SYS:XMLTYPE",Zeile 287
ORA-06512: in Zeile 1
whats wrong? can anybody help me please?
ohhh....
thank you very much
cu
GeorgeDirectory entries are case sensitive.
Select * From dba_directories to ensure you case is the same as you are using in your insert statement.
Are you using the same user? if not grant read on directory directoryname to username;
try to just select.
select dbms_lob.getLength(BFileName('directoryname','filename.xml'))
as length
from dual; -
How to convert HL7 file into an XML
Hi All,
I am new to HL7,can any one tell how to convert HL7 file into an XML.Give sample demo or related links.
My sample HL7 file is as follows how can I convert.
FHS|^~\&||Tax ID123^Lab Name123^L|||201110191435||HL7.txt||1234567|123||
PID|seqno|123||john^chambers^^Dr^Dr|2456 california ave^San jose^CA^85254|19601212|M
FHS|^~\&||Tax ID123^Lab Name123^L|||File Creaqted Date|File Security|FileName||File HeaderComment||Facility|FileCreatedDateTime|File Security|File Name|File Header Comment|FileControlId|Reference File Control ID|
PID|seqno|patientId||LastName^FirstName^MiddleName^Title^Degree|Street^City^State^zip|patientDOB|gender
<Report>
<FileHeader>
<FileSendingApplication> </FileSendingApplication>
<TaxID>Tax ID123</TaxID>
<LabName>Lab Name123</LabName>
<FileSendngFacilityType>L</FileSendngFacilityType>
<FileReceivingApplication></FileReceivingApplication>
<FileReceivingFacility></FileReceivingFacility>
<FileCreatedDateTime>201110191435</FileCreatedDateTime>
<FileSecurity></FileSecurity>
<FileName>HL7.txt</FileName>
<FileHeaderComment></FileHeaderComment>
<FileControlId>1234567</FileControlId>
<ReferenceFileControlID></ReferenceFileControlID>
<FileHeader>
<Patient>
<seqno> </seqno>
<patientId>Tax ID123</patientId>
<LastName>Lab Name123</LastName>
<FirstName>L</FirstName>
<MiddleName></MiddleName>
<Title> </Title>
<Degree></Degree>
<Street></Street>
<City></City>
<State>HL7.txt</State>
<Zip></Zip>
<patientDOB>1234567</patientDOB>
<gender></gender>
<Patient>
</Report>
Thanks
ManiHi Prabu,
With input as in single line I'm able to get the the output but with the multiple lines of input,error was occured.Any suggestions.
Error while translating. Translation exception. Error occured while translating content from file C:\temp\sampleHL7.txt Please make sure that the file content conforms to the schema. Make necessary changes to the file content or the schema.
The payload details for this rejected message can be retrieved. Show payload...
Thanks
Mani -
How to convert database table into xml file
Hi.
How to convert database table into XML file in Oracle HTML DB.
Please let me know.
Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help
Exporting Oracle table to XML
If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
Hope this helps
Chris -
How to convert Java Objects into xml?
Hello Java Gurus
how to convert Java Objects into xml? i heard xstream can be use for that but i am looking something which is good in performance.
really need your help guys.
thanks in advance.There are apparently a variety of Java/XML bindings. Try Google.
And don't be so demanding.
Maybe you are looking for
-
Dear Nokia Cutomers Support, Here I should thank you alot for the very strong step as updating mobiles through the internet( a dream come true), which almost imtating the updation manner to i-mate mobiles and over that it prevents the mistakes that m
-
Hey Forum, I hope you can help with me this problem I have been having with my brand new iMac 27" desktop. Its only two days old and sometimes when I am using it the curser goes crazy and starts jumping all over the screen uncontrollably and clicking
-
I want to check the runtime of process chain, but I dont know what to enter the job name in sm37? From where can I get the job name?
-
User is currently using Transaction SPAM to import an OCS-Queue
Hi I am trying to update ST-PI support pack 1. When I try to import the support I am getting a error messgae "User SAPADMIN is currently using Transaction SPAM to import an OCS-Queue. Please help me to resolve the issue. Thanks & Regards
-
I am currently trying to accomplish the following: get the Last Weekstamp for the last 6 Months, the following ilustrates how the end result might look like: Month | Weekstamp | 2013-12| 2013-52 | 2014-01| 2014-05 | .... and so on I have a