Page 1 of 1

XML Pickup tool and metadata

Posted: Tue Aug 16, 2011 3:24 pm
by mostafa_hamdy
Hello all

I have two questions please ,

1- I want to know how the XML pickup tool work please if you may send me a flow example contains the XML pickup tool and the XML file structure please

2-I want to know how can I use the metadata which I submit them from switch client in a connection condition , if you may please send me the scrip line which may lead me to do that

Best regards

Mostafa

XML Pickup tool and metadata

Posted: Tue Aug 16, 2011 7:06 pm
by Harald Mahrer
Hi,



an short answer for your second question:



When You have Your submitpoint "equipped" with Your Metadatafields, you may approached them in the "condition"-enviroment of Power-Switch, choosing:



Metadata > Text > entering in the 3 lines on the right:



1st line: //field[tag='YourFieldName']/value YourFieldName is the name You gave the field when creating it.

Be sure not to make mistakes on the slashes, brackets and ' (no " instead of them)



2nd line: YourDatasetName (You entered it at the submitpoint or if you did not, the default is: Submit)



3rd line: XML

With this You can approach the Metadatafield-Values by fieldname, as long as within the dataset all fields are named with unique name.



There are other methods, basicly approaching the fields by their "number", but this causes troubles when You change the order of your fields in your dataset later on, so try this method.



Best regards from Vienna.

Harald Mahrer



PS You'll find a lot of information about all this in "Switch-Help", but this method is not really well documented, so I posted it here.

You also won't find in the Help-Files, that You can only use one level of dependency of fields when creating Your dataset-structure. There is a option: "Show only if master field equals to:" But nowhere is written that the "Master" MUST NOT be a slave himself. You can create such fields, but the won't be written in Your XML.

If You want to make Your field visible, when the value of the master matches with more than one value, than You have to enter them seperated by semicolons without any blanks that are not part of the value. For example:

value 1;value 2 would match "value 1" and "value 2" but not "value 3" nor "value 1 "

As You can't use placeholders like *, this "Only visible if..."-thing only makes sense, if the master is of type "choice".

XML Pickup tool and metadata

Posted: Tue Aug 16, 2011 7:17 pm
by dkelly
Hello, there's at least one sample XML Pickup flow in the Solutions library.



http://www.crossroads-world.com/en/get% ... 0name.aspx



What type of XML were you wanted to pickup? Is the metadata stored in a separate file along side of the asset file or it embedded in the asset file?





Sincerely,

Dwight Kelly

Apago, Inc.

dkelly@apago.com

XML Pickup tool and metadata

Posted: Wed Aug 17, 2011 2:23 pm
by mostafa_hamdy
Hello there

many many thanx about ur rapid reply and really was usefull so much to me, I set the metadata mode to "Metadata is asset" and the metadata is stored to separat XML file , but what I couldn't do is how can I reterive the values from the XML,, please if u get what I mean and can help me I will be thankful so much to u

best regards

Mostafa

XML Pickup tool and metadata

Posted: Wed Aug 17, 2011 3:46 pm
by dkelly
Switch has built-in support for several types of metadata including EXIF, IPTC and XMP. Is your metadata one of these types?



For example, if you want to retreive the Exif unique ID in an image file you could use the script expression:



job.getVariableAsNumber( "[Photo.ImageUniqueID]" );



Can you give an example of the type of information you want to retrieve?



Dwight Kelly

Apago, Inc.

dkelly@apago.com

XML Pickup tool and metadata

Posted: Thu Oct 27, 2011 1:12 pm
by Deaken
Is XML-pickup not supported in fullswitch? I am running a trialversion of full-switch but I can't find the XML pickup anywhere.

XML Pickup tool and metadata

Posted: Thu Oct 27, 2011 3:34 pm
by dkelly
FullSwitch does not support XML pickup. Full read/write support for metadata (XMP, XML, JDF, EXIF and IPTC) is only available in PowerSwitch