[xml] xmllint simple validation fail



Hello everybody,

i have some problems with xmllint. I use it to validate the syntax of xml file. But with this xml bellow, which have one error, xmllint say "all is ok".

<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
<lan ip_addr="192.168.9.1"/>" netmask="255.255.255.0" />
</rsp>

i think the issue is xmllint stop parsing line after the />, nop ?

$ xmllint /tmp/apitest.sh.5393.xml
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
<lan ip_addr="192.168.9.1"/>" netmask="255.255.255.0" /&gt;
</rsp>

Anthony.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]