Oracle Tips #4 [Trigger : Mutating Tables & Autonomos Transactions]

Oracle Version : 10g

As you know inside a Oracle row trigger you cannot access to the base table, for example when you make a trigger like this, on a table named “activity“.

 

CREATE OR REPLACE TRIGGER UNAME.ACTIVITY_FK_MENU_INTEGRITY

AFTER INSERT OR UPDATE

ON UNAME.ACTIVITY

REFERENCING NEW AS New OLD AS Old

FOR EACH ROW

DECLARE

 

tmpVar NUMBER;

e_Menu_Already_Exists EXCEPTION;

 

BEGIN

          [...]

Hand made XML - HTML

Sometime,appen is required to produce an Xml Document where you can’t have a good Xml parser or for perfomance you can’t use that.
Assuming thay you need create a simple Xml file like :

Worng Xml file :

 

<?xml version="1.0" encoding="ISO-8859-1"?>

  <person>

      <firstname>Rossi</firstname>

      <lastname>Rossiglio</lastname>

      <birthdate>27/02/1973</birthdate>

      <companyname>pippo&pluto</companyname>

 </person>