Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Is it XML or HTML? Commented Oct 11, 2023 at 4:36
  • Hi, it is XML.. Commented Oct 11, 2023 at 4:37
  • 1
    Can you share a valid XML sample with closing nodes? I will share how to parse XML properly. And add your expected output. Please, edit your post accordingly. Tools to parse XML in a shell: xidel, xmlstarlet, xmllint Commented Oct 11, 2023 at 5:04
  • 1
    Hi Gilles, correct me if I'm wrong, but do we need xmlparser here? Is there no way to just read till the character "&", and copy that text to another file? Commented Oct 11, 2023 at 5:11
  • We don't have sufficient information, I made recommendations Commented Oct 11, 2023 at 5:13