[Fwd: default namespace for elements in no namespace]
Stefan Haustein <[email protected]> Wed, 26 Nov 2003 16:43:36 +0100
| Newsgroups | gmane.comp.java.enhydra.kxml,gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------050201010508080702030803
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi Simon,
I do not fully understand the problem. To my understanding, the Exception is a
Serializer exception, not a parser exception....? Can you provide some more
information?
I think the problem may be that the kxml serializer does not recognize that
there is no contradiction in that special case. It may make sense to add this
explicitly to the test case... I think I have now fixed this in the current CVS
version (it will take some hours until it is available via the SF web
interface at http://cvs.sourceforge.net/viewcvs.py/kxml/kxml2/src/org/kxml2/io/
Best regards
Stefan
Simon Belanger wrote:
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
--------------050201010508080702030803
Content-Type: message/rfc822;
name="Kxml: default namespace for elements in no namespace"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Kxml: default namespace for elements in no namespace"
Return-Path: <[email protected]>
Received: from postamt.cs.uni-dortmund.de ([unix socket])
by postamt (Cyrus v2.1.13) with LMTP; Tue, 25 Nov 2003 23:04:26 +0100
X-Sieve: CMU Sieve 2.2
Received: from postamt.cs.uni-dortmund.de (localhost [127.0.0.1])
by postamt.cs.uni-dortmund.de (8.12.5/8.12.5) with ESMTP id hAPM4BQT002339
for <[email protected]>; Tue, 25 Nov 2003 23:04:11 +0100 (MET)
Received: from kimo.cs.uni-dortmund.de (kimo [129.217.30.50])
by postamt.cs.uni-dortmund.de (8.12.5/8.12.5) with ESMTP id hAPM4AQW002336
for <[email protected]>; Tue, 25 Nov 2003 23:04:10 +0100 (MET)
Received: from waldorf.cs.uni-dortmund.de (waldorf [129.217.4.42])
by kimo.cs.uni-dortmund.de id hAPM4AO25199; Tue, 25 Nov 2003 23:04:10 +0100 (MET)
Received: from frogger.enhydra.org ([208.25.178.44])
by waldorf.cs.uni-dortmund.de with ESMTP id hAPM47XL021892
for <[email protected]>; Tue, 25 Nov 2003 23:04:08 +0100 (MET)
Received: from frogger.enhydra.org (localhost [127.0.0.1])
by frogger.enhydra.org (8.12.3/8.12.1/Debian -5) with ESMTP id hAPM0pgQ016203;
Tue, 25 Nov 2003 14:00:54 -0800
Received: from avas4.globetrotter.net (smtp1.globetrotter.net [142.169.1.121])
by frogger.enhydra.org (8.12.3/8.12.1/Debian -5) with SMTP id hAPLxngQ016158
for <[email protected]>; Tue, 25 Nov 2003 13:59:53 -0800
Received: from smtp1.globetrotter.net(142.169.1.121) by avas4.globetrotter.net via csmap
id fcf61e3a_1f92_11d8_8171_0002b3a0eaf3_1569;
Tue, 25 Nov 2003 17:02:01 -0500 (EST)
Received: from avas4.globetrotter.net (smtpmtl.versalys.com [206.162.166.130])
by smtp1.globetrotter.net (iPlanet Messaging Server 5.2)
with SMTP id <0HOX00L5FH3HHU@"TELUS Quebec"> for [email protected]; Tue,
25 Nov 2003 16:59:41 -0500 (EST)
Received: from smtpmtl.versalys.com(206.162.166.130) by avas4.globetrotter.net
via csmap id f7d83780_1f92_11d8_8154_0002b3a0eaf3_1561; Tue,
25 Nov 2003 17:01:49 -0500 (EST)
Received: from ([10.2.100.51]) by fwmtl; Tue, 25 Nov 2003 17:00:49 -0500 (EST)
Received: from telussa.com ([10.2.200.49]) by smexc2.telussa.com with Microsoft
SMTPSVC(5.0.2195.6713); Tue, 25 Nov 2003 16:59:14 -0500
From: Simon Belanger <[email protected]>
To: [email protected]
Message-id: <[email protected]>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4)
Gecko/20030624 Netscape/7.1 (ax)
X-NAI-Spam-Score: 1.0
X-NAI-Spam-Level: *
X-NAI-Spam-Rules: 1 Rules triggered USER_AGENT_MOZILLA_UA=1
X-OriginalArrivalTime: 25 Nov 2003 21:59:14.0678 (UTC)
FILETIME=[5D869960:01C3B39F]
Subject: Kxml: default namespace for elements in no namespace
Sender: [email protected]
Errors-To: [email protected]
X-BeenThere: [email protected]
X-Mailman-Version: 2.0.5
Precedence: bulk
Reply-To: [email protected]
List-Help: <mailto:[email protected]?subject=help>
List-Post: <mailto:[email protected]>
List-Subscribe: <http://www.enhydra.org/mailman/listinfo.cgi/kxml>,
<mailto:[email protected]?subject=subscribe>
List-Id: <kxml.enhydra.org>
List-Unsubscribe: <http://www.enhydra.org/mailman/listinfo.cgi/kxml>,
<mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://www.enhydra.org/project/mailingLists/kxml/maillist.html>
Date: Tue, 25 Nov 2003 16:58:00 -0500
X-Scanned-By: MIMEDefang 2.35 (www . roaringpenguin . com / mimedefang) / [schalter4]
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
_______________________________________________
Kxml mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/kxml
--------------050201010508080702030803--