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
  • 1
    xmlstarlet: command not found, so this command is not useful to me :( Commented Jul 17, 2013 at 15:31
  • 2
    @MagePsycho bash does not have any built-in support for XML parsing. You either need to have a tool that does (xmlstarlet, xsltproc, a modern Python, etc), or you can't parse XML correctly. Commented Jul 17, 2013 at 15:48
  • @CharlesDuffy is there a way to get the value may be using regex pattern or else? Commented Jul 17, 2013 at 15:51
  • 6
    @MagePsycho you can just install xmlstarlet. In any case, you should never use regular expressions to parse (X)HTML. Commented Jul 17, 2013 at 15:57
  • 1
    @MagePsycho I was about to post the same link terdon already did. In short: No. Commented Jul 17, 2013 at 16:05