1 Reply Latest reply on Oct 26, 2010 1:21 PM by Flex harUI

    How to change xml namespace (prefix and uri) ?

    Alex Luthor

      I have a xml file like this

       

      <?xml version="1.0" encoding="iso-8859-1"?>

       

      <ans:mensagemTISS

      xmlns:ans="http://www.ans.gov.br/padroes/tiss/schemas"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.ans.gov.br/padroes/tiss/schemas http://www.ans.gov.br/padroes/tiss/schemas/tissV2_01_01.xsd">

       

      ...

       

      i want to change it, for example, to this

       

      <newNamespace:mensagemTiSS

      xmlns:newNamespace="http://www.ans.gov.br/padroes/tiss/schemas"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.ans.gov.br/padroes/tiss/schemas http://www.ans.gov.br/padroes/tiss/schemas/tissV2_01_01.xsd">

       

      thanks.