我有一个带有' - >'的.txt制表符分隔文件(十六进制值0x1A)在其中一列(F45)中。有没有办法在将其转换为xml到我的注释部分之前跳过或转换该值。当我尝试解析十六进制值然后将xml发送到我的Web服务地址时,我收到此错误
exception.InnerException.ToString(): System.ArgumentException: ' ', hexadecimal value 0x1A, is an invalid character. sent to my web service address. (after parsing)
这是我目前的xslt
<xsl:strip-space elements="ACode AReceived" />
<xsl:template match="/">
<soap:Envelope xsl:version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Report xmlns="http://blank.com">
<DispatchHeader>
<Notes>
<xsl:if test="string-length(/NewDataSet/Row[F1='INCI']/F45)>0">
<Note>
<xsl:value-of select="/NewDataSet/Row[F1='INCI']/F45"/>
</Note>
<Notes>
感谢您的帮助 新秀乔希