Problem--Fixed

Last time, the printing result is incorrect remaining items like:
<A>
</A>
Now, it's cleaned.