List Info

Thread: Re: aggregate-fallback bug and improvement suggestions..




Re: aggregate-fallback bug and improvement suggestions..
country flaguser name
Switzerland
2007-02-26 09:07:00
Andreas Hartmann schrieb:

[...]

>> Element docElement =
sourceDom.getDocumentElement();
>> if (this.dom == null) {
>>     String namespaceUri =
docElement.getNamespaceURI();
>>     String prefix = docElement.getPrefix();
>>     String localName = docElement.getLocalName();
>>
>>     if (namespaceUri == null || prefix == null) {
>>        this.dom =
DocumentHelper.createDocument(null, localName, null);
>>     } else {
>>         NamespaceHelper helper = new
NamespaceHelper(namespaceUri,
>>                                             
prefix,localName);
>>         this.dom = helper.getDocument();
>>     }
>>
>> if the source document uses a default namespace,
prefix will probably be
>> null.
> 
> Actually it should be an emtpy string.

You were right, it is officially null 
I changed it in your branch.

-- Andreas


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )