How to store the XML data? file or database?
i'm frustrate at it.
If store XML data into files, then when i query any data,how can i search data using relationship as SQL?
But if store XML data into database.How can i transform the xml data to the data table?
Can any one give me an clear example.
XML is perfect for data interchange and readability. However, to make it searchable you should resolve it properly into tables, in accordance of your own choice of model.
1. Investigate the XML files and resolve the model
<Person sex="male">John
<Pet animal="dog">Doggy</Pet>
<Pet animal="cat">Catty</Pet>
</Person>
2. Create the tables in your database, let one or several tables keep the raw xml for retrieval of original xml data.
--- XMLDocument ---
id XML_data
--- Person ---
id XML_Document_id sex name
(foreign key)
--- Pet ---
id Person_id animal name
(foreign key)
3. Resolve data from the xml files and insert it into the database. Do this through your ContentHandler, or from your DOM model.
--- XMLDocument ---
id XML_data
0 <Person>...</Person>
--- Person ---
id XML_Document_id sex name
0 0 male John
--- Pet ---
id Person_id animal name
0 0 dog Doggy
1 0 cat Catty
Gil
Similar Messages
-
Want attach the XML data file with layout template in Oracle 10g
Hi All,
I need a help from you genius guys.
I am genrating reports in BI with xml the procedure which I am following is as below.
1. generating XML from the RDF
2. creating a template in .rtf format
3.after that loading the xml to the template then getting the required report.
This all is doing through the given buttons
But now my requirement is to create the gui from user can select the report and get the desire output file so how we would be able to attach the XML data file with layout template in Oracle 10g.
If you require more detail please let me knnow.
Thanks,
HarryI am not using Oracle apps.
I am using oracle 10g reports and I get something in it like one patch I downloded and one java code is having which creates the batch file ...still I am working on it ..
If you will get some please share so that it will be helpful.
Thanks,
Harry -
How to create a Macro in excel to store the excel data to Oracle Database
Hi All
Does anyone has created a macro in excel which on being run stores the excel data to Oracle database. In my project I need to create one such macro for updating oracle database with excel data and another for inserting excel records.
I tried doing this using a macro in MS access but Client wants its to be done using Excel Macro only.
Any help would be highly appreciated.
Thanks in advance..
ShikhaPlease read Chapter 19.7 Creating Selection Lists (http://download.oracle.com/docs/html/B25947_01/web_complex007.htm#CEGFJFED) of the Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0)
Cheers,
Mick. -
How to Edit a XML data file from AS3 class...
Hi...
I need to edit an XML data file I have at the exit of application.... I have a demo code which is not working....
This is the code :
public function UpdateData():void
trace("Closing....");
var FileData:XML=<Hello>Hai</Hello>
var urlLdr:URLLoader = new URLLoader();
var urlRqst:URLRequest = new URLRequest ("AppData.xml");
urlRqst.data=FileData;
urlRqst.contentType = "text/xml";
urlRqst.method = URLRequestMethod.POST;
urlLdr.load(urlRqst);
This AppData file already exist and has some data in it.
Plus :
How to find the application is exiting.use: fscommand('Quit');
to exit your app.
and this is how you would use the urlloader class to save data:
public function UpdateData():void
trace("Closing....");
var FileData:XML=<Hello>Hai</Hello>
var urlVar:URLVariables=new URLVariables();
urlVar.fileData=FileData;
var urlLdr:URLLoader = new URLLoader();
var urlRqst:URLRequest = new URLRequest ("this must be an executable to parse and write data");
urlRqst.data=urlVar;
urlRqst.contentType = "text/xml";
urlRqst.method = URLRequestMethod.POST;
urlLdr.load(urlRqst);
but i don't think you can use an executable on a fl4 device so you will need to use a different class. i don' know how you're storing an xml file on a fl4 device but you should be able to use the sharedobject to read and store xml. -
How to fetch the xml data in webdynpro java
Hi all,
i have an xml data which contains the fields as 1.user type, 2. client, 3.vendor number
in webdynpro java how i validate or fetch the details of the user type, when ever user login's in portal i can show some data to user 'A' and invisible to user 'B', based on the xml data.
help me in doing step by step'
Thanks&Regards
charanHi
Follow the steps .
This is the XML file .
<?xml version="1.0"?>
<company>
<employee>
<firstname>Tom</firstname>
<lastname>Cruise</lastname>
</employee>
<employee>
<firstname>Paul</firstname>
<lastname>Enderson</lastname>
</employee>
<employee>
<firstname>George</firstname>
<lastname>Bush</lastname>
</employee>
</company>
Java Code of this to fetch the details.
public class XMLReader {
public static void main(String argv[]) {
try {
File file = new File("c:\\MyXMLFile.xml");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(file);
doc.getDocumentElement().normalize();
System.out.println("Root element " + doc.getDocumentElement().getNodeName());
NodeList nodeLst = doc.getElementsByTagName("employee");
System.out.println("Information of all employees");
for (int s = 0; s < nodeLst.getLength(); s++) {
Node fstNode = nodeLst.item(s);
if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
Element fstElmnt = (Element) fstNode;
NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("firstname");
Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
NodeList fstNm = fstNmElmnt.getChildNodes();
System.out.println("First Name : " + ((Node) fstNm.item(0)).getNodeValue());
NodeList lstNmElmntLst = fstElmnt.getElementsByTagName("lastname");
Element lstNmElmnt = (Element) lstNmElmntLst.item(0);
NodeList lstNm = lstNmElmnt.getChildNodes();
System.out.println("Last Name : " + ((Node) lstNm.item(0)).getNodeValue());
} catch (Exception e) {
e.printStackTrace();
BR
Satish Kumar -
Unable to Load the XML data file in to RTF template
Hi Team,
We are working on the XML publisher reports,where the xml data is containing the Japanese Characters.
I am facing an error while loading my xml data which has the japanese characters values in between the XML tags into the RTF Template.Though i have installed Japan fonts in my system,still unable to load the data.
Could any one please help me out in this regard.
Thanks in Advance.Hi;
Hi please clearfy below question for can make you fast help
1. What is your OS?
2. What is your EBS verison?
3. What is your DB version and Db character set?
Also check:
About Oracle XML Publisher Release 5.6.3 [ID 422508.1]
Regard
Helios -
How to convert an xml data(clob) in database to string format in bpel??
Now I am learning SOA ,I have one scenario which I store the each record in xml format in database from file adapter ,extract the xml data and store the data in another table ...Give me any suggestions which I slove these issue .
Thanks in advance.Hi
You can try the below xpath function to convert the xml into string - orcl:get-content-as-string(/xsdLocal:SAPOrderRequest)
To convert the string back to XML - ora:parseEscapedXML(bpws:getVariableData('stringpayloadVar'))
Regards
Albin I -
How to load the XML data of SAP to a target database
i use an IDocs to read from SAP and converted into XML (ie .XSD ) and now i want to move that XML data to target data base.
i am trying to move XML data to template table, but i am getting this mapping error , even though i used NRDM and mapping while moving to template table.
ERROR MESSAGE :
Invalid mapping expression for column <Query_1.SNDPRN>. Additional information: <Cannot parse expression.
Table <Query.EDI_DC40> for column <SNDPRN> does not occur in the FROM clause. For a top-level query, all columns must belong to some table in the FROM clause.. (BODI-1112351)>. (BODI-1111081)Hi Srikanth,
Please find my understanding below.Correct me if my understanding is wrong.
1)You have moved the data from IDOC to XML file (i.e Creating an XSD and using it as target).
2)Now this XML file, will you your source and you are going to load it into the target table.
The error looks like BODS is unable to parse the Hierarchy structure to the flat structure.
How are you un-nesting your data (Are you using XML pipeline) .
Thanks
Arun. -
How to Change the XML data that got stuck up in XI
Hi,
I am executing a scenario which sends the data from HTTP client>Xi->SAP(R/3 4.6).We are queuing the messages in XI, through QoS EOIO.Sender side we have configured the HTTP adapter and on receiver side we have configured RFC adapter.RFC at receiver side throws an exception, if I try to call rfc from XI by sending wrong data to it from HTTP client.The message which is failed gets stuck up in the queue , whose status will be shown as System Error.So, No messages will be further processed from that queue.
Our Requirement is, We need to manually change the xml file which is failed while trying to post data in to SAP.Could any one help me to find where the Failed xml file gets stored in XI and how can we change the file .
Regards,
Kiran kumar.Mario,
This is possible from SP 19 onwards...
Have a look @
/people/gourav.khare2/blog/2007/02/28/sapxi--message-editing-150-responsibility-and-liability-150-sp19
Also, the comments in the blog. Really good
http://help.sap.com/saphelp_nw04/helpdata/en/43/4a576b5b7430f3e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/4a576b5b7430f3e10000000a11466f/frameset.htm
Regards,
Jai Shankar -
How to Store an XML Data into Table?
Hi All,
My Requirement is "I Have an XML File (or) XML Data as CLOB, now I should decode this XML Data and find the equivalent data for columns in a table and then store that in a relational table",
Would be greatful if any one can provide me a feasible solution (or) good link where I can get this information with examples.
Thanks in advance,
Sunil NOr,
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Elapsed: 00:00:00.03
satyaki>
satyaki>
satyaki>drop table dump_tab;
Table dropped.
Elapsed: 00:00:01.08
satyaki>
satyaki>create table dump_tab
2 (
3 raw_xml clob
4 );
Table created.
Elapsed: 00:00:00.00
satyaki>
satyaki>
satyaki>desc dump_tab;
Name Null? Type
RAW_XML CLOB
satyaki>
satyaki>
satyaki>insert into dump_tab
2 select yy.rxml
3 from (
4 select (' <data>
5 <var name="document">
6 <string>Sales Order</string>
7 </var>
8 <var name="results">
9 <recordset rowcount="2">
10 <field name="sales_num">
11 <string>12345</string>
12 <string>60192</string>
13 </field>
14 <field name="ord_qty">
15 <string>10</string>
16 <string>50</string>
17 </field>
18 </recordset>
19 </var>
20 </data>'
21 ) rxml from dual
22 ) yy;
1 row created.
Elapsed: 00:00:00.00
satyaki>
satyaki>commit;
Commit complete.
Elapsed: 00:00:00.00
satyaki>
satyaki>create table results
2 (
3 serial_no number(5),
4 sales_num number(7),
5 ord_qty number(10)
6 );
Table created.
Elapsed: 00:00:00.00
satyaki>
satyaki>desc results;
Name Null? Type
SERIAL_NO NUMBER(5)
SALES_NUM NUMBER(7)
ORD_QTY NUMBER(10)
satyaki>
satyaki>select * from dump_tab;
RAW_XML
<data>
<var name="document">
<string>Sales Order</string>
</var>
<var name="results">
<recordset rowcount="2">
<field name="sales_num">
<string>12345</string>
<string>60192</string>
</field>
<field name="ord_qty">
RAW_XML
<string>10</string>
<string>50</string>
</field>
</recordset>
</var>
</data>
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>ed
Wrote file afiedt.buf
1 insert into results(serial_no,sales_num,ord_qty)
2 with t
3 as (
4 select xmltype(raw_xml) xml from dump_tab
5 ),
6 t1 as (select rownum rn, t1.column_value.extract('*/text()') sales_num from t t, table(xmlsequence(t.xml.extract('//field[@name="sales_num"]/string'))) t1),
7 t2 as (select rownum rn, t2.column_value.extract('*/text()') ord_qty from t t, table(xmlsequence(t.xml.extract('//field[@name="ord_qty"]/string'))) t2)
8 select t1.rn x,
9 to_number(regexp_replace(xmlelement("e",sales_num).getstringval(),'<(|/)e>','')) sales_num
10 to_number(regexp_replace(xmlelement("d",ord_qty).getstringval(),'<(|/)d>','')) ord_qty
11 from t1,t2
12* where t1.rn = t2.rn
satyaki>/
2 rows created.
Elapsed: 00:00:00.00
satyaki>
satyaki>select * from results;
SERIAL_NO SALES_NUM ORD_QTY
1 12345 10
2 60192 50
Elapsed: 00:00:00.00
satyaki>Regards.
Satyaki De. -
This seems to be one of the few posts that never gets attention ...Hmmm I wonder why ?<br /><br />Help Appreciated !! <br />Using Lifecycle 8, with out Reader Extensions, the email submit button generates an XML output file such as the following; <br /><br /><?xml version="1.0" encoding="UTF-8"?> <br /><br /><FormName> <br /> <Position>thwrth</Position> <br /> <Division>arthar</Division> <br /> <DepartmentUnit>rthqrth</DepartmentUnit> <br /></FormName> <br /><br />How can I get the following reference included as line 2 of the output xml file ? <br /><br /><?xml-stylesheet type="text/xsl" href="SR.xsl"?>
I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
here are some link to reference
Populating a LiveCycle PDF with PHP and MySQL
http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
HTML form that passed data into a PDF
http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
and an example
http://accesspdf.com/html_pdf_form/ -
How to store the member data of an object?
hi,
how do i store the data member of an object in labview? I want the data to be available from a different vi as well. i'll cretae an object and would set some attributes to it. So when i call this object by its name from a different vi, i want the attributes that was set to the object to be displayed. how do i achieve this.
Regards
JayaramanIf the only thing you need is a container to store values, then, as I mentionned in your other post:
Do a search on "Action Engine" within this forum. A sub-section of Action Engines is something called a "Functional Global Variable".
You can also do a search on that. Functional Global Variables are VERY different from Globals or Shared Variables. They are often used as a container to store values and allow to share among VI's. It only retains the last value written to it (unless you modify the structure but I won't get into that).
Here is an example of what an AE looks like: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_descending&message.id=311549#M311549
Another Action Engine example: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_descending&message.id=289773#M289773
Nugget on Action Engine: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=240328
Simple explanation of Functional Globals: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_descending&message.id=56747#M56747 -
The XML data file - I need to add an XSL reference line
Help Appreciated !!<br />Using Lifecycle 8, with out Reader Extensions, the email submit button generates an XML output file such as the following;<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><br /> <FormName><br /> <Position>thwrth</Position><br /> <Division>arthar</Division><br /> <DepartmentUnit>rthqrth</DepartmentUnit><br /></FormName><br /><br />How can I get the following reference included as line 2 of the output xml file ?<br /><br /><?xml-stylesheet type="text/xsl" href="SR.xsl"?><br /><br />Thanks a lot
If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document.
As Murray said, Flash is dead. Nobody uses it anymore. We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash. Look at Edge Animate.
HTML animation | Download free Adobe Edge Animate CC trial
Nancy O. -
How to integrate the XML data received via email in to MySQL
Hi,
This is JK, my compnay is planning to adopt Adobe Livecycle Barcoded forms technology, We are planning to automate the Weekly report submission of the HR dept of my company, where the various employees from various branches will be submiting their weekly reports thru Barcoded forms via email and the data has to be fed in to a MySQL database for Analysis purpose.
The problem is, i have designed the form and tested it, when i fill out the form and submit it via email, i get a XML to the mentioneid email id, but is it possible to import the bulk amount of XML data received thru email to the MySQL database without using 3rd party XML Parser.
Does Adobe Livecycle supports any functionality where these data's after decoding or received thru email can directly be integrated in to MySQL.
Any Suggestions?
Regards,
JKOne thing that should be clear is that you do not need to purchase Reader Extensions to use Barcode Forms technology. Take a look at the 2 articles at the bottom of http://www.adobe.com/products/server/barcodedpaperforms/ they talk specifically about this issue.
However, if you do not get RE with your Barcoded Forms license your end users will not be able to save the form off-line or submit electronically (other than data-only by email). They will be able to fill-in and print the forms only.
By your post it sounds like you are getting Adobe LiveCycle Barcoded Forms and you have also licensed the decoder.
The decoder itself works with a watched folder mechanism. So what you can do is create a small Java program that simply waits for decoded output from the output directory of the decoder and then populates your MySQL database. The code should be around a day to implement.
Here is the link to the deployment article that talks about the RE requirement: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/deploying_2d_barcodedpdfform s.pdf
Your Java will basically do something like this (very incomplete sample)
public class theThred extends Thread {
public void start() {
public void run() {
while (true) {
checkTheDirectoryCodeHere();
gotSomethingWriteItHere();
sleep(foreSomeNumberOfMilliseconds);
public void checkTheDirectoryCodeHere() {
Directory dir = new Directory("thePath"); -
How to store the measured data in a new array
we want to put the measured data in a new array and then use this array to plot the SPC chart. Can anyone provide some suggestions?
are you using some kind of data acquisition? If you reading in a loop you can build an array using the autoindexing tunnel (best way). Or you can use the build array function with a shift register inside a loop. Can you post an example?
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor
Maybe you are looking for
-
Scanning Multiple Pages using HP ENVY 4500
Hi, I have a macbook pro running OSX 10.9.4, and cannot see how I can scan multiple pages. I have tried using Image Capture and the Scan function under system preferences. I place the first page on the glass and change format to pdf and check the b
-
How to do selective delete of the GL a/c, BA and Co Code from the BWrequest
Hi, How to do selective delete of the GL a/c, BA and Co Code from the BW request ?? Regards, Vivek
-
. How to put Check box in every row in Table
Hi Friends, I have one doubt in Webdynpro with java. How to put Check box in every row in Table? For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in S
-
Hi There I want to be able to work on my computer whilst someone else is watching a movie from my harddrive via the apple tv in a seperate room. How do I do this without them seeing my work via the mirroring option
-
I Use the last FCX but I have a prob when I export (share) to dvd the result is over 4GB for a single DVD is about 6 to 9 Gb for a short film of 1h so what can I do to fix this thnks