Hi
I have an XML file which contains html urls in that node values. When i use xmllint to parse that, i am getting error (because of the sympols in the url). i have used --html option but it throws other tag errors.
Please guide me.
sample file.xml
<abc>
<bcd>
<cde>
<a>sometext</a>
<b>https://www.asdf.com/plaer?foreo=APYlolNO=BPYprotName=UINS%20min</b>
<c>asdf</c>
</cde>
</bcd>
</abc>
tried
echo "cat /abc/bcd/cde/a/text()" | xmllint --nocdata --html --shell file.xml | sed '1d;$d'
error:
parser error : EntityRef: expecting ';'
<b>https://www.asdf.com/plaer?foreo=APYlolNO=BPYprotName=UINS%20min
^(this symbol was pointing in the = sign)