This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes xml:lang in faultstring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "xml:lang in faultstring" Watch "xml:lang in faultstring" New topic
Author

xml:lang in faultstring

Jan Kostelansky
Greenhorn

Joined: Nov 24, 2005
Posts: 11
Hi,
based on RMH page 117 it is possible to define language for fault string using xml:lang attribute as follows


However when I try to parse this code with DOM parser in JSE 5 I got this exception

DO you have any idea what's going wrong. I am building DOM in following code


Thank you, Jan


Jan
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
xml:lang attribute is allowed in <faultString> tag.
Usually we don't define xml prefix and namespace explicitly as it is bound to special namespace..
Try to declare xml namespace as below.
xmlns:xml="http://www.w3.org/XML/1998/namespace"
and see whether you should be able to get through or not?


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Jan Kostelansky
Greenhorn

Joined: Nov 24, 2005
Posts: 11
Thank you for answer
I added namespace declaration for xml namespace, but got the same result
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml:lang in faultstring