|
Re: [Fwd: Kxml: default namespace for elements in no namespace]: msg#00019java.enhydra.kxml
hi Simon, send us exception stack trace and enough code to reproduce it. this greatly help to determine what is the problem and to fix it. thanks, alek Stefan Haustein wrote: >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 > > >To unsubscribe from this group, send an email to: >xmlpull-dev-unsubscribe@xxxxxxxxxxxxxxx > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > > > ------------------------------------------------------------------------ > > Subject: > Kxml: default namespace for elements in no namespace > From: > Simon Belanger <simon.belanger@xxxxxxxxxxx> > Date: > Tue, 25 Nov 2003 16:58:00 -0500 > To: > kXML@xxxxxxxxxxx > > > 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 > Kxml@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/kxml -- The best way to predict the future is to invent it - Alan Kay ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/2U_rlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: xmlpull-dev-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [Fwd: default namespace for elements in no namespace], Stefan Haustein |
|---|---|
| Next by Date: | RE: [xmlpull-dev] [Fwd: default namespace for elements in no namespace], Belanger, Simon |
| Previous by Thread: | [Fwd: default namespace for elements in no namespace], Stefan Haustein |
| Next by Thread: | RE: [xmlpull-dev] [Fwd: default namespace for elements in no namespace], Belanger, Simon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |