Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

  • Academy Rocketbot
  • Tutorials
  • Documentación
Search
Ask A Question

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 4004
Next
Answered

Rocketbot Forum Latest Questions

cgarzah
  • 0
  • 0
cgarzah
Asked: August 3, 20212021-08-03T23:48:15+00:00 2021-08-03T23:48:15+00:00In: Academy

factura xml

  • 0
  • 0

Hola Tengo este tipo de factura XML

{‘cfdi:Comprobante’: {‘@xmlns:cfdi’: ‘http://www.sat.gob.mx/cfd/3’, ‘@xmlns:xs’: ‘http://www.w3.org/2001/XMLSchema’, ‘@xmlns:xsi’: ‘http://www.w3.org/2001/XMLSchema-instance’, ‘@xsi:schemaLocation’: ‘http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd‘, ‘@Version’: ‘3.3’, ‘@Folio’: ‘279564’, ‘@Fecha’: ‘2021-08-02T13:36:31’, ‘russellotz’:

estoy tratando de leer el Folio, previo guarde el dato del archivo xml en la variable “resultado”
pero al usar el comando asignar variable de la sig manera:
{resultado}.[“folio”] o {resultado}.[“@folio”]
me da error de sintaxis

question
4
  • 4 4 Answers
  • 4k Views
  • 0 Followers
  • 0
Share
  • Facebook

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. Bender
      Best Answer
      Bender
      2021-08-05T13:38:09+00:00Added an answer on August 5, 2021 at 1:38 pm

      Hola cgarzah,

      Debes primero entrar a cfdi:Comprobante y luego puedes acceder a @Folio, sería así:

      {resultado}['cfdi:Comprobante']['@Folio']

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • cgarzah
        cgarzah
        2021-08-05T16:21:01+00:00Replied to answer on August 5, 2021 at 4:21 pm

        Listo , si me funcionó grx…

          • 0
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
    2. A16
      A16
      2021-08-05T13:38:48+00:00Added an answer on August 5, 2021 at 1:38 pm
      This answer was edited.

      Hola cgarzah

      Te recomimendo utilizar este módulo, así puedes acceder a las etiquetas directamente

      https://market.rocketbot.co/?142#/module/XML

      Respecto a tu error, no debes usar puntos para acceder a los valores, esta es la sintaxis correcta

      {resultado}['cfdi:Comprobante'][“@Folio”]

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • cgarzah
        cgarzah
        2021-08-05T16:19:59+00:00Replied to answer on August 5, 2021 at 4:19 pm

        perfecto , si me funcionó  grx..

          • 0
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 5k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answer: 1

      Error al iniciar Rocketbot

      • Answers: 0

      Error al conectar a BD oracle

      • Answers: 4

      error al ahcer click en objeto

      • Answers: 3

      Without access to Academy Rocketbot and its courses

      • Answers: 3

      Bot final Level 2

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.