logo       

default namespace for elements in no namespace: msg#00017

java.enhydra.kxml

Subject: default namespace for elements in no namespace

Hi,

I try to parse un xml file which contains elements with default namespace = "".

Ex:

<DocumentsList xmlns="">
<Documents diffgr:id="Documents1" msdata:rowOrder="0" diffgr:hasChanges="inserted" storageMode="ModeFilesStorage" status="Inbox" msdata:hiddenDocuments_Id="0"/>
</DocumentsList>

I receive the IllegalStateException("Cannot set default namespace for elements in no namespace"). The problem is that I don't have any control on the xml file, so how can I parse this file?

Thanks,

Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise