How to parse <Question id="20070817220603AArOZiY" type="Answered">

Discussion in 'XML & RSS' started by Luke Jones, Sep 2, 2007.

  1. #1
    Hello,
    How do I parse this xml line:
    <Question id="20070817220603AArOZiY" type="Answered">
    Using xml->Question id as $item doesn't work as the space after Question breaks the script.
    How do I parse it?

    Thanks,

    Luke
     
    Luke Jones, Sep 2, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    You're parsing with ? ... Example: with XPATH that item would be:
    //Question[@id='20070817220603AArOZiY']
     
    ajsa52, Sep 4, 2007 IP