Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Namespace Feature in FastInfoset SAXDocumentParser

Thread view: 
au714@osfn.org - 27 Dec 2005 23:55 GMT
I'm trying to set the Namespace Feature in a FastInfoset
SAXDocumentParser.  Seems simple enough.

I get a org.xml.sax.SAXNotSupportedException when I run the following
code:

public class FastInfosetTest {
 public static void main(String[] args) {
   try {
     XMLReader saxReader = new SAXDocumentParser();
     saxReader.setFeature(Features.NAMESPACES_FEATURE, true);
   }
   catch (Exception ex) {
     ex.printStackTrace();
   }
 }
}

I welcome any ideas.

FGB
au714@osfn.org - 29 Dec 2005 15:39 GMT
I'll answer my own question...

SAXDocumentParser.setFeature() is coded to throw the exception when
called as in:
setFeature(Features.NAMESPACES_FEATURE, true);

So it works as coded.

> I'm trying to set the Namespace Feature in a FastInfoset
> SAXDocumentParser.  Seems simple enough.
[quoted text clipped - 17 lines]
>
> FGB


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.