126: --
127: transaction_number number;
128: transaction_id varchar2(30);
129: --
130: parser xmlparser.Parser;
131: xmldoc xmldom.DOMDocument;
132: xmlelt xmldom.DOMElement;
133: XMLParseError EXCEPTION;
134: xmlClob CLOB;
188: into xmlClob
189: from hr_wip_transactions
190: where transaction_id = transaction_number;
191: --
192: parser := xmlparser.newParser;
193: --
194: xmlparser.ParseCLOB(parser,xmlClob);
195: xmldoc := xmlparser.getDocument(parser);
196: --
190: where transaction_id = transaction_number;
191: --
192: parser := xmlparser.newParser;
193: --
194: xmlparser.ParseCLOB(parser,xmlClob);
195: xmldoc := xmlparser.getDocument(parser);
196: --
197: l_return_status := 'S';
198: --
191: --
192: parser := xmlparser.newParser;
193: --
194: xmlparser.ParseCLOB(parser,xmlClob);
195: xmldoc := xmlparser.getDocument(parser);
196: --
197: l_return_status := 'S';
198: --
199: hr_utility.trace('Inserting PER_REQUISITIONS records');
333: errorFlag := true;
334: end if;
335: end loop;
336: --
337: xmlparser.freeParser(parser);
338: wellFormed := TRUE;
339: --
340: if(errorFlag) then
341: --
366: WHEN XMLParseError THEN
367: --
368: hr_utility.trace('XMLParseError found');
369: --
370: xmlparser.freeParser(parser);
371: wellFormed := FALSE;
372: error := SQLERRM;
373: --
374: rollback to vacancy_commit;
402: --
403: transaction_number number;
404: transaction_id varchar2(30);
405: --
406: parser xmlparser.Parser;
407: xmldoc xmldom.DOMDocument;
408: xmlelt xmldom.DOMElement;
409: XMLParseError EXCEPTION;
410: xmlClob CLOB;
459: into xmlClob
460: from hr_wip_transactions
461: where transaction_id = transaction_number;
462: --
463: parser := xmlparser.newParser;
464: --
465: xmlparser.ParseCLOB(parser,xmlClob);
466: xmldoc := xmlparser.getDocument(parser);
467: --
461: where transaction_id = transaction_number;
462: --
463: parser := xmlparser.newParser;
464: --
465: xmlparser.ParseCLOB(parser,xmlClob);
466: xmldoc := xmlparser.getDocument(parser);
467: --
468: l_return_status := 'S';
469: --
462: --
463: parser := xmlparser.newParser;
464: --
465: xmlparser.ParseCLOB(parser,xmlClob);
466: xmldoc := xmlparser.getDocument(parser);
467: --
468: l_return_status := 'S';
469: --
470: hr_utility.trace('Updating PER_REQUISITIONS records');
672: end if;
673: end loop;
674: --
675: --
676: xmlparser.freeParser(parser);
677: wellFormed := TRUE;
678: --
679: if(errorFlag) then
680: --
705: WHEN XMLParseError THEN
706: --
707: hr_utility.trace('XMLParseError found');
708: --
709: xmlparser.freeParser(parser);
710: wellFormed := FALSE;
711: error := SQLERRM;
712: rollback to vacancy_commit;
713: set_up_error_message(itemtype, itemkey, error);