Hello everyone. I have xml document with structure like this: <pts <table <rows <row p00="some_id" p01="some_1 value_1" <row p00="some_id_2" p01="some_2 value_2" <rows <table <pts I need to get value from attribute p01. I try this command: xmlstarlet sel -T -t -v "/pts/table/rows/row/@p01" file.xml. And get value i need, but all values split by whitespace like this: "some_1" "value_1" "some_2" "value_2" but i need it like this "some_1 value_1" "some_2 value_2".
Hello everyone. I have xml document with structure like this: pts table rows row p00="some_id" p01="some_1 value_1" row p00="some_id_2" p01="some_2 value_2" rows table pts I need to get value from attribute p01. I try this command: xmlstarlet sel -T -t -v "/pts/table/rows/row/@p01" file.xml. And get value i need, but all values split by whitespace like this: "some_1" "value_1" "some_2" "value_2" but i need it like this "some_1 value_1" "some_2 value_2".
Hello everyone. I have xml document with structure like this: pts table rows row p00="some_id" p01="some_1 value_1" row p00="some_id_2" p01="some_2 value_2" rows table pts I need to get value from attribute from attribute p01. I try this command: xmlstarlet sel -T -t -v "/pts/table/rows/row/@p01" file.xml. And get value i need, but all values split by whitespace like this: "some_1" "value_1" "some_2" "value_2" but i need it like this "some_1 value_1" "some_2 value_2".
Hello everyone. I have xml document with structure like this: pts table rows row p00="some_id" p01="some_1 value_1" row p00="some_id_2" p01="some_2 value_2" rows table pts I need to get value from attribute from attribute p01. I try this command: xmlstarlet sel -T -t -v "/pts/table/rows/row/@p01" file.xml. And get value i need, but all values split by whitespace like this: "some_1" "value_1" "some_2" "value_2" but i need it like this "some_1 value_1" "some_2 value_2".
Hello everyone. I have xml document with structure like this: <pts> </pts>
Hello everyone. I have xml document with structure like this: <pts> </pts>