How to export special characters into an XML file?
Dear experts,
We read files from our customers and save data into our customized table without any character changed, including some address fields. In those address fields, some special characters (not in our code page) are also kept. When we want to write these address fields into an XML file or flat file, the special charcters become "##" or not readable, can anyone help us to solve this issue?
Question1: How to write special code to an external file?
Question2: how to use 'CALL TRANSFORMATION' from an internal table to an XML file?
Your answer is highly appreciated!
Joanne
Hi Joanne.
Please check the below link.
CALL TRANSFORMATION
Before that u have to create one transformation program in STRANS tcode for using it in call transformation statement.
Hope it will be useful.
Regards,
Lakshman
Similar Messages
-
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
How to write input data into an xml file
Hi All,
I have some input data and i have to write it
into an xml file.How is it possible send me some related
links regarding this and source code if any.Hi
Try to go through these links.I hope this will help you to solve your problem.
http://www.xml.com/pub/a/2003/07/09/udell.html
Thanks
Mrutyunjaya Tripathy -
How to insert & # special characters into oracle table?
I have a text value which contains special characters such as & and #.
After I pass from one page to another,
TEST& becomes "TEST&"
I put " " on the above test, otherwise amp; will be truncated by OTN).
TEST# becomes TEST (# is truncated).
Actually the value is saved in table like this: "TEST&"
How to solve this problem?
How to insert & into table without &
Thank you.
Edited by: user628655 on Jul 27, 2009 9:47 AM
Edited by: user628655 on Jul 27, 2009 9:49 AM
Edited by: user628655 on Jul 27, 2009 10:39 AMAvoid doing that through a link. If this is a page item then submit the page and redirect to the target page using a branching. On the target page, create a computation to compute the target item using the original page item as the source. If you are talking about a report, use the id to pass through the link and fetch the text column in an on load computation.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
How to add special characters into numbers?
Hi, I wonder how can I add special characters like the one in the "Edit" menu for the Mac versions? Thanks.
It all depends what exactly you are talking about, so if you tell us, someone can help you. Some can be made from the keyboard, others you would need to copy/paste from an app like Unicode Map.
-
Special Characters while loading xml file in rtf template
Hello,
We use Oracle BI Publisher Enterprise to develop and publish reports. I am self taught and I am used to developing reports the following way
1) Write SQL query
2) View the Data format and copy the xml from the browser
3) put in in textpad and use block mode to get rid of the hyphens
4) save the xml on the desktop
6) Now start a new rtf and go to plugins and load xml data
7) load the xml data and then generate a tabular or cross tab report using the toolbar in plugins
Now in step 6 when I try to load the xml data I am getting an error because some of the data elements have '<' or '>' than signs.
What are my options now and how do I fix the xml to escape or put cdata sections around the special characters? Is there a better way to develop reports using the GUI?
ThanksHello,
We use Oracle BI Publisher Enterprise to develop and publish reports. I am self taught and I am used to developing reports the following way
1) Write SQL query
2) View the Data format and copy the xml from the browser
3) put in in textpad and use block mode to get rid of the hyphens
4) save the xml on the desktop
6) Now start a new rtf and go to plugins and load xml data
7) load the xml data and then generate a tabular or cross tab report using the toolbar in plugins
Now in step 6 when I try to load the xml data I am getting an error because some of the data elements have '<' or '>' than signs.
What are my options now and how do I fix the xml to escape or put cdata sections around the special characters? Is there a better way to develop reports using the GUI?
Thanks -
XSL-FO unable to read special characters from the XML file
Team,
please help on issue, when trying to read the text from XML file (Special characters like bullet). It is displaying as Question mark(?) in output in place of bullet..please proved any soultion.The "?" signals a character set mismatch issue - http://www.oracle.com/technetwork/database/globalization/nls-lang-099431.html - between client and database software
-
How to edit/update data into an XML file using Flex and Actionscript
I can read an external xml file, please see the code below:
protected function button1_clickHandler(event:MouseEvent):void
var GrowthChartsDataGrid:XML;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("../GrowthChartsDataGrid.xml");
loader.load(request);
loader.addEventListener(Event.COMPLETE, onComplete)
function onComplete (event:Event)
var loader:URLLoader = URLLoader(event.target);
GrowthChartsDataGrid = new XML(loader.data);
GrowthChartsDataGrid.GrowthChartGridView += <Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month>
texttesting.text = GrowthChartsDataGrid.toString();
I can read an XML file and can add an extra node and can display it in a text filed. But I want to update the XML file contents which will come from the txtMonth and txtWeight text boxes.
Please any suggestions???First of all thanks for your quick reply .
I actually want to add another node inthe xml file. Files is at a local location and i can read the file and add an extra node (but I cant store this extra node in the actual XML file). But I want to save XML with the extra node.
For exmaple,
my current xml is:
<?xml version="1.0" encoding="utf-8"?>
<GrowthChartGridView>
<Month> 1
<Weight>3.5</Weight></Month>
<Month> 2
<Weight>3.9</Weight></Month>
<Month> 3
<Weight>4.5</Weight></Month>
</GrowthChartGridView>
and at run time, I can create a new node using the data from two textboxes at button click event.
GrowthChartsDataGrid.GrowthChartGridView += <Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month>
Now what I want to do is, I want to add this node back in to my XML. Therefore, the result I am looking for is, my local XML should update like this.
<?xml version="1.0" encoding="utf-8"?>
<GrowthChartGridView>
<Month> 1
<Weight>3.5</Weight></Month>
<Month> 2
<Weight>3.9</Weight></Month>
<Month> 3
<Weight>4.5</Weight></Month>
<Month> {txtMonth.text} <Weight> {txtWeight.text} </Weight> </Month> //I can read data from text boxes so its fine but I can not store this in to my original XML
</GrowthChartGridView>
Thanks -
Ora:contains and special characters into a xml
I have a problem,
I have an xmlType:
<Hello>
a>b
</Hello>
When I put it into the repository it becomes
<Hello>
a & gt; b
</Hello>
When I get it whit webdav it becomes
<Hello>
a>b
</Hello>
the problem is the search whit ora:contains because I don't try to find the resourse containing the text a>b
for example the following query does not work
SELECT extract(res,'/Resource/Contents/*').getClobVal()
FROM resource_view
WHERE existsNode(res,'//Nome[ora:contains(text(), "a>b") > 0]','xmlns:ora="http://xmlns.oracle.com/xdb"')= 1;
Help me!!
Message was edited by:
a.chiarait does not find null.
If I use
SELECT extract(res,'/Resource/Contents/*').getClobVal()
FROM resource_view
WHERE existsNode(res,'//Nome[ora:contains(text(), "a") > 0]','xmlns:ora="http://xmlns.oracle.com/xdb"')= 1;
I found the resource.
If I use
SELECT extract(res,'/Resource/Contents/*').getClobVal()
FROM resource_view
WHERE existsNode(res,'//Nome[ora:contains(text(), "b") > 0]','xmlns:ora="http://xmlns.oracle.com/xdb"')= 1;
I found the resource.
but I don't try to find the resourse containing the text a>b -
How to escape or remove the special characters in the xml element by regula
Hi members,
How to escape or remove the special characters in the xml element by regular expression in java??
For Example ,
<my:name> aaaa </my:name>
<my:age> 27 </my:age>
In the above example , i have to retrieve the value of the <my:name> Element(For examlpe -- i have to get "aaaa" from <my:name> tag)...
How to retreive this value by using DOM with XPATH in java
Thanks in AdvanceHi members,
I forget to paste my coding for the above question....This is my coding......In this display the error...... Pls reply ASAP.......
PROGRAM:
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import javax.xml.parsers.*;
import javax.xml.xpath.*;
public class DOMReaderForXMP {
static Document doc;
static XPath xpath;
static Object result;
static NodeList nodes;
public DOMReaderForXMP() throws ParserConfigurationException, SAXException,
IOException, XPathExpressionException {
DocumentBuilderFactory domFactory = DocumentBuilderFactory
.newInstance();
domFactory.setNamespaceAware(true);
DocumentBuilder builder = domFactory.newDocumentBuilder();
doc = builder.parse("d:\\XMP.xml");
XPathFactory factory = XPathFactory.newInstance();
xpath = factory.newXPath();
public static void perform(String path) throws Exception {
result = xpath.evaluate(path, doc, XPathConstants.NODESET);
nodes = (NodeList) result;
public void check() throws Exception {
perform("//my:name/text()");
if (!nodes.item(0).getNodeValue().equals("application/pdf")) {
System.out.println("Mathces....!");
ERROR:
Exception in thread "main" net.sf.saxon.trans.StaticError: XPath syntax error at char 9 in {/my:name}:
Prefix aas has not been declared -
How to use special characters in Report Builder
Hi everyone,
I wonder if you guys can help me. I'm trying to change our Invoice hearders from English to Portuguese. Eg, I've changed this English heading
("FOR ACCOUNT QUERIES CONTACT") to this Portuguese heading ("PARA CONSULTAS DE CONTA CONTACTE"). So when I'm done, my entire invoice will be in Portuguese. This works fine, until I get special characters in some of the Portuguese translations. I can copy and paste the translations with special characters into Report Builder. But when I print the invoice in Oracle Apps (with a PDF output), the special characters get replaced with a "?".
Here's an example:
< "Line No" should read "Linha nº" but it prints out as "Linha n?" > Does anybother know how I can resolve this? I'm using Report Builder: 10.1.2.3.0 on Oracle Apps: 11.5.10.2 and RDBMS : 10.2.0.4.0
Thank you in advanceHi,
You need to have Portuguese font installed on your machine, if you are running the report from your machine or else if you are running the same from report server then the font has to be there on the server font dir. -
How to export image data into XDP
Hi, All
I'm working on a healthcare project that needs to export the doctor's signature image into XDP file from the database to fill in the Insurance company claim form. My question is how to export image data into a field node in the XDP file, we know the name of the image field which defined in the PDF form, Is it something like:
the signature image data ?
Should the image data in this node be base64 encoded or text encoded or something else?
Can the image be any kind? e.g. BMP, PNG, JPEG, ..., etc?
Thanks
WilliamHi Andre,
Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
which can take blob's. so it would be possible to store the binary data.
If any one has faced this situation can reply.to this ques.
can post the step to load image(jpg/bmp or any image format) data in to info cube??
hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
thanks Andre -
How to print Special Characters in Sap-Scripts
How to print Special Characters in Sap-Scripts
Thanks,
RaviHi
if u want print special characters we can use hot codes i.e ' ' (single inverted commas). in between these hot codes insert u r special characters.
write ' !@#$%^&*( ) '.
for the above write statement output is
output is !@#$%^&*( ) -
How to write special characters in PDF using iText
How to write special characters encoded with UTF-8 in PDF using iText.
Regards,
Pandharinath.I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
So can you describe your problem? That question doesn't make sense. -
How to display special characters in Script...
hi all,
Can any one tell me how to display special characters in script...
how to write in text element
thanks in advance,
prashantHi Prashant ,
What special characters would you like to include .
There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert , here you can find a lot of characters/symbols that can be included .
Regards,
Arun
Maybe you are looking for
-
Repetitive PDF creation issue in PREVIEW (Terminal option to not save?)
i have a real annoying issue in Preview which i generally find to be a model of efficiency. it is for pdf creation and goes like this: i scan 50 images into Preview in order to create a pdf to send to someone. i rotate them and make sure they are pro
-
How does a customer request new Driver support for BOE XI 3.1?
Hello: I would like to know the process to request product enhancements/feature support? We are running BOE XI 3.1 on HPUX-IA64 going to Neoview 2.4. I would like to know how to request support for the HP Neoview JDBC driver. What is the process? Cur
-
How to change the redo log file location.... ?
I want all my redo log files to be created in \u10 instead of current /u01? How to do it? NOARCHIVELOG mode database on Oracle 10g R2. Thank you, Smirh
-
3 weeks and still no help. sorry to vent but very dissappointed with ITUNE
I have tried everything. from reinstalling and about 8 emails to service and it seems everytime I get somebody else answering me back with the wrong info as if I had told them a different story of my issue. I know some of you have tried to help me to
-
How to make a slice from a selection?
Hi everyone, So many times I had a square selection and wanted to make a slice from it. Is it possible?