Michael Glavassevich | 6 May 2008 04:14
Picon

May Board Report

Hey all,

Got the initial reminder from Gareth that we're due for our quarterly report to the Apache board. A Wiki page is setup for the report here: http://wiki.apache.org/xerces/May2008.

As usual I'll take care of Xerces-J and XML Commons. Could other committers please fill in the status for Xerces-C and Xerces-P.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas <at> ca.ibm.com
E-mail: mrglavas <at> apache.org

Lev Lvovsky | 7 May 2008 07:02

parsing SOAP server response

I'm attempting to parse a SOAP response with Xerces, and things are  
looking fine but for the encodingStyle attribute of the 'Envelope'  
element.

The beginning of a SOAP envelope is something like this:

---
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP- 
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema 
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- 
ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body>...
---

I grabbed the Schema file for the envelope here from http://schemas.xmlsoap.org/soap/encoding/ 
  (BTW, how can I tell Xerces to get '/' if there is no actual server  
file name associated with a URL?), named it 'soap-envelope.xsd', and  
setExternalSchemaLocation() to be 'http://schemas.xmlsoap.org/soap/envelope/ 
  soap-envelope.xsd'.

Upon parsing the response, I get a validation error:

Attribute '{http://schemas.xmlsoap.org/soap/envelope/}encodingStyle'  
is not declared for element 'Envelope'.

If I add the 'http://schemas.xmlsoap.org/soap/encoding/ soap- 
encoding.xsd' string to the setExternalSchemaLocation call, it  
complains upon parsing the encoding Schema file.

Removing the attribute from the XML allows parsing subsequently - I'm  
sure there's something basic that I'm missing here - any pointers?

Thank you!
-lev
Lev Lvovsky | 7 May 2008 21:49

getLocalName vs. getNodeName

Is it correct to assume that the getLocalName method will return null  
on a DOMElement object unless a Schema has been specified?  For a very  
simple XML test file, getNodeName returns what it should, however  
getLocalName returns null.  Testing with an XML file for which the  
Schema is supplied, getLocalName works fine.

Otherwise, is there any other reason why this might be happening?

thanks!
-lev

Gmane