Creating XML files from one data file in a java program
<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>
Thanks,
Bill
So how does it take this file
file>
<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>
</file>
and create these three different one?
1.)
<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
2.)
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
3.)
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>
Is it not going to just grab each element after the file tag? I'm just confused about that.
Similar Messages
-
HELP ME! Creating a table from a data file
Hi
I'm writing an application for data visualization. The user can press the "open file" button and a FileChooser window will come up where the user can select any data file. I would like to take that data file and display it as a table with rows and columns. The user needs to be able to select the coliumns to create a graph. I have tried many ways to create a table, but nothing seems to work! Can anyone help me?! I just want to read from the data file and create a spreadsheet type table... I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!
If you have ANY tips, I'd REALLY appreciated.....I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!You may use a List (ArrayList, LinkedList or Vector) for that.
Lists allow you (dynamically) add elements. -
Generate multiple XML files from one Invoices file in AR Selected Invoices
I have converted our Oracle EBS 11i Selected Invoice RAXINV.rdf to XML and created a template for XML Bursting. I'm bursting fine at the:
/ZRAXINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_CF_NO/G_CF_NO. My question is since I'm writing out my pdf output invoices to the filesystem on Sharepoint; I also need to archive the XML part of each invoice broken down by the same group as .//LIST_G_CF_NO/G_CF_NO. When I convert the rdf to XML it produces one XML file from which I created the templates.
My requirement is to archive both the individual invoices from the templates and the corresponding XML pieces on Sharepoint so that we will be able to search and link the xml to the pdf written out to the filesystem on Sharepoint.
Any idea how should go about this requirement will be much appreciated.
Thanks,
LeoSo how does it take this file
file>
<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>
</file>
and create these three different one?
1.)
<statement>
<name>John Dow </name>
<address>123 Main</address>
<phone>972-213-3434</phone>
</statement>
2.)
<statement>
<name>Jane Dow </name>
<address>345 Main</address>
<phone>972-213-3534</phone>
</statement>
3.)
<statement>
<name>Marry Dow </name>
<address>678 Main</address>
<phone>972-213-3435</phone>
</statement>
Is it not going to just grab each element after the file tag? I'm just confused about that. -
How to copy a file from one PC to another in ABAP program
Hello Friends,
I have a requirement where I have to copy a file from a central location ( central servers like
inblr102 or
dwdf ) and save it on local PC in ABAP code. Also, while saving it should ask for the path on PC. Can any of you please help me in this?
Thanks in advance!
DivyaHi,
Check out this link. This deletes file, probally you will get some hint to copy.:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/deleting%252bfile%252bfrom%252bwindows
Thanks,
Krishna -
How can I move file from one path to another by java
Hello
I need to move the following file c:\abc\aa.txt
to the follwing path c:\def
How can i do it by java program?
RegardsHi,
Try the following code:
boolean moveFile = new File("c:\\abc\\aa.txt").renameTo(new File("c:\\def",
new File("c:\\abc\\aa.txt").getName()));
Hope that helps.
Savitha.
OTN group@IDC -
How can I make individual files from one jpg file?
I have a disk of 78 scanned images that I need to split up into individual images so I can work with them.
I am very new to Adobe and can't figure this out on my own. I am sure that it is a simple solution or at least I hope so.
Any suggestions?As far as I know, each image should already be its own file. Is that not the case? Exactly what type of files are these anyway?
Or are you saying that there are multiple photos scanned side-to-side and edge-to-edge in a single file?
Because these two require different techniques... -
I have 100 data files, I want to join them together as one data file
I need to join approx. 100 data files into one data file, and be able to read back each data file from that one big file. I would also like a feature to count how many files are in the main one file. The data files contain graphs, text and numerics.
What you want to do is not going to be easy to implement. The idea is that files are just binary data and you can join the data into one binary file. The trick is going to be creating the appropriate header for the binary file to include things like file location--the beginning and end of a subfile--as well as the number of files. The exact structure of the header is really left up to you and your imagination.
Why do you want to join all the files into one? It sounds like what you have works now and making one file increases the chances that all of your data will be lost if the file becomes corrupted. Also LabVIEW is limited to files of about 2GBytes, so you will be more likely to run into this limit. -
How to call a function in one .js file from another .js file
Hello Techies,
I am trying to call a function in two.js file from one.js file.
Here is my code
one.js
<script>
document.write("<script type='text/javascript' src='/htmls/js/two.js'> <\/script>");
function one()
var a;
two(a);
}two.js
function two(a)
alert("two");
}But the function two() is not working.
How can I do this one??
regards,
KrishI think there is a syntax error in line
document.write("<script type='text/javascript' src='/htmls/js/two.js'> <\/script>");
end tag <\/script> is wrong. -
Create two or more flash files from one (Excel) data source
Hi experts,
I have the following requirement about Xcelsius.
Our data source is a relational database. Via the ODBC driver we manage to create several queries and execute them into Microsoft Excel. Those excel sheets are the basic for the Xcelsius reports.
Now we want to build some highly visualized reports on that, but the crucial fact is. We don't want to have all the reports in one FlashFile, but we need several flash file depending on the area of the queries.
Hence our requirement would be one of the following points:
- create multiple flash files from one .xlf
- create multiple .xlf from data source
Another requirement is the automatic execution of the process. We don't want to have a person in between, who has to call all the .xlf files to create the Flash reports step by step. What we need is an automatic process.
Can this requirement be fulfilled in a way?
Maybe by using the Xcelsius SDK?
Thanks for any helps and comments!
SebastianSebastian,
Firstly talking about the important requirement i.e. automating the process:
In your case you can achieve this by using the XML maps. This will pick the data automatically when ever report is refreshed.
Secondly, both the approaches are correct, however i would go with the first one.
1. Create multiple flash files from one .xlf
You just need to create one dashboard and have a filter on areas (Invisible) and then export to flash (for every area).
2. Create multiple .xlf from data source
This approach is also fine, however you need to create multiple dashboards and do the same thing i.e filter data based on area.
P.S. Did you get a chance to explore options to integrate Xcelsius with your Relational Database, this will be much effective.
-Anil -
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.
. -
Howto make created folders/ files from one teacher, read only for other teachers?
Hello there,
as an admin @ school I was wondering how to make created folders/ files from one teacher, read only for other teachers?
- In a 2008domain, created a group "teachers"
- created a folder "teacher data" where all teachers have read/write permissions
ideal,a teacher who make's a folder in "teacher data" should be the only oen who is able to add file's to that folder and dele that folder or files. Other teachers may be able to read the content of the folder.
Is this possible to set up and how?
many thanks.
Nico.
rdsHi Nico,
You could set the permissions below to resolve the issue:
For the root folder "teacher data": give the full control permission to CREATOR OWNER – "Subfolders and files only" and give the read/write permissions to the group "teachers"– "This folder only".
Best Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
How do I move all my files from one User Profile (account) into another?
I needed to create a new account and want all of my files accessible in the new one.ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
the start of that tree is /
so, if you were to do:
cd /
(cd means change directory)
it will bring you at the highest branch of the file system.
cd /Users
will bring you to where all the users are.
to see whats in /Users you can use your friend ls command
ls means list files/directories
so:
cd /Users
ls -la
(the -la here means show all (even hidden) and long format (very verbose)) this flag is very optional.
you will see
fred
user2
for example.
if you want to see the desktop of user2 you would change directory to it then list the files.
for example:
cd /Users/user2/Desktop
Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
ls -la
you should then be able to see everything in users2 desktop
you could have done as well the same thing in smaller steps, for example:
cd /
cd Users
cd user2
cd Desktop
this is the equivalent of cd /Users/user2/Desktop
So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
/Users/user2
which most likely the file you had created from the other user was in /Users/user1
if you copied all the files from /Users/original_user to /Users/secondUser
most likely yes, all your mail, bookmarks etc would be copied over.
so in your case.
sudo chown -R seconduser:staff /Users/secondUser
should work
Remember that if you start a path with the character / it means start from the root of the file system, at the highest top you can ever get.
so
cd /Users/fred
is not the same as
cd Users/fred
unless you were in / already
i know it may be confusing at first but it's actually very logical if you play with it.
to simplify, think of it that / means C:\ on windows
you can't go any higher than C:\ (in a way)
if you're unsure which directory you're currently in, you can always type:
pwd
it will tell you where you are.
for example:
cd /
pwd
this shows /
cd Users
pwd
this now shows /Users
cd /System/Library
pwd will show /System/Library
cd /
cd /Users
cd fred
cd Library
pwd will show /Users/fred/Library
unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
ls -la (this shows all the files where you are)
if you see myfile in the list
do a pwd
whatever is return, the real location of the file would be:
whatever pwd returned / myfile
I hope that makes sense. -
How do I move a picture from one pdf-file to another, already created pdf-file, with adobe reader?
Reader doesn't have editing capabilities.
-
I am having issues today with my Adobe Lightroom 5.6 today that was working fine yesterday except for te files from one of my cameras showed up on import but wouldn't download, today I'm getting the message "Lightroom cannot start because it cannot create files in the temporary file location /var/folders/jv/2bct456j0yg4ys681fxk9zq00000gn/T " don't know what has happended in 24 hrs except I did check my permissions on my main directory to ensure that I had extended permissions to all the folders contained within my main drive on my IMac running OSX 10.10
Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps. -
How to send doc files from one system to another using XI
Hi All,
I have a requirement to pick the word doc files from one file system and send these word document files to ECC system place in ECC application server.Can we achieve this requirement using XI. If so how we can do this. also let me know can we convert these doc files into proxy and send to ECC?. Please let me know. Thanks.
Regards,
RajeshYes You Can
XI Converts Unstructured data(That is non -XML)Type- in your case word doc and maps it to Target structure.
You can either use content conversion
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
You can either built a adaptermodule for the same(U nedd to have Some Java knowledge)
You can also convert without creating any objects in integration directory link for the same is
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
***********Please Reward Points If find Helpful*********
Maybe you are looking for
-
When I go on to some websites and click on certain things it wants to open a new window to display the information etc. I.E. On an agency job search site I click to do a detailed job search which should open in a new window, but this will not happen
-
This is a MAJOR annoyance at 4am.... also, I have noticed that when I open my email for the first time daily, it will suddenly beep and vibrate a few times in a row and my emails are suddenly "updated"... HOW CAN I TELL WHAT IS GOING ON IN MY PHONE A
-
Recovering anything from a dead ipod?
I recently ran over my ipod (don't ask)...the screen is cracked internally, but there doesn't seem to be any other physical damage that I can see. I can hear the hard drive buzzing when I plug it into the USB port on my PC, but I'm not getting any re
-
HI Experts,Can anybody provide model programs for Aging analysis
Appriciate your service. Thanks and Regards, Viswanath
-
Concern - may be posting part of a confidential doc
Oracle 11 Release 1 Ban in BP Recommend you remove both the OP and this reference.