Cita:
Iniciado por Aquaventus Hola NetFcruz, como está estructurado tu archivo de texto?
Ok, gracias por contestar amigo.
Un cordial saludo.
Tengo en mi Richtexbox esto ACCEPTED:
Código:
-
-
-
<?xml version="1.0" encoding="utf-8"?><AckErrorApplication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" contentVersion="2.0" documentStructureVersion="AMC7.1" creationDate="20121105" documentStatus="ACCEPTED"><ackErrorApplicationIdentification><entityType>305</entityType><uniqueCreatorIdentification>31669759</uniqueCreatorIdentification></ackErrorApplicationIdentification><ApplicationInformation><deliveryDatePresent>2012-11-05</deliveryDatePresent></ApplicationInformation><ReferenceNumber><referenceIdentification>CTT</referenceIdentification><type>SE</type></ReferenceNumber><ReferenceNumber><referenceIdentification>5700</referenceIdentification><type>IV</type></ReferenceNumber><ReferenceNumber><referenceIdentification>1458649</referenceIdentification><type>ACE</type></ReferenceNumber><Buyer><nameAndAddress><name>TIENDAS SORIANA, S.A. DE C.V.</name></nameAndAddress></Buyer><Seller><nameAndAddress><name>EDITORA DEMAR, S.A. DE C.V.</name></nameAndAddress></Seller></AckErrorApplication>
-
-
-
-
Y otro con esta REJECT
Código:
-
-
-
<?xml version="1.0" encoding="utf-8"?><AckErrorApplication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" contentVersion="2.0" documentStructureVersion="AMC7.1" creationDate="20121105" documentStatus="REJECT"><ackErrorApplicationIdentification><entityType>305</entityType><uniqueCreatorIdentification>31669795</uniqueCreatorIdentification></ackErrorApplicationIdentification><ApplicationInformation><deliveryDatePresent>2012-11-05</deliveryDatePresent></ApplicationInformation><ReferenceNumber><referenceIdentification>CRT</referenceIdentification><type>SE</type></ReferenceNumber><ReferenceNumber><referenceIdentification>7652</referenceIdentification><type>IV</type></ReferenceNumber><Buyer><nameAndAddress><name>TIENDAS SORIANA, S.A. DE C.V.</name></nameAndAddress></Buyer><Seller><nameAndAddress><name>EDITORA DEMAR, S.A. DE C.V.</name></nameAndAddress></Seller><messageError sequence="1"><errorCode>APLICATION ERROR CODE</errorCode><errorDescription><text>Error al Notificar a SuperCity. Server was unable to process request. ---> La orden ya ha sido documentada en otra factura.</text></errorDescription></messageError></AckErrorApplication>
-
-
-
Quiero extraer la palabra Acepted o Reject de ese texto contenido en el RTexbox y una vez obtenida depositarla a una variable que tenga definida string.