Page 1 of 1

How to use XML?

Posted: Thu Sep 03, 2020 7:41 am
by RytisT
Hi. I have a generated XML from external source that I want to use in Switch.

My XML looks something like this: https://prnt.sc/uanb2z - I tried to keep it the way switch generates it.

Yet when I try to use any of the data in this XML, I can't see it anywhere in switch. I suppose I need to do something with XML file before I can use it's data? Can someone put me on the right path here?

Thanks!

Re: How to use XML?

Posted: Thu Sep 03, 2020 8:51 am
by jan_suhr
Do you have the Metadata module? You need it to read the XML data to use it in Switch as variables for the job.

Re: How to use XML?

Posted: Thu Sep 03, 2020 10:33 am
by RytisT
jan_suhr wrote: Thu Sep 03, 2020 8:51 am Do you have the Metadata module? You need it to read the XML data to use it in Switch as variables for the job.
Yeah, I do.

If I inject a PDF with same name, so there's PDF+Metadata in it (from same xml file)
then Switch reads the metadata, but if there's only the XML file, with no injection, it won't.

Re: How to use XML?

Posted: Thu Sep 03, 2020 11:24 am
by jan_suhr
Switch can not read the XML file as it is and use its content. You first have to inject the Metadata as a Dataset to the job.

If you only have a XML-file coming in you have to change the property in the XML Pickup tool to Pickup Mode = Metadata is asset. Then the XML in the XML file becomes a dataset associated with that job.

Re: How to use XML?

Posted: Thu Sep 03, 2020 11:24 am
by jan_suhr
Switch can not read the XML file as it is and use its content. You first have to inject the Metadata as a Dataset to the job.

If you only have a XML-file coming in you have to change the property in the XML Pickup tool to Pickup Mode = Metadata is asset. Then the XML in the XML file becomes a dataset associated with that job.

Re: How to use XML?

Posted: Fri Sep 04, 2020 7:12 am
by RytisT
jan_suhr wrote: Thu Sep 03, 2020 11:24 am Switch can not read the XML file as it is and use its content. You first have to inject the Metadata as a Dataset to the job.

If you only have a XML-file coming in you have to change the property in the XML Pickup tool to Pickup Mode = Metadata is asset. Then the XML in the XML file becomes a dataset associated with that job.
Thank you.