How to add xml data to an xml scheme
Hi all,
I am having a problem trying to add content to an XML schema file - I have a schema (xsd file) and i want to use it in order to create and validate new/other xml's.
The issue is that i want to place some data in the original XML schema file that will be inserted into the new xml's i create based on the schema.
I am using java APIs to create the new xml's based on the original schema. I tried at first using default values in order to create the initial data, but I have a problem doing this for complex types.
Has anyone encountered a similar problem?
Thanks
shahar
Hello Ashley,
you are already close to the solution. In BADI QISR1 you simply fill the
table SPECIAL_DATA e.g.like
fieldindex = 1
fieldname = 'FIELD1'
fieldvalue = 'Value1'
fieldindex = <n>
fieldname = 'FIELD1'
fieldvalue = 'VALUE<n>'
Then on the Adobe form layout (Adobe Designer), you have to use the table control XFO from the standard library. Here you have to bind then the corresponding column to FIELD1.
Best regards,
Simon
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 change the date format in xml form?
hi,
How to change the date format in xml form?
For example: 11/20/2008 3:00:03 PM -> 11-20 03:00
Any opinions greatly appreciated!
Thanks.
Edited by: ke wenxing on Dec 2, 2008 8:33 AMYou could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
Click the defaults button and change the date format.This changes date format for all the dates in your login. -
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
Xml data into non-xml database.. solution anyone?
Hi,
My current project requires me to store the client's data on our servers. We're using Oracle9i. Daily, I will download the client's data for that day and load it into our database. My problem is that the data file is not a flat file so I can't use sql*loader to load the data. Instead, the data file is an xml file. What is the best way to load xml data into a non-xml database? Are there any tools similar to sql*Loader that will load xml data into non-xml database? Is it the best solution for the client to give me an XML dump of their data to load into our database, or should I request a flat file? My last resort would be to write some sort of a script to parse the xml data into a flat file, and then run it through sql*loader. Is this the best solution? One thing to note is that these files could be very large.
Thanks in advance.
-PVI assume that just putting the XML file into an
extremely large VARCHAR field is not what you want.
Instead, you want to extract data elements from the
XML and write them to columns in a table in your
database. Right?Yes. Your assumption is correct.
It sounds like you already have a script that loads a
flat file into your database. In that case I would
write an XSL transformation that converts the client's
XML into a correctly-formatted flat file.Thank you. I'll look into that. Other suggestions are welcome. -
How to add one date column and charecter column
hi all,
i have 3 column start_date(date),end_date( date),duration (varchar2)
i am trying to add start_time and duration like this
end_date := to_char(start_time) + duration;
but its showing value_error
how to add one date column and charecter column.
Thanksyou need something that does:
end_date (DATE) := start_date (DATE) + <number of
days> (NUMBER)Not necessarily, because if the duration is just a string representation of a number then it will be implicitly converted to a number and not cause an error
e.g.
SQL> ed
Wrote file afiedt.buf
1 with t as (select to_date('01/07/2007','DD/MM/YYYY') as start_dt, '3' as duration_days from dual)
2 -- END OF TEST DATA
3 select start_dt + duration_days
4* from t
SQL> /
START_DT+
04-JUL-07 -
How to add TIMESTAMP data type in Enterprise Architect...?
Hi all
There is no data type of timestamp in Enterprise Architech. There is only
DATE type. I have ERD prepared from Enterprise Architech. How to modify
DATE type to TIMESTAMP type.
How to add TIMESTAMP data type in Enterprise Architect or in ERD ?
Thanks in advance,
PalHave you asked this question of the vendor of Enterprise Architect? They may have a later version that supports the various TIMESTAMP data types. If your ERD tool doesn't support a data type, other than talking to the vendor or working around the problem (i.e. generate DDL to a text file and edit it before applying it to the database), you're probably out of luck.
Justin -
Hi Friends,
We have 4 below file systems.
Sybase/TST/sapdata_1
Sybase/TST/sapdata_2
Sybase/TST/sapdata_3
Sybase/TST/sapdata_4
Already we have added one data file each in sapdata_1 and 2. Sapdata3 and 4 are emptry.
How to add new data file in sapdata3 or 4.
Please provide syntax for creating a new data file and steps for the same.
Regards,
Karthik.Just for the record: you have here the DBACockpit documentation:
https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000571562012E
And this is a sample of the extend to be executed:
Regards,
Victoria. -
How to add the Date Track Button
How to add the Date Track Button on a customized Form ?
1. Profile of Datetrack:Enabled = Yes
2. All HR Forms includes the Date Trak Button
3. On the Customized Form "Alter Date Track" can be activated from Menu :Tool --> Alter Date Track.
I'd Like the Button to appear on button ruller.
Thanks for helpRachel,
Please review the following notes, it may be helpful.
Note: 177733.1 - How Date Track Works
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=177733.1
Note: 169059.1 - Understanding the Flow of Date Track Dates Through the Forms
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=169059.1 -
Does anyone know how to Add a date drop down list to a pdf file?
Can someone tell me how to add a Date drop down list in a form
There's no built-in function that does that in Acrobat, but there are some third-party tools that do.
The two most known ones are by FormRouter, which is free and based on form fields (but also a bit buggy), and a non-free version created by Max Wyss, which is based on a dialog object. -
How to add a data-source.xml to the project to config DB connections and to be SCM'ed
I'd like to explicitly manage a data-sources.xml for my JSP + BC4J project.
Any helps on getting the released Jdev to add a data-source.xml that would then
be what the .ear deploys to OC4J?
Thanks, curtI have a JSP + BC4J project:
So far my naive experiments to explicitely add data-sources.xml to a
project that is picked up by the deploy to .ear step and put in the
root of the .ear have failed.
Is this one of those gaps like the orion-application.xml file, that has no
solution at present?
Or is the back-door via adding an EJB component to my project, then deleting it??
Thanks, curt -
How to add a digital signature in xml publisher report
The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
Please provide the steps with example.Hi,
Have a look at this thread.
Implementing electronic signatures on an existing AP check run
Re: Implementing electronic signatures on an existing AP check run
Regards,
Hussein -
How to Add Input Values into a XML in Flex AIR Application
I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
Should be stored in that xml. How can I do this using flex, can you anyone please provide me a sample file with tutorial.
Thanks in advance
Vasanth,
ChennaiYou can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
function fillin(s1, s2, s3, sep) {
// Concatenate 3 strings with separators where needed
// convert passed strings to a string value
s1 = s1.toString();
s2 = s2.toString();
s3 = s3.toString();
// assign a numeric value for presence of a given string(s)
var test = 0; // no passed strings
if (s1 != "") test += 1; // s1 has a value
if (s2 != "") test += 2; // s2 has a value
if (s3 != "") test += 4; // s3 has a value
// return appropriate combination based on passed strings
if (test == 0) return ""; // no stings passed
if (test == 1) return s1; // s1 only
if (test == 2) return s2; // s2 only
if (test == 3) return s1 + sep + s2; // s1 and s2
if (test == 4) return s3; // s3 only
if (test == 5) return s1 + sep + s3; // s1 and s3
if (test == 6) return s2 + sep + s3; // s2 and s3
if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3 -
How to add a textline to an xml structure using xslt
Hi,
I am having a requirement where i need to add a textline to an xml.
scenario: IDOC-File and output format is an xml.
Output should be like this:
&&##AOC0MB000#AD15543390#BOIFCO#Z
<?xml version="1.0" encoding="ISO-8859-1"?>
<messages>
<batch>0800062844</batch>
<message>
<type>VPR</type>
<action>A</action>
</body>
</message>
</messages>
The line that has been added to xml is the data that will be coming from IDOC. How can we append the textline to the xml using xslt.Will document() in xslt works for doing this?The required format in ur scenario is not an xml format, so u should not save the file in xml format. U may write an adapter module at receiver to achieve this.
How can we append the textline to the xml using xslt
This is not possible as the output of xsl transformation is an xml file.
Regards,
Prateek -
How to add tags to the existing XML file?
Hi,
I have a requirement wherein I have to add a tag to the existing xml data.
For Eg:
<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>
The desired output is,
<DI_DATA>
<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>
</DI_DATA>
I have to add <DI_DATA> </DI_DATA>at the start and end of the input.
Could any of you help me on this?
Thanks,
GVIf your XML is just in a CLOB, you can just use string manipulation to prepend/append the nodes on. If you have it in an XMLType you could just do the following
select appendchildxml(XMLTYPE('<DI_DATA/>'),
'DI_DATA',
XMLTYPE('<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>')) -- this would be your variable
from dual;which will put your data within the DI_DATA node. -
How to add extra blank space in xml
I open the xml file in notepad I get this
<XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所 </XXON_EXT_BANK_ACCOUNT_NAME>
But when I open the xml file in html format the blank space is gone.
How can I add extra blank space in xml?Hi
Why do you need the extra space for?
This difference in display that you see between your browser and notepad/notepad++
will not affect your generated report.
Bogdan
Maybe you are looking for
-
Adobe reader 9 unable to print - please help
The printer works properly, but everytime time I try to print something off of Adobe Reader 9 while in PDF form it won't let me print. The error it gives me is Unable to print(window pops up, I hit okay or X it out) then another pops up saying, There
-
Hi, I have to send a flat file as attachment through the mail adapter in combination with the mail package because I have to communicate with several partners and I want to determine dynamically the "To:" depending on a field in the source structure
-
ITunes refuses to transfer apps from iPhone 4
iTunes refuses to transfer my apps from my iPhone 4 to the comp. It transfered the songs no problem but whenever i try to transfer the apps it goes though this "speed" transfer process. It takes like 30 sec or less to "transfer" all my apps into my i
-
When you make a Apple ID how can you choose none for credit card type
When you make a Apple ID how can you choose none for credit card type
-
Need help with the keyboard.
Hi i'm just changing from pc to mac (this is awsome...) i have a macbook pro 17 inches, with english keyboard, i need to use this characters ñ,á,é,í,ó,ú,ü Back in windows i just configure my keyboard layout to US-International and problem solved, her