Here's the expression I've tried to use: xmlstarlet sel -t -v "/bulkCCDataFile[@xmlns:un='utranNrm.xsd']/configData[@dnPrefix='Undefined']/xn:SubNetwork[@id='ALPHA']/xn:SubNetwork[@id='Burbank']/xn:attributes/xn:userDataType/"
And here is the part of the XML file I'm trying to read from:
I've looked at many example, but none seem to address this particular situation for getting userDataType value, "MY_SERVERS". This LOOKS like what XPATH is supposed to be.
What am I missing?
Last edit: Noam Postavsky 2016-02-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here's the expression I've tried to use:
xmlstarlet sel -t -v "/bulkCCDataFile[@xmlns:un='utranNrm.xsd']/configData[@dnPrefix='Undefined']/xn:SubNetwork[@id='ALPHA']/xn:SubNetwork[@id='Burbank']/xn:attributes/xn:userDataType/"
And here is the part of the XML file I'm trying to read from:
I've looked at many example, but none seem to address this particular situation for getting userDataType value, "MY_SERVERS". This LOOKS like what XPATH is supposed to be.
What am I missing?
Last edit: Noam Postavsky 2016-02-03
Have you read chapter 5 in user guide? http://xmlstar.sourceforge.net/doc/UG/ch05.html