[jboss-user] [JBoss jBPM] - Re: BPEL beta2 - special characters and XML
wugf
do-not-reply at jboss.com
Fri Oct 27 11:42:48 EDT 2006
Alex, I did use escaped strings """, ">" and "<" for the double-quote character ("), the right angle bracket (>) and the left angle bracket (<), respectively, in my testing. I don't know why they are changed to their literal form, even I Previewed them to make sure they were escaped strings before Submit. (I checked the 3 boxes to disable HTML, BBCode and Smilies, but on left side, the Options always show them ON)
Here I re-submit again:
----------------------------------------------
I try to assign some special characters as input value, for example
| <assign>
| <copy>
| <from expression="'-?/">='"/>
| <to variable="inputVariable"/>
| </copy>
| </assign>
|
it works and I got -?/">= as the result.
But when I replaces the ">" (escaped string) with "<" (escaped string)
| <assign>
| <copy>
| <from expression="'-?/"<='"/>
| <to variable=" inputVariable"/>
| </copy>
| </assign>
|
I got the following error message:
anonymous wrote :
| AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: The content of elements must consist of well-formed character data
| or markup.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
| The content of elements must consist of well-formed character data or markup.
|
So my first question is how to assign "<" (escaped string) in an input.
Looks like it takes "<" (escaped string) as starting a markup, my second question is how to assign XML as an input value.
For example, I need to assign this as an input:
| <?xml version="1.0" encoding="UTF-8"?><Sample>TEST</Sample>
|
I try
| <assign>
| <copy>
| <from expression="concat(
| '<?xml version="1.0" encoding="UTF-8"?>',
| '<Sample>TEST</Sample>')"/>
| <to variable=" inputVariable"/>
| </copy>
| </assign>
|
But I got error message:
anonymous wrote :
| AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: The processing instruction target matching "[xX][mM][lL]"
| ; is not allowed.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
| The processing instruction target matching "[xX][mM][lL]" is not allow
| ed.
|
Please shed some lights on this. Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981344#3981344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981344
More information about the jboss-user
mailing list