In addition to registering namespace (the answer from stackoverflow ) you can also match using
/TradenetResponse/OutboundMessage/ *[ name ="OutwardPermit" ]/*[ name = "Declaration" ]...
However powerful xml/xpath are, they are just as dumb, maybe even twice that
In reply to Re: Using PERL to extract XPATH with ":" character
by Anonymous Monk
in thread Using PERL to extract XPATH with ":" character
by veritas_penang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |