1 2 | @namespace ex url(http://example.com); ex|quote { font-weight: bold } |
1 2 3 | $(xml).find("x\\:quote").each(function() { //process each node }); |
1 2 3 | $(xml).find("[nodeName=x:quote]").each(function() { //process each node }); |
1 2 3 4 | $(xml).find("[namespaceURI='http://example.com'][localName='quote']") .each(function() { //process each node }); |
1 2 | $.xmlns["ex"] = "http://example.com"; $(doc).find("ex|quote").each(...); |
1 2 3 4 | $(xml).find('*').ns_filter('http://example.com', 'quote').each(function(){ .each(function() { //process each node }); |
1 2 3 4 | $(xml).find('quote').ns_filter('http://example.com').each(function(){ .each(function() { //process each node }); |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |