Skip to main content

parse_contacts

Function parse_contacts 

Source
pub fn parse_contacts(xml: &str) -> Result<Vec<Contact>, YukiError>
Expand description

Parse a SearchContacts or GetSuppliersAndCustomers SOAP response into a list of contacts.

Each <Contact ID="uuid"> element carries child elements for each field. The contact ID is an XML attribute; all other fields are child text nodes.