Jump to content

marco perez

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About marco perez

  • Rank
    Newbie
  1. I have a doubt about the use of JDOM parsing a xml document. The outcome is not what I expect..I did the next program to parse a xml document. I have considered that the root of the document id the element bodyimport org.jdom.*;import org.jdom.input.SAXBuilder;import org.jdom.output.*;import java.io.File;import java.io.IOException;import java.util.*;public class Ex04 { public static void main(String[] args) { String filename = "Test.xml"; SAXBuilder b = new SAXBuilder(); try { Document doc = b.build(new File(filename)); Element root = doc.getRootElement(
  2. Hi,I have to do a Java program to create an HTML element tree structure of any HTML document. Someone suggest me JDOM, but it seems that this api demands that I know previously the structure of the XML (I'd have to convert to xml)Do you advice me any other api or approach to from any html document, save its structure and accede to any elementThankxMP
×
×
  • Create New...