Hello,
New user and looking forward to learning Alteryx. Looking for suggestions on how to import the attached XML file:
I've tried the input data as XML and CSV, however, I'm stuck. I have outer XML files types to define, so I thought I'd post to see what the community thinks.
Thanks,
-Joe
Hi @joesparty
There isn't a "one size fits all" answer to parsing XML files, since the internal structure of any element can vary. For lots of different ways of parsing XML, check out Weekly Challenge 161 A Symphony of Parsing tools
Dan
Hi @danilang,
Thanks for the link, there are some great solutions posted. I think the issue I'm having with the XML parse tool is that the file isn't formatted as a true XML. In the attached:
you can sort out between your two different record types by setting a filter with REGEX_Match([name],"\d+") - not sure about your member embedded xml field though. Can't get Alteryx to dynamically choose that one.
Yes getting Alteryx to dynamically define the file is the issue. Does anyone have a preferred regex converter website?
I've been able to make some progress and looking to get this across the line. Using the option to define as a CSV I've been able to get a RegEx to work. The goal is to extract the Device fields until the first TypeEnd=</devices>. I was trying to use the Summarize with a First option, but it didn't work.
So the answer should be RecordID 4 - 48, then filter for !IsNull(Devices).