You can check if the right mouse button was clicked.
here is the code for checking this:
if ((m.getModifiers() & InputEvent.BUTTON3_MASK)== InputEvent.BUTTON3_MASK)
{
....
}
the InputEvent.BUTTON3_MASK is static from the package java.awt.event
m stands for the mouseEvent
greetz Cruisy
I'm having a hard time getting the root element from an xml string
I get the xml in a String format and need the rootelement
anyone know how to do this.
It should be something with making it into a Document and then retrieving the root element i think but i seem to be looking over it..
any...
so if i want to overide the default xsl namespace i not should use :
<xsl:element name="xsd:schema">
<xsl:attribute name="xmlns:xsd">
http://www.w3.org/2000/10/XMLSchema
</xsl:attribute>
...
</xslelement>
but use the short version?
<xsd:schema...
what is the difference between using
<xsl:element name="tagname">
...
</xsl:element>
and
<tagname>
...
</tagname>
I ask this because i get different outputs from these usages.
help would be much appreciated [thumbsup2]
It's best to do it with 1 big xml than multiple small ones.
I had to make this choice to last year and tested both cases for their performance and the big file was slightly faster.
I don't think it will be the parsing itself, but accessing the multiple xml streams makes it slower.
I'm trying to generate a namespace in the output xml that is different to the one i use in the xsl
example:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<xsl:output...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.