[Home] [By Thread] [By Date] [Recent Entries]


Anil Philip <goodnewsforyou@y...> writes:

>   It is not clear to me how to make the SAX parser, "ignore everything that's not in that Namespace". Can you please clarify?
>   thanks,
>   Anil

the parser isn't going to ignore anything.  your ContentHandler,
methods on which are going to be called by the parser, is going to do
the ignoring.

that is, something like

 class MyHandler implements ContentHandler {

   public void startElement(String uri, String local, 
                            String qname, Attributes attrs) {

     if (uri.equals("urn:the-namespace")) {
        doSomething();
     }
   }
 }

I don't know exactly how this relates to your original problem, which
I couldn't really understand from your description.

-- 

joe

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member