|
|
Re: Insert Data into XMLTYPE [message #390498 is a reply to message #389003] |
Fri, 06 March 2009 11:06 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
pkumar_2008
Messages: 19 Registered: November 2008 Location: usa
|
Junior Member |
![pvura](/forum/theme/orafaq/images/yahoo.png)
|
|
Thanks Mike...
Can you tell me how to add the namespaces and schema location to the existing code and I am here with pasting the expecting output..
/Trn/@xmlns
XML Namespace - refer to http://www.w3.org/TR/REC-xml-names/
DEFAULT TO 'com.clear2pay.bph'
/Trn/@xmlns:xsi
XML Namespace Schema Instance
DEFAULT TO 'http://www.w3.org/2001/XMLSchema-instance'
/Trn/@xsi:schemaLocation
XML Schema Location
DEFAULT TO 'com.clear2pay.bph BPH-Transaction.xsd'
output
<?xml version="1.0" encoding="UTF-8"?>
<Trn xmlns="com.clear2pay.bph" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="com.clear2pay.bph BPH-Transaction.xsd">
<TrnTp>C</TrnTp>
<PmtId>
<EndToEndId>8403150</EndToEndId>
</PmtId>
<InstdAmt Ccy="USD">201.00</InstdAmt>
<AcctOwner>
<Nm>Belgium Checking</Nm>
<PstlAdr>
<AdrLine>111 Buckingham Palace</AdrLine>
<PstCd>30043</PstCd>
<TwnNm>Huntersville</TwnNm>
<Ctry>BE</Ctry>
</PstlAdr>
<Id>
<Id>132434332</Id>
</Id>
</AcctOwner>
|
|
|