There are 2 xml document with different namespaces, e.g.
declare namespace ml1 = "urn:schemas-com:ml1";
declare namespace ml2 = "urn:schemas-com:ml2";
but with same structure.
Can I select some nodes using only these namespaces, without *? I mean something like that:
fn:doc($uri)/(ml1 or ml2):root
Updated:
Thanks. All suggestions work but not useful for me. Because there can be 3 or more namespaces, and xpath expression will be very large. Any suggestions?
Conclusion:
Thanks for the answers. I agree with @MichaelKay that I should process all xml all documents. Problem is solved.
One possible expression is:
Another is:
In case there can be an unlimited number of prefixes of the form
"mlNNNNN"", use: