XML namespaces and patterns

wxdqz

New Member
I have generated XML file with namespaces used (xmlns:a="URI_1"xmlns:b="URI_2")Prefixes for the namespaces can change (second time they can be name "c"and"d" or whatever ;-)I want to write "namespace prefix independent" pattern and use it insideselectNodes methodselectNodes(//a:tag1/b:tag2);this will work fine until XML source poducer keeps prefixes unchanged, ifthey change, pattren match returns nullALL WORKS fine in XSLTemplate where yuo can specify namespace mapping insideprocessing instructionbut where to specify this when using XML parser (Microsoft.XMLDOM) andselectNodes method ?Thanx for fast answer
 
Back
Top