Is this an invalid question? I have been tried to find an answer for a few 
days. Please help by either answer it or post it in the forum.
 
Thanks,
Mike


________________________________
From: "[email protected]" <[email protected]>
To: Android Developers <[email protected]>
Sent: Monday, November 14, 2011 11:34 AM
Subject: Exception when calling SchemaFactory.newInstance on Android 4.0

I have an android 4.0 app which try to call the following as
recommended in Android SDK:
SchemaFactory sf =
SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);

This gives me the following exception:
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

Here is my code:
btnSearch.setOnClickListener(new Button.OnClickListener(){
    public void onClick(View v) {

    try{
        //no code before this line and exception threw right here.
        SchemaFactory sf =
SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);
        ....
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to