I want to be able to read and write to an XML file. I see the Edit XML File action, but I don’t see a way to just simply read a value.
Am I missing something?
You can use the XML Node Iterator, and specify a XPath statement that get the value you are after. If your only after one item(specified by the xpath), then the iterator will only loop once.
Where do I find the XML Node Iterator? I don’t see this under the XML or Iterators groups.
It’s under XML Section, and it’s only available in the pro version.
https://www.finalbuilder.com/Products/FinalBuilder/FeatureMatrix/FeaturesXMLActions/tabid/107/Default.aspx
and there’s also the “Read XML Value to Variable” action.
The easiest way to find all the xml actions is to type xml in the Filter (Ctrl-i focuses the filter edit box)
.t8
Thanks for the tip on the filter - I never noticed that.
I do have the pro version and I’ve typed XML into the filter and I don’t see these actions. Is there something additional I need to download???
No, the xml actions should be in there by default unless you’re using FB Standard. Please check your about screen to see which edition you are using. Also, go to Tool | Package Manager and look for FinalBuilder 4.x Professional Edition Misc Actions package - make sure it’s in the list an enabled (if it’s not, add FB40Enterprise.bpl).
.t8
Professional Edition 3.1.0.181
I see now that even though I just upgraded to the "latest version" it's the latest version of a previous release.
This is aggravating. I just bought this a year ago and it seems I must now purchase a newer version in order to get a feature that should have been there in the first place. I mean really - XML actions but none that allow you to read a value?!?
Hi Peter,
Yep, you’re one major version behind! We agree that reading an XML value should have been there - which is why we added it (and the xml node iterator) for FB4. If you do decide to upgrade to FB4 I’m sure there’s plenty of new stuff that it’ll be worth the upgrade.
See here for list of new features:
https://www.finalbuilder.com/new-in-finalbuilder-4.aspx
.t8