I came across some xml parsers in some code in Java, I don’t know what the first parameter in the following line represent ?
this.xml.startElement("", "", "root", atts);
I can see that it represents Namespace URI, but what does it mean when using “”, “” ?
Thanks.
It’s stated in the docs. The parameters are:
uri– the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performedlocalName– the local name (without prefix), or the empty string if Namespace processing is not being performedqName– the qualified name (with prefix), or the empty string if qualified names are not availableatts– the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. The value of this object after startElement returns is undefined