Results 1 to 4 of 4

Thread: XML Parser?

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Resolved XML Parser?

    Does anyone know what name space i have to import in order to be able to use a SAXParser? Ive been reading an old book on xml that came out in June 2000. The author has stuff that looks like its been changed since. For instance he shows two imports and creates a new instance of a Parser.
    Code:
    import org.xml.sax.XMLReader;
    import org.apache.xerces.parsers.SAXParser;
    
    XMLReader parser = new SAXParser( );
    The import for the XMLReader seems to be correct but the SAXParser is in java.xml.parser. I would think the class SAXParser would be in the org.xml.sax namspace.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width