XML

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

XML Fri May 06, 2022 5:55 am • by PeterZ
Hello,

I have a dynamic XML file where file names are added, I want Hazel to check this XML, and if the name matches the file name, it will take action on it.
How can I do that?
Any data from the MySql database.

Well thank you.
PeterZ
 
Posts: 2
Joined: Sun Dec 26, 2021 3:28 pm

Re: XML Fri May 06, 2022 9:20 am • by Mr_Noodle
It depends. Can you post a sample from the xml?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: XML Fri May 06, 2022 9:59 am • by PeterZ
I tested it with this sample XML https://www.w3schools.com/xml/simple.xml
This contains the file name in the <name> French Toast </name> tag
The file name in the watched folder is French Toast.jpg
I applied the rule:
Image

The XML will change and I need to move the file from the watched folder if its name appears in the XML

Thanks for help
PeterZ
 
Posts: 2
Joined: Sun Dec 26, 2021 3:28 pm

Re: XML Mon May 09, 2022 9:20 am • by Mr_Noodle
Oh, you want to use XML for the list feature. That isn't support. It needs to be a flat list with a consistent separator between items.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion