xml sax localName跟qName的区别

xml sax localName和qName的区别对于DefaultHandler类中方法的成员String uri, String localName, String

xml sax localName和qName的区别

对于DefaultHandler类中方法的成员
String uri, String localName, String qName,Attributes attributes 弄的不是很清楚,于是得到下面这片文章感觉讲的蛮清楚的。无节操的贴过来了。

http://blog.csdn.net/wssiqi/article/details/8239357

1. xml中的localName和QName
parse xml file use sax2  Element qName    : websites  Element localName: websites  Element uri      :     Element qName    : sina:website  Element localName: website  Element uri      : http://www.sina.com      attribute qName    : sina:blog    attribute localName: blog    attribute value    : blog.sina.com    attribute uri      : http://www.sina.com    Element qName    : baidu:website  Element localName: website  Element uri      : http://www.baidu.com      attribute qName    : baidu:blog    attribute localName: blog    attribute value    : hi.baidu.com    attribute uri      : http://www.baidu.com