37,743
社区成员
发帖
与我相关
我的任务
分享descvalue=textInfo[descBeginPos+2:len(textInfo)]
descvalue=r'<![CDATA['+descvalue+']]>'
desctext=doc.createTextNode(descvalue)
desc.appendChild(desctext)doc.toprettyxml() 转义时已经成了<desc>
<![CDATA[ Ignoring return value of function 'ucSetBtsExtAttrOfVqi(_ARM_VQI *, unsigned char, unsigned char **, unsigned char *)' (compare with line 57, file E:\UT_TMU\TTMU_LAST_OK_VER_NEW\TTMU\appmodule\attrmsg.h, module E:\UT_TMU\TTMU_LAST_OK_VER_NEW\TTMU\DOWNMSG.C)]]>
</desc>doc.createCDATASection(descvalue)