How to parse org.w3c.dom.Element RPX XML response

Posted by Kenshin on Stack Overflow See other posts from Stack Overflow or by Kenshin
Published on 2010-05-18T05:27:49Z Indexed on 2010/05/18 5:30 UTC
Read the original article Hit count: 436

Filed under:
|

I am using rpxnow in Java, how do I use org.w3c.dom API to get the field identifier in this XML reponse for example?

<?xml version='1.0' encoding='UTF-8'?>
    <rsp stat='ok'>
      <profile>
        <displayName>
          brian
        </displayName>
        <identifier>
          http://brian.myopenid.com/
        </identifier>
        <preferredUsername>
          brian
        </preferredUsername>
        <providerName>
          Other
        </providerName>
        <url>
          http://brian.myopenid.com/
        </url>
      </profile>
    </rsp>

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml