Hi,

I found that changing a setting of 
"http://xml.org/sax/features/namespace-prefixes"; to "true" (was "false") in 
org.jboss.axis.utils.XMLUtils.java of JBossAS 4.0.3SP1 can make the following 
codes work(I mean I can get "xxxxx" instead of null).


  | String XML_SCHEMA_NS = "xmlns"
  | String nameSpace = element.getAttribute(HandlerNames.XML_SCHEMA_NS);
  | 

My understanding is that a reson of the original "false" setting is according 
to 
http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/Attributes.html saying 
anonymous wrote : It will also not contain attributes used as Namespace 
declarations (xmlns*) unless the http://xml.org/sax/features/namespace-prefixes 
feature is set to true (it is false by default).

A few questions.

[Q3] Is my understanding correct? Or any other reason of "false" setting of 
http://xml.org/sax/features/namespace-prefixes?

[Q4] Is there any configuration option in *.xml or *.properties in 
JBossAS(actually JBossWS or JBossWS2EE) to change the setting instead of 
changing the source code?

Thanks,
Shu


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944833#3944833

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944833


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to