# Store Procedure with special characters

**URL:** <https://forum.liquibase.org/t/store-procedure-with-special-characters/1861>\
**Category:** General Discussion\
**Created:** [February 22, 2012, 10:37am UTC](https://forum.liquibase.org/t/store-procedure-with-special-characters/1861 "2012-02-22T10:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [February 22, 2012, 10:37am UTC](https://forum.liquibase.org/t/store-procedure-with-special-characters/1861/1 "2012-02-22T10:37:00Z")

</div>

Glad you got it. \< would work as a replacement for \< too. &nbsp;The joy of XML…

Nathan

---

<div class="post-metadata">

**Author:** ![bubuzzz](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@bubuzzz](https://forum.liquibase.org/u/bubuzzz)\
**Post date:** [February 22, 2012, 10:37am UTC](https://forum.liquibase.org/t/store-procedure-with-special-characters/1861/2 "2012-02-22T10:37:00Z")

</div>

Dear all,   
  
I am new to liquibase and trying to use it in my current project. At this moment, I need to create a stored procedure and this is the code

1. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CREATE PROCEDURE MVLOG(IN period INT)
2. &nbsp;&nbsp;&nbsp; BEGIN
3. &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; INSERT INTO dblog\_archive
4. &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SELECT \* FROM dblog
5. &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WHERE log\_date \< DATE\_SUB(CURRENT\_DATE(), INTERVAL period DAY);
6. &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DELETE FROM dblog
7. &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WHERE log\_date \< DATE\_SUB(CURRENT\_DATE(), INTERVAL period DAY);
8. &nbsp;&nbsp;&nbsp; END;

Obviously, if i put it into the tag, it will make error during parsing xml since the “\<” in the procedure code. How can i overcome this issue ?

---

<div class="post-metadata">

**Author:** ![bubuzzz](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@bubuzzz](https://forum.liquibase.org/u/bubuzzz)\
**Post date:** [February 22, 2012, 10:37am UTC](https://forum.liquibase.org/t/store-procedure-with-special-characters/1861/3 "2012-02-22T10:37:00Z")

</div>

nevermind. CDATA do the trick. I am an idiot ☹
