Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issue with deserialized objects

14 views
Skip to first unread message

Krishnanand Khambadkone

unread,
Dec 12, 2023, 12:04:53 PM12/12/23
to scalaxb
Good Morning,  I am deserializing a complex nested xml structure called Transmission.  What I se is this, a list of product_container objects. I do see the values but don't see the field names.  For instance "Blue Silk Tuxedo" is a field called group_name within the product_container object.  IN this output I do not see that field name. How am I supposed to navigate and fetch each element?



DataRecord(product_container,Product_container(Blue Silk Tuxedo,Blue Silk Tuxedo,Image(DataRecord(image_url,https://cdn.shopify.com/s/files/1/0812/3380/5607/products/man-adjusts-blue-tuxedo-bowtie_925x_3373d058-1e49-465b-9693-24b68fc2f85d.jpg?v=1692295700)),,List(Alternate_image(Image(DataRecord(image_url,https://cdn.shopify.com/s/files/1/0812/3380/5607/products/man-adjusts-blue-tuxedo-bowtie_925x_3373d058-1e49-465b-9693-24b68fc2f85d.jpg?v=1692295700)),image)),List(),List(ProductType(carro-z9g89x6pao,Blue Silk Tuxedo,70.0,None,None,None,None,None,None,List(),List(),None,List(),Some(0.0),List(),None,Some(-4),None,None,None,None,None,None,None,None,None,None,None,None,None,None,List(),None,None,List())),List(),None))

Krishnanand Khambadkone

unread,
Dec 13, 2023, 11:00:24 AM12/13/23
to scalaxb
I figured this out.   You have to use .asInstanceOf.
Reply all
Reply to author
Forward
0 new messages