Hi

I am using below mentioned piece of python code inside script element in
STAX.xml file.

<script>
xmlfileopen = open(STAXResult,'r')
                                                xmlfileread =
xmlfileopen.read()
                                                xmlfileopen.close()
                                                xmlfileread =
xmlfileread.replace('"',"&quot;")
                                                xmlfileread =
xmlfileread.replace("<","&lt;")
                                                xmlfileread =
xmlfileread.replace(">","&gt;")
</script>

While executing it is throwing error "The content of elements must consist
of well formed character data or markup."

My First question is: "Can we use XMl tags inside script element"?
Second: How too overcome this issue?

Regard's
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to