best linux util for parsing xml data?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #1

    best linux util for parsing xml data?

    curious what you guys use currently im just using grep,sed and wget to grab images from a wordpress export and grabbing them. if i can get rid of grep and sed from the equation would be neat.

    Code:
    grep '<wp:attachment_url>' export.xml | sed -e 's/<wp:attachment_url>\(.*\)<\/wp:attachment_url>/\1/;s/^[ \t]*//' | sed '$!N; /^\(.*\)\n\1$/!P; D' | xargs wget -q
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
Working...