The Domain file and creating multiple ULR's
I've notice that the question comes up about publishing multiple sites from one MobileMe iWeb account. My question is this, as you have only one Domain file, to achieve publishing more than one site does this mean you create and publish site A, then back it up and remove this Domain file, then create a second site B, publish and backup and so on. Replacing the appropriate Domain file to make changes and republishing the changes.
My interest is that my site is now around a hundred plus pages in length and it might be an option to subdivide them into several linked elements.
If you have any thoughts or experience of creating multiple sites in iWeb that are in structure straight up and down with not too many curves I'd be very interested to hear about your experiences.
You can easily create multiple sites with one MMe account.
Yes, you have one domain file, but what you need to do is duplicate that domain file, so that you have one site per a domain file. Either this, or use the program iWebSites to help you organise multiple sites within iWeb.
Similar Messages
-
How do I import an iweb domain file from an ibook (OS 10.4) to an imac (OS 10.73)?
I copied the domain file from my ibook to my imac, but when I double-click on the file, it doesn't open in iweb.In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder. Then place the domain file in your Users/Home/Library/Application Support/iWeb folder.
To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
tell application "iWeb" to activate
You can download an already compiled version with this link: iWeb Switch Domain.
Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder. So rename your domain files once they've been created to something other than the default name.
OT -
RandomAccessFile: How do I Clear the txt file and write multiple lines of..
Hello all,
I am a 6th grade teacher and am taking a not so "Advanced Java Programming" class. Could someone please help me with the following problem.
I am having trouble with RandomAccessFile.
What I want to do is:
1. Write multiple lines of text to a file
2. Be able to delete previous entries in the file
3. It would also be nice to be able to go to a certian line of text but not manditory.
import java.io.*;
public class Logger
RandomAccessFile raf;
public Logger()
try
raf=new RandomAccessFile("default.txt","rw");
raf.seek(0);
raf.writeBytes("");
catch(Exception e)
e.printStackTrace();
public Logger(String fileName)
try
raf=new RandomAccessFile(fileName,"rw");
raf.seek(0);
raf.writeBytes("");
catch(Exception e)
e.printStackTrace();
public void writeLine(String line)
try
long index=0;
raf.seek(raf.length());
raf.writeBytes(index+" "+line);
catch(Exception e)
e.printStackTrace();
public void closeFile()
try
raf.close();
catch(Exception e)
e.printStackTrace();
}Enjoy! The length of the code is highly attributable to the test harness/shell thingy at the end. But anyway seems to work nicely.
import java.io.*;
/** File structure is as follows. 1st four bytes (int) with number of live records. Followed by records.
<p>Records are structured as follows<ul>
<li>Alive or dead - int
<li>Length of data - int
<li>Data
</ul>*/
public class SequentialAccessStringFile{
private static int ALIVE = 1;
private static int DEAD = 0;
private int numRecords, currentRecord;
private RandomAccessFile raf;
/** Creates a SequentialAccessStringFile from a previously created file. */
public SequentialAccessStringFile(String filename)throws IOException{
this(filename,false);
/** Creates a SequentialAccessStringFile. If createnew is true then a new file is created or if it
already exists the old one is blown away. You must call this constructor with true if you do
not have an existing file. */
public SequentialAccessStringFile(String filename, boolean createnew)throws IOException{
this.raf = new RandomAccessFile(filename,"rw");
if(createnew){
truncate();
this.currentRecord = 0;
this.raf.seek(0);
this.numRecords = raf.readInt();
/** Truncates the file deleting all existing records. */
public void truncate()throws IOException{
this.numRecords = 0;
this.currentRecord = 0;
this.raf.setLength(0);
this.raf.writeInt(this.numRecords);
/** Adds the given String to the end of this file.*/
public void addRecord(String toAdd)throws IOException{
this.raf.seek(this.raf.length());//jump to end of file
byte[] buff = toAdd.getBytes();// uses default encoding you may want to change this
this.raf.writeInt(ALIVE);
this.raf.writeInt(buff.length);
this.raf.write(buff);
numRecords++;
this.raf.seek(0);
this.raf.writeInt(this.numRecords);
this.currentRecord = 0;
/** Returns the record at given index. Indexing starts at zero. */
public String getRecord(int index)throws IOException{
seekToRecord(index);
int buffLength = this.raf.readInt();
byte[] buff = new byte[buffLength];
this.raf.readFully(buff);
this.currentRecord++;
return new String(buff); // again with the default charset
/** Returns the number of records in this file. */
public int recordCount(){
return this.numRecords;
/** Deletes the record at given index. This does not physically delete the file but simply marks the record as "dead" */
public void deleteRecord(int index)throws IOException{
seekToRecord(index);
this.raf.seek(this.raf.getFilePointer()-4);
this.raf.writeInt(DEAD);
this.numRecords--;
this.raf.seek(0);
this.raf.writeInt(this.numRecords);
this.currentRecord = 0;
/** Removes dead space from file.*/
public void optimizeFile()throws IOException{
// excercise left for reader
public void close()throws IOException{
this.raf.close();
/** Positions the file pointer just before the size attribute for the record we want to read*/
private void seekToRecord(int index)throws IOException{
if(index>=this.numRecords){
throw new IOException("Record "+index+" out of range.");
if(index<this.currentRecord){
this.raf.seek(4);
currentRecord = 0;
int isAlive, toSkip;
while(this.currentRecord<index){
//skip a record
isAlive = this.raf.readInt();
toSkip = this.raf.readInt();
this.raf.skipBytes(toSkip);
if(isAlive==ALIVE){
this.currentRecord++;
// the next live record is the record we want
isAlive = this.raf.readInt();
while(isAlive==DEAD){
toSkip = this.raf.readInt();
this.raf.skipBytes(toSkip);
isAlive = this.raf.readInt();
public static void main(String args[])throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Create a new file? y/n");
System.out.println("(No assumes file exists)");
System.out.print("> ");
String command = br.readLine();
SequentialAccessStringFile test = null;
if(command.equalsIgnoreCase("y")){
System.out.println("Name of file");
System.out.print("> ");
command = br.readLine();
test = new SequentialAccessStringFile(command,true);
}else{
System.out.println("Name of file");
System.out.print("> ");
command = br.readLine();
test = new SequentialAccessStringFile(command);
System.out.println("File loaded. Type ? for help");
boolean alive = true;
while(alive){
System.out.print("> ");
command = br.readLine();
boolean understood = false;
String[] commandArgs = command.split("\\s");
if(commandArgs.length<1){
continue;
if(commandArgs[0].equalsIgnoreCase("quit")){
test.close();
alive = false;
understood = true;
if(commandArgs[0].equalsIgnoreCase("list")){
System.out.println("#\tValue");
for(int i=0;i<test.recordCount();i++){
System.out.println(i+"\t"+test.getRecord(i));
understood = true;
if(commandArgs[0].equalsIgnoreCase("truncate")){
test.truncate();
understood = true;
System.out.println("File truncated");
if(commandArgs[0].equalsIgnoreCase("add")){
test.addRecord(commandArgs[1]);
understood = true;
System.out.println("Record added");
if(commandArgs[0].equalsIgnoreCase("delete")){
int toDelete = Integer.parseInt(commandArgs[1]);
if((toDelete<0)||(toDelete>=test.recordCount())){
System.out.println("Record "+toDelete+" does not exist");
}else{
test.deleteRecord(toDelete);
System.out.println("Record deleted");
understood = true;
if(commandArgs[0].equals("?")){
understood = true;
if(!understood){
System.out.println("'"+command+"' unrecognized");
commandArgs[0] = "?";
if(commandArgs[0].equals("?")){
System.out.println("list - prints current file contents");
System.out.println("add [data] - adds data to file");
System.out.println("delete [record index] - deletes record from file");
System.out.println("truncate - truncates file (deletes all record)");
System.out.println("quit - quit this program");
System.out.println("? - displays this help");
System.out.println("Bye!");
}Sample output with test program
C:\>java SequentialAccessStringFile
Create a new file? y/n
(No assumes file exists)
yName of file
mystringsFile loaded. Type ? for help
add appleRecord added
add orangeRecord added
add cherryRecord added
add pineappleRecord added
list# Value
0 apple
1 orange
2 cherry
3 pineapple
delete 5Record 5 does not exist
delete 1Record deleted
list# Value
0 apple
1 cherry
2 pineapple
add kiwiRecord added
list# Value
0 apple
1 cherry
2 pineapple
3 kiwi
quitBye -
How to Parse the XML File and create an IDOC?
Hello friends,
I've an xml file which needs to be parsed and create an idoc into SAP to post the New Hire process? I need to create an ABAP for this
Could somebody help me do this?
Thankshere is the sample code for loading local xml file and parsing its using the abov ementioned FM
report y_xml_upload
no standard page heading.
data: filename type string ,
xmldata type xstring .
data: result_xml type standard table of smum_xmltb .
data: return type standard table of bapiret2 .
constants: line_size type i value 255.
data: begin of xml_tab occurs 0,
raw(line_size) type x,
end of xml_tab,
file type string,
size type i.
* upload the xml file
filename = 'C:raja123.xml' .
call function 'GUI_UPLOAD'
exporting
filename = filename
filetype = 'BIN'
has_field_separator = ' '
header_length = 0
importing
filelength = size
tables
data_tab = xml_tab
exceptions
others = 1.
************uncomment this and comment the call of SCMS_BINARY_TO_XSTRING if you dont have this fm in your system.
* if sy-subrc <> 0.
* clear: xmldata.
* exit.
* else.
* data: len type i.
* len = size.
* loop at xml_tab.
* if len <= line_size. exit. endif.
* concatenate xmldata xml_tab-raw(line_size)
* into xmldata in byte mode.
* len = len - line_size.
* endloop.
* if len > 0.
* concatenate xmldata xml_tab-raw(len)
* into xmldata in byte mode.
* len = len - size.
* endif.
* endif.
******* end of comment.
call function 'SCMS_BINARY_TO_XSTRING'
exporting
input_length = size
* FIRST_LINE = 0
* LAST_LINE = 0
importing
buffer = xmldata
tables
binary_tab = xml_tab
exceptions
failed = 1
others = 2
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'SMUM_XML_PARSE'
exporting
xml_input = xmldata
tables
xml_table = result_xml
return = return .
Regards
Raja
do not forget to assign points to helpful answers -
Limit the number of values in the listagg function and create multiple sets
Hi All,
I have a requirement where I would like to group one of the fields into one field based on the number of records. Lets say if we have an employee having multiple AREACODE's. Please see the below example. I want to do string concatenation of every 10 records of EMPNO into one set. If it has more than 10 records for a given EMPNO, it has to display as another record.
Eg:
EMPNO AREACODE
A111 AL
A111 AK
A111 AZ
A111 AR
A111 CA
A111 CO
A111 CT
A111 DE
A111 DC
A111 FL
A111 GA
A111 HI
B222 AL
B222 AK
B222 AZ
B222 IA
B222 KS
B222 KY
B222 LA
B222 ME
B222 MD
B222 MA
B222 MI
B222 CA
B222 CO
B222 CT
B222 DE
Result Set:
EMPNO AREACODE
A111 AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL
A111 GA|HI
B222 AL|AK|AZ|IA|KS| KY|LA|ME|MD|MA
B222 MI|CA|CO|CT|DE
The above example can have any number of AREACODE's for a given EMPNO, final result should display only a maximum 10 area codes for a given EMPNO in each record. If it has more than 10 AREACODE's it should display as another record. Please provide me a generic query to solve this. I was not able to control by setting the limit on the records for a given EMPNO on to LISTAGG function. Any ideas are highly appreciated.
Thanks1008754 wrote:
Hi All,
I have a requirement where I would like to group one of the fields into one field based on the number of records. Lets say if we have an employee having multiple AREACODE's. Please see the below example. I want to do string concatenation of every 10 records of EMPNO into one set. If it has more than 10 records for a given EMPNO, it has to display as another record.
Eg:
EMPNO AREACODE
A111 AL
A111 AK
A111 AZ
A111 AR
A111 CA
A111 CO
A111 CT
A111 DE
A111 DC
A111 FL
A111 GA
A111 HI
B222 AL
B222 AK
B222 AZ
B222 IA
B222 KS
B222 KY
B222 LA
B222 ME
B222 MD
B222 MA
B222 MI
B222 CA
B222 CO
B222 CT
B222 DE
Result Set:
EMPNO AREACODE
A111 AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL
A111 GA|HI
B222 AL|AK|AZ|IA|KS| KY|LA|ME|MD|MA
B222 MI|CA|CO|CT|DE
The above example can have any number of AREACODE's for a given EMPNO, final result should display only a maximum 10 area codes for a given EMPNO in each record. If it has more than 10 AREACODE's it should display as another record. Please provide me a generic query to solve this. I was not able to control by setting the limit on the records for a given EMPNO on to LISTAGG function. Any ideas are highly appreciated.
Thanks
ME_XE?with data (empno, areacode) as
2 (
3 select 'A111', 'AL' from dual union all
4 select 'A111', 'AK' from dual union all
5 select 'A111', 'AZ' from dual union all
6 select 'A111', 'AR' from dual union all
7 select 'A111', 'CA' from dual union all
8 select 'A111', 'CO' from dual union all
9 select 'A111', 'CT' from dual union all
10 select 'A111', 'DE' from dual union all
11 select 'A111', 'DC' from dual union all
12 select 'A111', 'FL' from dual union all
13 select 'A111', 'GA' from dual union all
14 select 'A111', 'HI' from dual union all
15 select 'B222', 'AL' from dual union all
16 select 'B222', 'AK' from dual union all
17 select 'B222', 'AZ' from dual union all
18 select 'B222', 'IA' from dual union all
19 select 'B222', 'KS' from dual union all
20 select 'B222', 'KY' from dual union all
21 select 'B222', 'LA' from dual union all
22 select 'B222', 'ME' from dual union all
23 select 'B222', 'MD' from dual union all
24 select 'B222', 'MA' from dual union all
25 select 'B222', 'MI' from dual union all
26 select 'B222', 'CA' from dual union all
27 select 'B222', 'CO' from dual union all
28 select 'B222', 'CT' from dual union all
29 select 'B222', 'DE' from dual
30 )
31 select
32 empno, listagg(areacode, ',') within group (order by emp_grp) as emp_list
33 from
34 (
35 select
36 ceil(row_number() over (partition by empno order by areacode) / 10) as emp_grp,
37 empno,
38 areacode
39 from data
40 )
41 group by empno, emp_grp;
EMPNO EMP_LIST
A111 AK,AL,AR,AZ,CA,CO,CT,DC,DE,FL
A111 GA,HI
B222 AK,AL,AZ,CA,CO,CT,DE,IA,KS,KY
B222 LA,MA,MD,ME,MI
4 rows selected.
Elapsed: 00:00:00.05
ME_XE?In the future, it would be nice if you could provide the starting data.
Cheers, -
I back up with Time Machine and have an extensive elaborate website I created in iWeb '09 over a couple months and publish to a local folder and then upload to my server, but in the last few days I notice certain pages (that I haven't even worked on or touched) somehow become corrupted or "cross-contaminated" with elements and images from other pages. Once I see they are corrupt I make sure not to publish them (if the current published versions are the correct, non-corrupt versions) or if they did get published I can use Time Machine to retrieve the .html file and page files folder for that specific page and replace it in my published folder/server so it shows correctly on the Web. However, that does not replace the corrupted page(s) you see and work with when you launch iWeb and try to edit or continue working on that page.
I am confused as to how I go to the package contents of the domain file and replace just that page with a previous version from time machine. I don't want to replace the entire domain file because I have new changes I made to other pages even in the past hours. How can I keep the good pages and just get earlier, non-corrupted versions of the corrupt page(s)? I know it's not as easy as with the published site folder where you can just replace the page's .html file and folder, but I don't want to have to re-create the corrupted page(s) from scratch or have to replace it with the last non-corrupted domain file and then have to redo all my recent changes to new pages I made before discovering the corrupt page(s). Thanks for your help as now I can't make changes to the page(s) within iWeb itself.Thanks for the response, Wyodor. I don't know what that is, but I'll have a look. Is it an alternative to iWeb or a way to transfer pre-existing iWeb sites? When you say merge domain files, is that like so multiple copies of the same site show up then you can pick and choose the non-corrupted pages and group them then delete the corrupted ones? I am on Snow Leopard with no plans or need to upgrade anytime soon.
And yes, I will read your links but just wanted to ask those questions. Maybe they'll answer my questions, maybe not.
I was able to discern that within the domain file is a domain folder with all the site folders, each with their own page ".gz" files which expand into ".xml" files. I was trying to figure out if you could simply drag the corrupt pages out that way and replace them with backup copies that are still good. I am having trouble discerning which pages are which as they all have random names like site-page-30F175E3-AE33-4F10-A490-1A096D9B185B.xml and although I expanded and opened each in Text Wrangler, I still couldn't discern which were which for sure, and trial and error proved cumbersome. Also, I did notice some of the later corrupted domain files had one or two more pages than the site itself has, so not sure how they got added or duplicated or what.
Again, I'll look at your links, but do you know about swapping out individual page .xml files this way within the domain file? -
Cannot open the Domain file in iWeb, Mavericks
Hello world of !
I just formatted the MacBook Pro, performing a clean instal of Mavericks. Having a HDD and a SSD into the machine, the Domain file of my iWeb sites was saved on the HDD while the OS and the apps are running on the SSD. The problem that I now have is that whenever I try to open the Domain file and get to my websites, the iWeb opens anew, with no website inside, inviting me to choose a template to create a new one.
Any hint as to how to get to my websites?
Thank you all in advance!
A Mac user from Romania!To open your domain file in Lion, Mountain Lion, Mavericks or Yosemite or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
do shell script"/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"
delay 1
tell application "iWeb" to activate
You can download an already compiled version with this link: iWeb Switch Domain.
Just launch the application, find and select the domain file you want to open and it will open with iWeb. The script modifies the iWeb preference file each time it's launched so one can switch between domain files if desired.
NOTE: once the domain file has been opened the first time you won't need the iWeb Switch Domain app again until you decide to switch domain files.
WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder. So rename your domain files once they've been created to something other than the default name.
NOTE: for Mavericks, 10.9 , go to your Home folder and use the View ➙ Show View Options menu to bring the this window: -
I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?
In Lion the Finder folder is now invisible. To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
For opening your domain file in Lion for the first time or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
tell application "iWeb" to activate
OT -
Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
Thanks for your help in advance.I have the same question but I am using two pc's
-
Re-create domain file and site
My domain file is corrupted and not allowing me to publish correctly.
How do I re-create my domain file and site without having to start over again?Naka! wrote:
My domain file is corrupted and not allowing me to publish correctly.
Are you sure it's corrupted? +"A lot of problems can be solved simply by..."+ Read more in the "Fix iWeb" section here:
http://www.iwebformusicians.com/WebMusic/iWebTips.html
Naka! wrote:
How do I re-create my domain file and site without having to start over again?
Paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
http://iwebfaq.org/site/iWebBackupretrieve.html
And although the following Apple doc talks about iWeb '08, I believe it also applies to iWeb '06:
_iWeb ’08: Backing up your Domain file_
There's also this: http://www.shirt-pocket.com/SuperDuper
...which will be invaluable when your Mac's internal HD eventually fails. As someone quipped:
"There are only two types of hard drive: Those that have failed, and those that are about to fail."
...This free SMARTReporter may give you an early warning of impending hard drive failure. -
I have the latest downloadable version of LR5. It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches. I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
I get that the preview file got corrupted somehow. Is there some way to fix this problem without building a new catalog?Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.
-
What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
Thanks in advance for your review and am hopeful for a reply.
ITBobbyP85You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
In the flat file connection manager, set the column delimiter to the pipe character. -
XI to read the action xml file and create a SAP notification in PM
Hi All
I am new to XI world can you please help me in doing this scenario.
I have to read an XML file and create a Notification in PM module of SAP.
Step by Step help would be great.
Thanks in Advance
SaiHi Sai,
To send data from XML file to SAP (any module) there are 2 ways..
1. File to IDoc and
2. File to RFC...
first Identify the concerned BAPI or IDOC for CREATION OF
NOTIFICATION ...then do the scenarios..
for Step by stp process go through this link...
New to XI
regards,
Ansar. -
How can I take the part that parses the .XML file and make it a procedure.
CREATE OR REPLACE PACKAGE BODY XMLSTUD6 AS
Author: Jimmy Harris
Created: 5/25/2006
Purpose: 1.This package has an XML file initialized to a variable called DOC .
2.It will then take the values from the XML file and insert them into a PL/SQL table.
3.From the PL/SQL table it will insert values into the STUDENTS table.
4.After step four above, the STUDLOAD procedure will insert (Sequence,Status, .XML file, USER, SYSDATE, ERROR_Message
into the AUDIT_XMLSTUD table regardless if insert status was successfull or not status is indicated by either an Y or
NO and the original XML filed that was currently processed, the date and user who executed the procedure.
If the status was NO then it will insert the Oracle SQLERRM massage, into the REASON_FOR_ERROR column.
If status is Y then REASOK_FOR_ERROR IS NULL.
5,Make sure you embed the xml file with an inner and outer ' ' ie: ' the whole .xml file string ' as the input
parameter into the STUDLOAD procedure.
This package excepts the whole .XML file as a CLOB as an input parameter, so that the end-user will not have
modify the code.
Modification History: 1.6/09/2006 JImmy Harris Modified code, added the Function "WORD_CONVERTER1" to accept the requested text data and
return a coded value back to our Welligent system.
2. Was advised that a front end type of functionality was not neccesary for this issue so I removed the INSERT_XML_FILE,
UPDATE_XML_FILE and the INSERT_XML_file.
FUNCTION WORD_CONVERTER1 (v_domain IN VARCHAR2 := null,
v_incoming IN VARCHAR2 := null) RETURN VARCHAR2 IS
v_well VARCHAR2(32);
v_editdd BOOLEAN;
v_code VARCHAR2(32);
CURSOR C_conv_wrd IS
SELECT WELL
INTO v_code
FROM CONVERSION_TABLE
WHERE DOMAIN = UPPER(TRIM(v_domain))
AND INCOMING = UPPER(TRIM(v_incoming));
BEGIN
OPEN c_conv_wrd;
LOOP
FETCH c_conv_wrd INTO v_code;
EXIT WHEN c_conv_wrd%NOTFOUND;
END LOOP;
CLOSE c_conv_wrd;
RETURN v_code;
END WORD_CONVERTER1;
PROCEDURE STUDLOAD (DOC CLOB) IS
v_parser xmlparser.Parser;
v_doc xmldom.DOMDocument;
v_nl xmldom.DOMNodeList;
v_n xmldom.DOMNode;
v_mm NUMBER;
v_dd NUMBER;
v_yyyy NUMBER;
v_DATE DATE;
v_race VARCHAR2(1);
v_eth VARCHAR2(1);
v_prim_lang VARCHAR2(1);
v_house_lang VARCHAR2(1);
v_gender VARCHAR2(1);
TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
s_tab stuxml_type := stuxml_type();
v_success VARCHAR2(200);
v_failure VARCHAR2(200);
l_error_code varchar2(200);
BEGIN
-- Create a parser.
v_parser := xmlparser.newParser;
xmlparser.setValidationMode(v_parser, FALSE);
-- Parse the document and create a new DOM document.
SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
v_doc := SYS.XMLPARSER.getDocument(v_parser);
-- Free resources associated with the Parser now it is no longer needed.
xmlparser.freeParser(v_parser);
-- Get a list of all the STUD nodes in the document using the XPATH syntax.
v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
-- Loop through the list and create a new record in a table collection for each STUD record.
FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
v_n := xmldom.item(v_nl, stud);
s_tab.extend;
-- Use XPATH syntax to assign values to he elements of the collection.
s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
s_tab(s_tab.last).STUDENT_DOB := v_date;
s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
v_race := WORD_CONVERTER1('RACE',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Race')));
v_eth := WORD_CONVERTER1('EHTNICITY',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Ethnicity')));
v_prim_lang:= WORD_CONVERTER1('PRIMARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/PrimaryLanguage')));
v_house_lang:= WORD_CONVERTER1('SECONDARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/HouseholdLanguage')));
v_gender := WORD_CONVERTER1('GENDER',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Gender')));
s_tab(s_tab.last).STUDENT_RACE := v_race;
s_tab(s_tab.last).STUDENT_ETHNIC := v_eth;
s_tab(s_tab.last).STUDENT_PRI_LANG :=v_prim_lang;
s_tab(s_tab.last).STUDENT_SEC_LANG := v_house_lang;
s_tab(s_tab.last).STUDENT_GENDER :=v_gender;
END LOOP;
FOR stud IN s_tab.first..s_tab.last LOOP
INSERT INTO STUDENTS (SHISID, SSN, DOE_SCHOOL_NUMBER,PATIENT_TYPE, TEACHER, HOMEROOM,STUDENT_LAST_NAME, STUDENT_FIRST_NAME, STUDENT_MI,STUDENT_DOB,
STUDENT_BIRTH_CERT, STUDENT_COMM,STUDENT_MUSA, STUDENT_FAMSIZE, STUDENT_FAMINCOME,STUDENT_UNINSURED, STUDENT_LUNCH, STUDENT_ZIP,STUDENT_STATE,
STUDENT_COUNTY, STUDENT_STREET,STUDENT_APART_NO, STUDENT_PHONE, STUDENT_H2O_TYPE,STUDENT_WASTE_TRT, STUDENT_HOME_SET, STUDENT_NONHOME_SET,
STUDENT_GENDER, STUDENT_RACE, STUDENT_ETHNIC,STUDENT_PRI_LANG, STUDENT_SEC_LANG, STUDENT_ATRISK,EMER_COND_MEMO, ASSIST_DEVICE_TYPE,
SCHOOL_ENTER_AGE,STUDENT_CURR_GRADE, S504_ELIG_DATE, S504_DEV_DATE,S504_REV_DATE, STUDENT_504, STUDENT_IEP,IEP_EXP_DATE, GRAD_CLASS, TYPE_DIPLOMA,
GRADE_RETAIN, LIT_PASS_TEST_MATH, LIT_PASS_DATE_MATH,LIT_PASS_TEST_WRITE, LIT_PASS_DATE_WRITE, LIT_PASS_TEST_READ,LIT_PASS_DATE_READ, SPEC_ED_ELIG,
SPEC_ED_CODE,TRANSPORT_CODE, TRANSPORT_NO, PRIME_HANDICAP,PRIME_HANDICAP_PERCENT, PRIME_HANDI_MANAGER, FIRST_ADD_HANDI,FIRST_ADD_HANDICAP_PERCENT,
FIRST_ADD_HANDI_504, FIRST_ADD_HANDI_504_DATE, SECOND_ADD_HANDI, SECOND_ADD_HANDICAP_PERCENT, MED_EXTERNAL_NAME, INS_TYPE, INS_PRI, INS_NAME,
INS_MEDICAID_NO, ELIGDATE, INS_PRIV_INSURANCE, INS_APPR_BILL, INS_APPR_DATE, INS_PARENT_APPR,INS_POL_NAME, INS_POL_NO, INS_CARRIER_NO,
INS_CARRIER_NAME, INS_CARRIER_RELATE, INS_AFFECT_DATE, INS_COPAY_OV, INS_COPAY_RX, INS_COPAY_AMBUL,INS_COPAY_EMER, INS_COPAY_OUTPAT,STUDENT_INACTIVE,
PHYS_ID, ENCOUNTERNUM,USERID,MODDATE, STUDENT_ID, S504_DISABILITY,CHAPTER1, WELLNESS_ENROLL, SCHOOL_OF_RESIDENCE,INITIAL_IEP_DATE, CALENDAR_TRACK,
USA_BORN,ALT_ID, FUTURE_SCHOOL, IEP_LAST_MEETING,IEP_LAST_SETTING, IEP_LAST_REFER_EVAL, THIRD_ADD_HANDI,LEP, GIFTED, IEP_EXIT_REASON,
CASE_MANAGER_ID, INTAKE_NOTES, CALLER_PHONE,CALL_DATE, CALLER_RELATIONSHIP, CALLER_NAME,BUSINESS_PHONE, FAX, EMAIL,HIGHEST_EDUCATION, INTAKE_DATE,
SERVICE_COORDINATOR, DISCHARGE_DATE, DISCHARGE_REASON, DISCHARGE_NOTES,INTAKE_BY, INTAKE_STATUS, IEP_LAST_SERVED_DATE,IEP_APC_DATE, IEP_EXIT_DATE,
ADDRESS2, LEGAL_STATUS, RELIGION, EMPLOYMENT_STATUS, TARG_POP_GROUP1, TARG_POP_GROUP2, MARITAL_STATUS,THIRD_ADD_HANDI_PERCENT, LAST_INTERFACE_DATE,
SERVICE_PLAN_TYPE,CURRENT_JURISDICTION, FIPS, BIRTH_PLACE_JURISDICTION,BIRTH_PLACE_HOSPITAL, BIRTH_PLACE_STATE, BIRTH_PLACE_COUNTRY,
OTHER_CLIENT_NAME, SIBLINGS_WITH_SERVICES, PERM_SHARE_INFORMATION,PERM_VERIFY_INSURANCE, REFERRING_AGENCY, REFERRING_INDIVIDUAL,AUTOMATIC_ELIGIBILITY,
INTAKE_IEP_ID, FUTURE_SCHOOL2,FUTURE_SCHOOL3, TRANSLATOR_NEEDED, TOTAL_CHILDREN_IN_HOME,REFERRED_BY, FAMILY_ID, SCREENING_CONSENT_FLAG,PICTURE_FILE,
DUAL_ENROLLED, DOE_SCHOOL_NUMBER2)
VALUES (123456789025, null,null ,null,null,null ,s_tab(stud).STUDENT_LAST_NAME,s_tab(stud).STUDENT_FIRST_NAME,s_tab(stud).STUDENT_MI,
s_tab(stud).STUDENT_DOB,null ,null,null ,null,null,null,null,s_tab(stud).STUDENT_ZIP,s_tab(stud).STUDENT_STATE ,s_tab(stud).STUDENT_COUNTY,
s_tab(stud).STUDENT_STREET,s_tab(stud).STUDENT_APART_NO,null,null,null ,null , null,
s_tab(stud).STUDENT_GENDER ,s_tab(stud).STUDENT_RACE , s_tab(stud).STUDENT_ETHNIC,
s_tab(stud).STUDENT_PRI_LANG ,s_tab(stud).STUDENT_SEC_LANG, null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null,
null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null ,null , null, null, null,null );
END LOOP;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
HTP.HTMLOPEN;
v_success:= 'The values from the .XML file have been successfully inserted into the STUDENTS table in the Oracle Database.';
htp.bold(v_success);
HTP.HTMLCLOSE;
COMMIT;
-- Free any resources associated with the document now it that it is no longer needed.
xmldom.freeDocument(v_doc);
EXCEPTION
WHEN OTHERS THEN
l_error_code := SQLERRM;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
HTP.HTMLOPEN;
v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
htp.bold(v_failure);
HTP.HTMLCLOSE;
COMMIT;
END STUDLOAD;
PROCEDURE UPDSTUDLOAD (DOC CLOB) IS
v_parser xmlparser.Parser;
v_doc xmldom.DOMDocument;
v_nl xmldom.DOMNodeList;
v_n xmldom.DOMNode;
v_mm NUMBER;
v_dd NUMBER;
v_yyyy NUMBER;
v_DATE DATE;
v_race VARCHAR2(1);
v_eth VARCHAR2(1);
v_prim_lang VARCHAR2(1);
v_house_lang VARCHAR2(1);
v_gender VARCHAR2(1);
TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
s_tab stuxml_type := stuxml_type();
v_success VARCHAR2(200);
v_failure VARCHAR2(200);
l_error_code varchar2(200);
BEGIN
-- Create a parser.
v_parser := xmlparser.newParser;
xmlparser.setValidationMode(v_parser, FALSE);
-- Parse the document and create a new DOM document.
SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
v_doc := SYS.XMLPARSER.getDocument(v_parser);
-- Free resources associated with the Parser now it is no longer needed.
xmlparser.freeParser(v_parser);
-- Get a list of all the STUD nodes in the document using the XPATH syntax.
v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
-- Loop through the list and create a new record in a table collection for each STUD record.
FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
v_n := xmldom.item(v_nl, stud);
s_tab.extend;
-- Use XPATH syntax to assign values to he elements of the collection.
s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
s_tab(s_tab.last).STUDENT_DOB := v_date;
s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
v_race := WORD_CONVERTER1('RACE',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Race')));
v_eth := WORD_CONVERTER1('EHTNICITY',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Ethnicity')));
v_prim_lang:= WORD_CONVERTER1('PRIMARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/PrimaryLanguage')));
v_house_lang:= WORD_CONVERTER1('SECONDARY_LANG',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/HouseholdLanguage')));
v_gender := WORD_CONVERTER1('GENDER',UPPER(xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Gender')));
s_tab(s_tab.last).STUDENT_RACE := v_race;
s_tab(s_tab.last).STUDENT_ETHNIC := v_eth;
s_tab(s_tab.last).STUDENT_PRI_LANG :=v_prim_lang;
s_tab(s_tab.last).STUDENT_SEC_LANG := v_house_lang;
s_tab(s_tab.last).STUDENT_GENDER :=v_gender;
END LOOP;
FOR stud IN s_tab.first..s_tab.last LOOP
UPDATE STUDENTS
SET
STUDENT_LAST_NAME = s_tab(stud).STUDENT_LAST_NAME,
STUDENT_FIRST_NAME = s_tab(stud).STUDENT_FIRST_NAME,
STUDENT_MI = s_tab(stud).STUDENT_MI,
STUDENT_DOB = s_tab(stud).STUDENT_DOB,
STUDENT_ZIP = s_tab(stud).STUDENT_ZIP,
STUDENT_STATE = s_tab(stud).STUDENT_STATE,
STUDENT_COUNTY = s_tab(stud).STUDENT_COUNTY,
STUDENT_STREET = s_tab(stud).STUDENT_STREET,
STUDENT_APART_NO = s_tab(stud).STUDENT_APART_NO
WHERE SHISID = 123456789025;
END LOOP;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
HTP.HTMLOPEN;
v_success:= 'The updated .XML file has been successfully saved to the STUDENTS table in the Oracle Database.';
htp.bold(v_success);
HTP.HTMLCLOSE;
COMMIT;
-- Free any resources associated with the document now it that it is no longer needed.
xmldom.freeDocument(v_doc);
EXCEPTION
WHEN OTHERS THEN
l_error_code := SQLERRM;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
HTP.HTMLOPEN;
v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
htp.bold(v_failure);
HTP.HTMLCLOSE;
COMMIT;
END UPDSTUDLOAD;
PROCEDURE DELSTUDLOAD (DOC CLOB) IS
v_parser xmlparser.Parser;
v_doc xmldom.DOMDocument;
v_nl xmldom.DOMNodeList;
v_n xmldom.DOMNode;
v_mm NUMBER;
v_dd NUMBER;
v_yyyy NUMBER;
v_DATE DATE;
TYPE stuxml_type IS TABLE OF STUDENTS%ROWTYPE;
s_tab stuxml_type := stuxml_type();
v_success VARCHAR2(200);
v_failure VARCHAR2(200);
l_error_code varchar2(200);
BEGIN
-- Create a parser.
v_parser := xmlparser.newParser;
xmlparser.setValidationMode(v_parser, FALSE);
-- Parse the document and create a new DOM document.
SYS.XMLPARSER.PARSECLOB ( v_parser, DOC );
v_doc := SYS.XMLPARSER.getDocument(v_parser);
-- Free resources associated with the Parser now it is no longer needed.
xmlparser.freeParser(v_parser);
-- Get a list of all the STUD nodes in the document using the XPATH syntax.
v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent');
-- Loop through the list and create a new record in a table collection for each STUD record.
FOR stud IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
v_n := xmldom.item(v_nl, stud);
s_tab.extend;
-- Use XPATH syntax to assign values to he elements of the collection.
s_tab(s_tab.last).STUDENT_LAST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/LastName');
s_tab(s_tab.last).STUDENT_FIRST_NAME :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/FirstName');
s_tab(s_tab.last).STUDENT_MI :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Name/MiddleName');
v_dd := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Day');
v_mm := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Month');
v_yyyy := xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/BirthDate/Year');
v_DATE := TO_DATE(v_mm||' '||v_dd||' '||v_yyyy,'MMDDYYYY');
s_tab(s_tab.last).STUDENT_DOB := v_date;
s_tab(s_tab.last).STUDENT_STREET :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/Street');
s_tab(s_tab.last).STUDENT_APART_NO :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ApartmentNumber');
s_tab(s_tab.last).STUDENT_COUNTY :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/County');
s_tab(s_tab.last).STUDENT_STATE :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/State');
s_tab(s_tab.last).STUDENT_ZIP :=xslprocessor.valueOf(v_n,'/com.welligent.Student.BasicStudent.Create/DataArea/NewData/BasicStudent/Address/ZipCode');
END LOOP;
FOR stud IN s_tab.first..s_tab.last LOOP
DELETE FROM STUDENTS
WHERE SHISID = 123456789025;
END LOOP;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,DOC,'Y',NULL,SYSDATE);
HTP.HTMLOPEN;
v_success:= 'The .XML file has been successfully deleted from the STUDENTS table in the Oracle Database.';
htp.bold(v_success);
HTP.HTMLCLOSE;
COMMIT;
-- Free any resources associated with the document now it that it is no longer needed.
xmldom.freeDocument(v_doc);
EXCEPTION
WHEN OTHERS THEN
l_error_code := SQLERRM;
INSERT INTO AUDIT_XMLSTUD1(XMLSTUDPK,USERID,XMLFILE,STATUS,REASON_FOR_ERROR,DATE_MODIFIED)
VALUES(SEQ_XMLSTUD1.NEXTVAL,USER,nvl(DOC,TO_CLOB('No .XML file entered, user pressed button without entering correct information.')),'NO',l_error_code,SYSDATE);
HTP.HTMLOPEN;
v_failure:= 'The attempt made to insert files to the Student table has failed because,'||l_error_code;
htp.bold(v_failure);
HTP.HTMLCLOSE;
COMMIT;
END DELSTUDLOAD;
END XMLSTUD6;Try opening the problem files using a text editor or file viewer to see what the first few bytes contain. All valid FM binary files for FM 11 will contain <MakerFile 11.0> in the first bytes of the file.
When updating books, it's sometimes better to just to create a new book file and add the files to that.
When renaming files in a book, changes at the system level will break any links/cross-references between files, so it's always best to use the Rename option in the Book file to change FM file names. This will maintain the correct linkages. -
How to change the default save encoding of the dvm files when create dvm???
When I creating a DVM(domain-value mapping) in Chinese on the ESB control and confirm it, then restarted the SOA service, the DVM that I created in Chinese disappeared from ESB control. All the maps(both English and Chinese ) are in DVM Repository.
After I updated the encoding from ‘UTF-8’ to ‘GB2312’ in the three files below, and restarted the SOA service, the DVM in Chinese appeared on ESB control.
But when I adding the second row in Chinese and save it, then restart the SOA service, the DVM in Chinese disappeared from ESB Control once again. Because the encoding in the three files below is updated from ‘GB2312’ to ‘UTF-8’ .
Files:
C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm.def.xml
C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm\Chinese.xml.def.xml
C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\content\files\dvm\Chinese.xml_1.0
How to change the default save encoding of the dvm files when create dvm in ESB control ???I have the same problem. When I updated to Mavericks now the bookmarks bar font is huge. I liked it the way it was before. I liked the smaller font. Also wish I could change the color of the sidebar and font/folders too.
I tried to see in preferences if there was anyway to change it, but I don't see anything there.
Maybe you are looking for
-
Hi,gurus: I wanna to configure a scenario about soap to abap proxy,do you have any step by step configurations about that?Any help will be appreciated!
-
Please help, InDesign CS6 (cloud) keeps crashing on OS 10.8.2
It happens after I open a file and try do just about anything, modify a photo, add text, move an object, the most basic tasks on simple one-page documents. I've tried all the recommendations I can find including verifying fonts, deleting preferences,
-
My ipod touch will start to charge then quit the start ect. why?
my ipod touch will start to charge then quit the start ect. why? if you know how to fix it plaese say
-
Yellow Red White connections on Old Sony DVD
Can I connect Apple TV to the Yellow - Red - White input connections on the Video input (Aux Video 2) of the Old Sonly DVD surround home theater? Second, can I correlate the Y R W connectors from Sony to the R B G jacks on the Apple TV? Do I need ano
-
Condition to check Domain Machine
Hi guys, please, wich is the best solution to know if a machine is member of the Microsoft AD Domain? I am looking for something in ISE conditions but i couldn't see anything related. thanks a lot