xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Bohm" <de...@fireflydesign.com>
Subject svgDocument.getElementById returns null
Date Mon, 19 Mar 2001 22:53:58 GMT
Hi,

I'm using a JSVGComponent to load a document and view it.  That part works
great.  Next I'm trying to lookup a graphics node by a element id.  To do
that I first look up the element using the id.  That part doesn't seem to
work, I just get back null.

My SVG file has:

    <text id="dpu" x="10" y="10" class="fil2 fnt0">and</text>

And my Java code does:

    Element element = svgDocument.getElementById("alu");

Any idea what might be happening?

Thanks,
  Denis


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message