title: String to XML - OSB
body: <p>I am trying to convert the contents of a file to a XML, which I can work on within my proxy. The problem is that I am using the inlinedXML function, which is supposed to return a structure that I can work on, using XPaths and XQueries, but instead I get ´|>, when I apply it on the XML structure below.</p>
  
  <pre><code>&lt;SpecialChars&gt;
    &lt;ListOfChars&gt;
      &lt;Char&gt;´&lt;/Char&gt;
      &lt;Char&gt;|&lt;/Char&gt;
    &lt;/ListOfChars&gt;
  &lt;/SpecialChars&gt;
  </code></pre>
  
  <p>And when I try to use an XPath expression on it, I get the following errors:</p>
  
  <pre><code>`&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Error&gt; `&lt;`OSB Kernel&gt; `&lt;`BEA-382004&gt; `&lt;`Failed to process request message for service ProxyService OSB/test: com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
  com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.stages.expressions.xquery.XQueryExprExecutor.executeJavaObject(XQueryExprExecutor.java:138)
    at stages.logging.runtime.LogRuntimeStep.processMessage(LogRuntimeStep.java:123)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    Truncated. see log file for complete stacktrace
  Caused By: weblogic.xml.query.exceptions.XQueryTypeException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:95)
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:134)
    at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:189)
    at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:133)
    at weblogic.xml.query.runtime.navigation.ChildPath.fetchNext(ChildPath.java:159)
    Truncated. see log file for complete stacktrace
  &gt;
  `&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Error&gt; `&lt;`OSB Kernel&gt; `&lt;`BEA-380003&gt; `&lt;`Exception on TransportManagerImpl.receiveMessage, com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
  com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.stages.expressions.xquery.XQueryExprExecutor.executeJavaObject(XQueryExprExecutor.java:138)
    at stages.logging.runtime.LogRuntimeStep.processMessage(LogRuntimeStep.java:123)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    Truncated. see log file for complete stacktrace
  Caused By: weblogic.xml.query.exceptions.XQueryTypeException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:95)
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:134)
    at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:189)
    at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:133)
    at weblogic.xml.query.runtime.navigation.ChildPath.fetchNext(ChildPath.java:159)
    Truncated. see log file for complete stacktrace
  &gt;
  `&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Warning&gt; `&lt;`EJB&gt; `&lt;`BEA-010065&gt; `&lt;`MessageDrivenBean threw an Exception in onMessage(). The exception was:
  javax.ejb.EJBException: nested exception is: com.bea.wli.sb.transports.TransportException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node.
  javax.ejb.EJBException: nested exception is: com.bea.wli.sb.transports.TransportException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.__onMessage(PolledMessageListenerMDB.java:55)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.access$000(PolledMessageListenerMDB.java:31)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB$1.run(PolledMessageListenerMDB.java:41)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB$1.run(PolledMessageListenerMDB.java:39)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    Truncated. see log file for complete stacktrace
  &gt;
  `&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Warning&gt; `&lt;`EJB&gt; `&lt;`BEA-010065&gt; `&lt;`MessageDrivenBean threw an Exception in onMessage(). The exception was:
  javax.ejb.EJBException: nested exception is: com.bea.wli.sb.transports.TransportException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node.
  javax.ejb.EJBException: nested exception is: com.bea.wli.sb.transports.TransportException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.__onMessage(PolledMessageListenerMDB.java:55)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.access$000(PolledMessageListenerMDB.java:31)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB$1.run(PolledMessageListenerMDB.java:41)
    at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB$1.run(PolledMessageListenerMDB.java:39)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    Truncated. see log file for complete stacktrace
  &gt;
  ******************** START DUMP GlobalOperationsPOJO **********************
  `&lt;xml-fragment xmlns:con="http://www.bea.com/wli/domain/config"&gt;&lt;con:monitoring&gt;true&lt;/con:monitoring&gt;&lt;con:reporting&gt;true&lt;/con:reporting&gt;&lt;con:logging&gt;true&lt;/con:logging&gt;&lt;con:sla-alerting&gt;true&lt;/con:sla-alerting&gt;&lt;con:pipeline-alerting&gt;true&lt;/con:pipeline-alerting&gt;&lt;con:result-caching&gt;true&lt;/con:result-caching&gt;&lt;/xml-fragment&gt;`
  ******************** END DUMP GlobalOperationsPOJO **********************
  `&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Error&gt; `&lt;`OSB Kernel&gt; `&lt;`BEA-382004&gt; `&lt;`Failed to process request message for service ProxyService OSB/test: com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
  com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.stages.expressions.xquery.XQueryExprExecutor.executeJavaObject(XQueryExprExecutor.java:138)
    at stages.logging.runtime.LogRuntimeStep.processMessage(LogRuntimeStep.java:123)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    Truncated. see log file for complete stacktrace
  Caused By: weblogic.xml.query.exceptions.XQueryTypeException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:95)
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:134)
    at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:189)
    at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:133)
    at weblogic.xml.query.runtime.navigation.ChildPath.fetchNext(ChildPath.java:159)
    Truncated. see log file for complete stacktrace
  &gt;
  `&lt;`May 29, 2014 12:02:43 PM BRT&gt; `&lt;`Error&gt; `&lt;`OSB Kernel&gt; `&lt;`BEA-380003&gt; `&lt;`Exception on TransportManagerImpl.receiveMessage, com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
  com.bea.wli.sb.stages.StageException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at com.bea.wli.sb.stages.expressions.xquery.XQueryExprExecutor.executeJavaObject(XQueryExprExecutor.java:138)
    at stages.logging.runtime.LogRuntimeStep.processMessage(LogRuntimeStep.java:123)
    at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    Truncated. see log file for complete stacktrace
  Caused By: weblogic.xml.query.exceptions.XQueryTypeException: line 1, column 7: {err}XP0006: "´| ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:95)
    at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:134)
    at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:189)
    at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:133)
    at weblogic.xml.query.runtime.navigation.ChildPath.fetchNext(ChildPath.java:159)
    Truncated. see log file for complete stacktrace
  </code></pre>
  
  <p>I am asking how to be able to work on a string, that has been converted into an XML, the same way I work on XMLs that are received as requests in my service. When I apply inlinedXML on the string, I cannot work on it as an XML, trying to print the XML, I can only see the content of the original string.</p>