Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • If I use this LOBCODE=$( xmllint --xpath 'string(/dataTemplate/@name)' "$filename" ) Unknown option --xpath --> Usage : xmllint [options] XMLfiles ... Parse the XML files and output the result of the parsing --version : display the version of the XML library used --debug : dump a debug tree of the in-memory document and more..... and for LOBCODE=$( xml sel -t -v '/dataTemplate/@name' "$filename" ) it gives LPX-00202: could not open "sel" (error 200) Commented Mar 2, 2018 at 9:53
  • @ArunGoWdA The first error comes from an older version of xmllint. The second error comes from the fact that xml on your system is not XMLStarlet but some other program. Try xmlstarlet (after making sure that the program is actually installed), or upgrade your xmllint. Commented Mar 2, 2018 at 9:55
  • ok i try and let you know Commented Mar 2, 2018 at 10:37
  • we cannot install the upgraded switch due to limitation. can you please to extarct using the string? Oracle suggests the same Commented Mar 12, 2018 at 11:44