conversion of xml to java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swethak
    New Member
    • May 2008
    • 118

    conversion of xml to java

    hi,

    i am a beginner to java.i have one xml file is there.I want to retrive the data from xml file using java code.plz help me.What's the code for that.

    [xml]

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <mynotes>

    <note>

    <tasks>Valida te data</tasks>

    <details>Valida te data in SQL2005 Database with SQL managerssssssss </details>

    </note>

    <note>

    <tasks>Downlo ad Music</tasks>

    <details>Downlo ad latest music from site abc</details>

    </note>

    </mynotes>

    [/xml]
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    You can use either DOM or SAX.
    See this tutorial.

    Comment

    Working...