Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Extract body, readable_date, and type attributes from XML file

Return to Member Forum

  • Author
    Posts
    • #14348957
      Jakov Smith
      Participant

      Hello everyone,

      I watch a video on how to format chat text, https://www.youtube.com/watch?v=PiVvv46Y6eE&ab_channel=InDesignSecrets
      It’s an amazing video for exported WhatsApp messages, but what for exported mobile messages?

      However, I have an XML file with more than 4000 messages in this format:
      <sms protocol=”0″ address=”+111111111111″ date=”1615582579995″ type=”1″ subject=”null” body=”my message……” toa=”null” sc_toa=”null” service_center=”+111111111111″ read=”1″ status=”-1″ locked=”0″ date_sent=”1615582589000″ readable_date=”Mar 12, 2021 11:56:19 PM” contact_name=”Ruvyan” />

      BTW, I want to create a book for these messages in chat style by using Adobe InDesign, but I found some difficulty while dealing with GREP.
      I want to extract the content of the following attributes without quotation marks, each in a new line, but in the same paragraph, in this order:
      body
      readable_date
      type

      Thank you

    • #14349655
      Lukáš Záleský
      Participant

      If you are on windows, post the XML file somewhere, it could be just a sample.

    • #14349745
      Jakov Smith
      Participant

      Thank you
      My problem was solved

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads