开发者

when i try to parse an xml file in java i am getting invalid arguments exceptions . i am using dom parser to parse ....the

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header/> <SOAP-ENV:Body>  <m:Inform xmlns:m="urn:dslforum-org:cwmp-1-0">  <m:DeviceId xsi:type="soap-enc:type"><m:Manufacturer xsi:type="xsd:string">arg</m:Manufacturer><m:OUI xsi:type="xsd:string">arg</m:OUI><m:ProductClass xsi:type="xsd:string">arg</m:ProductClass><m:SerialNumber xsi:type="xsd:string">TR106</m:SerialNumber></m:DeviceId><m:Event xsi:type="soap-enc:arrayType"><m:EventStruct><m:EventCode xsi:type="xsd:string">6 CONNECTIO开发者_开发技巧N_REQUEST</m:EventCode></m:EventStruct></m:Event><m:MaxEnvelopes xsi:type="xsd:unsignedInt">1</m:MaxEnvelopes><m:CurrentTime xsi:type="xsd:dateTime">2011.02.29 AD at 05:03:25 PM IST </m:CurrentTime><m:RetryCount xsi:type="xsd:unsignedInt">0</m:RetryCount><m:ParameterList xsi:type="cwmp:ParameterValueStruct[5]"><m:ParameterValueStruct><m:name xsi:type="xsd:string">Device.DeviceInfo.HardwareVersion</m:name><m:value xsi:type="xsd:string">arg</m:value></m:ParameterValueStruct><m:ParameterValueStruct><m:name xsi:type="xsd:string">Device.DeviceInfo.SoftwareVersion</m:name><m:value xsi:type="xsd:string">arg</m:value></m:ParameterValueStruct><m:ParameterValueStruct><m:name xsi:type="xsd:string">Device.ManagementServer.ConnectionRequestURL</m:name><m:value xsi:type="xsd:string">arg</m:value></m:ParameterValueStruct><m:ParameterValueStruct><m:name xsi:type="xsd:string">Device.ManagementServer.ParameterKey</m:name><m:value xsi:type="xsd:string">ABC1000</m:value></m:ParameterValueStruct><m:ParameterValueStruct><m:name xsi:type="xsd:string">Device.LAN.IPAddress</m:name><m:value xsi:type="xsd:string">arg</m:value></m:ParameterValueStruct></m:ParameterList></m:Inform> </SOAP-ENV:Body></SOAP-ENV:Envelope>


Some more information about the error would be nice, so I'm just guessing: Your xsd:dateTime 2011.02.29 AD at 05:03:25 PM IST looks suspicious, see http://books.xmlschemata.org/relaxng/ch19-77049.html for valid examples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜