[jdom-interest] JDOM problems...

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon Sep 17 16:48:51 PDT 2001

> The problem is that the output attaches a new attribute to 
> the "a" element, 
> called "shape" with a value of "rect". Where is this coming 
> from? I know 
> that "shape" is an attribute of the anchor tag but why is it 
> being added to 
> the element?

Because it is a default value supplied by the dtd.

  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        NMTOKEN        #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  accesskey   %Character;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED

JDOM is not doing this by the way, instead, your underlying parser is doing
this by design.

More information about the jdom-interest mailing list