XMLstarlet not finding elements within an xml file

79 Views Asked by At

I'm trying to edit a xml file within a Jboss application with XMLstarlet however, XMLstarlet doesn't seem to be able pick up any of the elements within. Would someone be able to help me? I'm trying to edit some of the elements within however, it can't even find it.

I have a link to the xml file i put on github as its too long to post here:

https://github.com/hliang12/XML/blob/master/domain.xml

Even with the name space inputted:

xmlstarlet sel -N x="urn:jboss:domain:2.0" -t -v "count(/server-groups)"  domain.xml

This is just an example of trying to select the server-group, is this correct maybe I have put made some error with the syntax

0

There are 0 best solutions below