[jdom-interest] NamesSpace questions

Michael Brennan Michael_Brennan at Allegis.com
Mon Mar 19 14:27:41 PST 2001


Actually, it should parse since XML 1.0 allows ':' in names. However, a
compliant parser won't treat "rdf:" or "dc:" as namespace prefixes since
there are not corresponding namespace declarations; these will simply be
treated as part of the tag names.

> -----Original Message-----
> From: philip.nelson at omniresources.com
> [mailto:philip.nelson at omniresources.com]
> Sent: Monday, March 19, 2001 12:02 PM
> To: jdom-interest at jdom.org
> Subject: RE: [jdom-interest] NamesSpace questions
> 
> 
> > I was wondering if some one could give me some clarification on how 
> > namespaces are used in JDOM.  My experience so far seems to 
> > indicate that 
> > if you declare ANY namespace that you lose the ability to 
> > have a default 
> > name space.  Let me give an example
> > 
> > <rdf:RDF>
> >      <channel>
> >          <dc:creator>some text</dc:creator>
> >     </channel>
> > </rdf:RDF>
> 
> Could you give a more complete example?  There are no default 
> namespaces
> declared.  Elements are not by default declared in a default 
> namespace,
> instead they are in NO_NAMESPACE which is the absence of a 
> namespace.  Since
> this won't even parse, I can't make any prediction as to what 
> may be wrong
> ;^)
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com



More information about the jdom-interest mailing list