You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by noni_4444 <na...@gmail.com> on 2007/08/31 17:32:06 UTC
How to get style attribute value in java?
I am facing some problems, while trying to process an SVG file using Java
dom. I cannot find any method for getting the style attribute of an element.
Java does not recognize the following syntax.
Element oFgElm = null;
//..... some code to initialize the oFgElm ....
fgStyle = oFgElm.getStyle();
Why doesnot java? Isn't getStyle method a standard requirement for API
implementors?
Is there any way arond
Naveed
--
View this message in context: http://www.nabble.com/How-to-get-style-attribute-value-in-java--tf4360862.html#a12428747
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: How to get style attribute value in java?
Posted by hardc0d3r <ha...@gmail.com>.
i may be wrong but try oFgElm.getAttribute("style");
noni_4444 wrote:
>
> I am facing some problems, while trying to process an SVG file using Java
> dom. I cannot find any method for getting the style attribute of an
> element. Java does not recognize the following syntax.
>
> Element oFgElm = null;
> //..... some code to initialize the oFgElm ....
> fgStyle = oFgElm.getStyle();
>
> Why doesnot java? Isn't getStyle method a standard requirement for API
> implementors?
> Is there any way arond
>
>
> Naveed
>
--
View this message in context: http://www.nabble.com/How-to-get-style-attribute-value-in-java--tf4360862.html#a12431745
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org