--Escape de caracteres al crear xml de cancelacion en el PAC 5
This commit is contained in:
@@ -865,7 +865,7 @@ Public Class Timbrado
|
|||||||
<usuario xmlns="""">{UsuarioServicio}</usuario>
|
<usuario xmlns="""">{UsuarioServicio}</usuario>
|
||||||
<passwd xmlns="""">{PassServicio}</passwd>
|
<passwd xmlns="""">{PassServicio}</passwd>
|
||||||
<rfcEmisor xmlns="""">{rfcEmisor}</rfcEmisor>
|
<rfcEmisor xmlns="""">{rfcEmisor}</rfcEmisor>
|
||||||
<arregloUUID xmlns="""">{arregloUUID}|{rfcReceptor}|{rfcEmisor}|{Total}|{MotivoCancelacion}|{FolioSustitucion}</arregloUUID>
|
<arregloUUID xmlns="""">{arregloUUID}|{rfcReceptor.ToEscapeXML()}|{rfcEmisor.ToEscapeXML()}|{Total}|{MotivoCancelacion}|{FolioSustitucion}</arregloUUID>
|
||||||
<cert xmlns="""">{certBase64}</cert>
|
<cert xmlns="""">{certBase64}</cert>
|
||||||
<key xmlns="""">{keyBase64}</key>
|
<key xmlns="""">{keyBase64}</key>
|
||||||
<keyPass xmlns="""">{keyPass}</keyPass>
|
<keyPass xmlns="""">{keyPass}</keyPass>
|
||||||
|
|||||||
@@ -3960,6 +3960,19 @@ Namespace Extensiones
|
|||||||
|
|
||||||
Return text
|
Return text
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
<Runtime.CompilerServices.Extension()>
|
||||||
|
Function ToEscapeXML(ByVal str As String) As String
|
||||||
|
Dim text As String = ""
|
||||||
|
|
||||||
|
text = str.Replace("'", "'")
|
||||||
|
text = str.Replace("<", "<")
|
||||||
|
text = str.Replace(">", ">")
|
||||||
|
text = str.Replace("&", "&")
|
||||||
|
|
||||||
|
Return text
|
||||||
|
End Function
|
||||||
End Module
|
End Module
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user