Jeferson 

"Se vc estiver tentando cria um XMLReader atrav�s do
m�todo XMLReaderFactory.createXMLReader()significa que
vc est� procurando a class para fazer o parser
buscando o valor de uma system property chamada
"org.xml.sax.driver". Caso esta valor seja null a
classe n�o ser� instanciada."

OK. Acontece que eu n�o estou passando nem null.
Veja a classe abaixo:

import org.xml.sax.*;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xml.sax.helpers.DefaultHandler;

import java.io.*;


public class ExtractorDriver {

  public static void main(String[] args) {
      
    if (args.length <= 0) {
      System.out.println(
       "Usage: java ExtractorDriver url"
      );
      return;
    }
          
    try {
      XMLReader parser =
XMLReaderFactory.createXMLReader();
      
      // Since this just writes onto the console, it's
best
      // to use the system default encoding, which is
what
      // we get by not specifying an explicit encoding
here.
      Writer out = new OutputStreamWriter(System.out);
      ContentHandler handler = new TextExtractor(out);
      parser.setContentHandler(handler);
    
      parser.parse(args[0]);
      
      out.flush();
    }
    catch (Exception e) {
      System.err.println(e); 
    }
  
  } 

}

Muito obrigado
Kleber R. de Carvalho

--- Jeferson Alexander
<[EMAIL PROTECTED]> wrote:
> Kleber, 
> 
> Se vc estiver tentando cria um XMLReader atrav�s do
> m�todo
> XMLReaderFactory.createXMLReader()
> significa que vc est� procurando a class para fazer
> o parser buscando o 
> valor de uma system property chamada
> "org.xml.sax.driver". Caso esta valor 
> seja null a classe n�o ser� instanciada. 
> 
> Existe um outro m�todo
> XMLReaderFactory.createXMLReader(vendorParserClass)
> no qual � passado um parametro explicitando qual o
> parser que vc quer 
> utilizar. Eu utilizo o parser XERCES do projeto
> apache xml. A string que eu 
> passo � "org.apache.xerces.parsers.SAXParser" 
> 
> Espero que tenha ajudado...
>               
> Abra�os,
> Jeferson Alexander 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Para cancelar a subscri��o, envie mensagem para: 
[EMAIL PROTECTED]
Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]

Responder a