xml icon indicating copy to clipboard operation
xml copied to clipboard

deserialize_seq is panicing with unimplemented

Open cholcombe973 opened this issue 9 years ago • 2 comments

I'm not totally sure why but when I try to deserialize an xml document i'm getting a unimplemented panic. I looked at your code on master and I don't see where this is happening.

   6:     0x7f36818f33c7 - _<serde_xml..de..Deserializer<Iter> as serde..de..Deserializer>::deserialize_seq::hc3c59355212360e4
                        at /home/chris/repos/sec-diff/<std macros>:3
   7:     0x7f36818f3370 - serde::de::impls::_<impl serde..de..Deserialize for collections..vec..Vec<T>>::deserialize::hbec24789cc21eb1e
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.8.9/src/de/impls.rs:443
   8:     0x7f36818f167c - serde_xml::de::from_iter::h82b513168280f77d
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde_xml-0.9.1/src/de/mod.rs:878
   9:     0x7f36818f1608 - serde_xml::de::from_str::h8e9585af27879876
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde_xml-0.9.1/src/de/mod.rs:889
  10:     0x7f36818ea4fa - sec_diff::get_info::h9d705d0f3c0dda1b

An example document I'm trying to parse is this: https://www.sec.gov/Archives/edgar/data/1067983/000095012316017295/form13fInfoTable.xml I'm parsing them into a Vec<Struct> where Struct is my user defined struct.

cholcombe973 avatar Sep 28 '16 18:09 cholcombe973

Nevermind it looks like I wasn't modeling it properly with my structs. I fired off this issue too fast :)

cholcombe973 avatar Sep 28 '16 18:09 cholcombe973

Still shouldn't panic. I'll add an error message

oli-obk avatar Sep 28 '16 18:09 oli-obk