KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Parsing XML messages in kdb+

  • Parsing XML messages in kdb+

    Posted by usr19031906 on December 2, 2021 at 12:00 am

    I have a table which includes an XML  column which I need to parse.

    Are there any libraries/parsers out there which I can use or do I have to do it manually?

     

    usr19031906 replied 9 months, 1 week ago 2 Members · 1 Reply
  • 1 Reply
  • Laura

    Administrator
    December 2, 2021 at 12:00 am

    Hi Alex,

    Thanks for your question!

    There is no direct way to read XML into q, however one of our KX experts  has previously shared a utility he wrote called qxml using embedPy to extract XML data into a kdb+ process.

    Another route you could take might be to use .j.k if you are able to convert the XML to JSON (which q can natively parse).

    Hope this helps!

    Thanks,

    Laura

Log in to reply.