On Wednesday 30 January 2002 11:33, Philip Arad wrote:
> The problem is as follow:
> The attribute width="45" for example is considered also as 2 things:
>
> As an attribute:
> Node:org.apache.batik.dom.GenericAttr@436eb7
> Node Value:46
>
> As a Text
> Node:org.apache.batik.dom.GenericText@19d25d
> Node Value:46
>

According to the DOM recommendation, a org.w3c.dom.Attr node represents his 
children has Text and EntityReference nodes.
To solve your problem don't recurse on Attr nodes and just use 
Node.getNodeValue() or Attr.getValue().
--
  Stephane.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to