Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Remove xml nodes

Last post 07-05-2012, 4:26 PM by orland. 2 replies.
Sort Posts: Previous Next
  •  07-03-2012, 12:33 PM 23778

    Remove xml nodes

    Good day,

    I am trying to remove all nodes "Application" in the XML file from Nintex, I have tried with XML Update action but has not been possible, I have traveled the XML to replace all the children of the node "ROOT" by a space, but I could not solve the problem.

    The idea is to have a single XML each time you start the workflow delete the above information and stores the new.

    Any idea how to do this from Nintex.

    I appreciate any help.

    regards,
     
    <?xml version="1.0" encoding="utf-8"?>
     <Root>
      <Solicitud>
        <ID>1</ID>
        <FechaRadicacion>2012-06-13</FechaRadicacion>
        <HoraRadicacion>18:00</HoraRadicacion>
        <UsuarioResponsable>CDE</UsuarioResponsable>
        <Cuenta>8888888</Cuenta>
        <TipoSolicitud>BBB</TipoSolicitud>
        <Cedula>1234567890</Cedula>
        <RadicadoSolicitud>000234</RadicadoSolicitud>
        <FechaAtencionDeLaSolicitud>2012-06-13</FechaAtencionDeLaSolicitud>
        <HoraAtencionDeLaSolicitud>18:00</HoraAtencionDeLaSolicitud>
        <ResultadoValidacion>Rechazada</ResultadoValidacion>
      </Solicitud>
      <Solicitud>
        <ID>2</ID>
        <FechaRadicacion>2012-06-13</FechaRadicacion>
        <HoraRadicacion>18:00</HoraRadicacion>
        <UsuarioResponsable>CDE</UsuarioResponsable>
        <Cuenta>8888888</Cuenta>
        <TipoSolicitud>BBB</TipoSolicitud>
        <Cedula>1234567890</Cedula>
        <RadicadoSolicitud>000234</RadicadoSolicitud>
        <FechaAtencionDeLaSolicitud>2012-06-13</FechaAtencionDeLaSolicitud>
        <HoraAtencionDeLaSolicitud>18:00</HoraAtencionDeLaSolicitud>
        <ResultadoValidacion>Rechazada</ResultadoValidacion>
      </Solicitud>  
      <Solicitud>
        <ID>3</ID>
        <FechaRadicacion>2012-06-13</FechaRadicacion>
        <HoraRadicacion>18:00</HoraRadicacion>
        <UsuarioResponsable>CDE</UsuarioResponsable>
        <Cuenta>8888888</Cuenta>
        <TipoSolicitud>BBB</TipoSolicitud>
        <Cedula>1234567890</Cedula>
        <RadicadoSolicitud>000234</RadicadoSolicitud>
        <FechaAtencionDeLaSolicitud>2012-06-13</FechaAtencionDeLaSolicitud>
        <HoraAtencionDeLaSolicitud>18:00</HoraAtencionDeLaSolicitud>
        <ResultadoValidacion>Rechazada</ResultadoValidacion>
      </Solicitud>
       <Solicitud>
        <ID>4</ID>
        <FechaRadicacion>2012-06-13</FechaRadicacion>
        <HoraRadicacion>18:00</HoraRadicacion>
        <UsuarioResponsable>CDE</UsuarioResponsable>
        <Cuenta>8888888</Cuenta>
        <TipoSolicitud>BBB</TipoSolicitud>
        <Cedula>1234567890</Cedula>
        <RadicadoSolicitud>000234</RadicadoSolicitud>
        <FechaAtencionDeLaSolicitud>2012-06-13</FechaAtencionDeLaSolicitud>
        <HoraAtencionDeLaSolicitud>18:00</HoraAtencionDeLaSolicitud>
        <ResultadoValidacion>Rechazada</ResultadoValidacion>
      </Solicitud> 
     </Root> 
     
  •  07-03-2012, 10:15 PM 23786 in reply to 23778

    Re: Remove xml nodes

    Hi,

    Looking at the XML we dont see the exact section you wish to remove, can you polease be more specific?

    Also, how have you configured the update XML action to this point?

    The solution will definately involve this action, you may need to query the XML initially and remove all the application sections using a regular expression action. You can then configure a new update XML action and specify the exact XML as the source and then just create a new item or update the existing item with this XML. Just leave the XPATH to point to any xml node but make no change.

  •  07-05-2012, 4:26 PM 23837 in reply to 23786

    Re: Remove xml nodes

    Hi Peter,

    Nodes that were needed to eliminate those who were within "ROOT", but the solution was implemented using Web Service "Copy.asmx" with which replaced the existing file with one that only contains the node "ROOT" and I can admit you like this new information, but if you know a better solution would be great to know.

    Thank you,
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems