In fact I've just to specify :
element("Dimension", null, attrs);
The null parameter indicates that there is no value, and the tags is
closed directly, like this :
<Dimension ... />
Sorry for the noise ;)
Cédric.
Cédric Briançon a écrit :
> Hi,
>
> I'd like to generate a tags like this :
> <Dimension name="time" units="..."/>
> It has to be closed without a </Dimension> full form.
>
> I use the TransformerBase class (org.geotools.xml.transform), but I
> haven't find a method to do that.
> I only have these methods : start(String), start(String, Attributes),
> end(String), element(String, String) or element(String,String,Attributes).
>
> I thought of doing this :
> final AttributesImpl dimAtts = new AttributesImpl();
> dimAtts.addAttribute("", "name", "name", "", "time");
> dimAtts.addAttribute("", "units", "units", "", "ISO8601");
> start("Dimension", dimAtts);
> end("Dimension");
>
> But this will generate this format :
> <Dimension name="time" units="ISO8601"></Dimension>
>
> So how can I do this ?
>
> Regards,
> Cédric Briançon.
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users