[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 "&quot;", "&gt;" and "&lt;" 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="'-?/&quot;&gt;='"/>
  | 	        <to variable="inputVariable"/>
  | 	      </copy>
  | 	    </assign>
  | 
it works and I got -?/">= as the result.
But when I replaces the "&gt;" (escaped string) with "&lt;" (escaped string)

  | 	    <assign>
  | 	      <copy>
  | 		  <from expression="'-?/&quot;&lt;='"/>
  | 	        <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 "&lt;" (escaped string) in an input.

Looks like it takes "&lt;" (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(
  | 			        '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;', 
  | 			        '&lt;Sample&gt;TEST&lt;/Sample&gt;')"/>
  | 	        <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 &quot;[xX][mM][lL]&quot
  | ; is not allowed.
  |  faultActor:
  |  faultNode:
  |  faultDetail:
  |         {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException:
  | The processing instruction target matching &quot;[xX][mM][lL]&quot; 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