Subject: | Doesn't allow spaces in "[]" expression. |
Paths such as the following don't work because the XPath parser expects
no spaces in "[]" expressions:
/PLMXML/Form[@subType='Part Revision Master']
A suitable workaround, if not solution:
- elsif ( $path =~ s/^\/(child\:\:|)(\*|[\w\.\:\-]+)\[(\S+?)\]// )
+ elsif ( $path =~ s/^\/(child\:\:|)(\*|[\w\.\:\-]+)\[(.+?)\]// )
Ref: http://www.perlmonks.org/?node_id=777640