Re: [xml] xmllint simple validation fail



According to: http://validator.w3.org/check
The XML you posted is valid.

I also checked it in IE, no error.


-----Original Message-----
From: Anthony Viallard [mailto:avd patatrac info] 
Sent: Tuesday, July 28, 2009 5:57 AM
To: xml gnome org
Subject: [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]