As you can see the order is different on the two lines (on the first one, there is “step type” then “name” then "description and finally “disable”, this is all I need, and on the second it is “step type” then “name” then “disable” and “description” is at the end).
When you post code, error messages, sample data or console output format it as code, please.
In the “Text” view you can use the code tags “PRE”, in the “Visual” view you can use the format template “Preformatted”. You can go back edit your post and fix the formatting - you don’t have to create a new one.
Thanks in advance.
If your file is a proper XML file you don’t have to use - actually you should not use - regex to get nodes, attributes, names, properties or information in general from an XML file.
If you like to post XML content you should use an external service like Github Gist because the forum software here does not handle xml content gracefully.