Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML Source Suggestions

Featured Replies

Greetings,

Google does not directly support xml results any longer, and I've attempted in vain for many hours to parse Yahoo local data into Filemaker XML with XSL. Does anyone know of a solid XML data provider whom I can querry with business names and get reasonable XML address, phone, etc results? Has anyone had any luck trying to parse the Yahoo local results (I get one error after another from their XML results).

  • Author

Also, in the same vain, I've been attempting to use Yahoo Local which outputs to XML, but they've got some interesting namespace stuff going on in the results that I can't seem to eliminate from my results:

any ideas on how to transform this to simply ""?

Of course, I manually remove it, and still have other issues further down the tree, but I can't seem to cross the first bridge!

Please repost your xml code inside "code" tags, which are like html tags, but with brackets [] instead of (is this documented somewhere?). We don't need all the xml (if it's huge), but enough to see and process. It ends up looking like this, ie., all the tags and spacing are preserved:


Basically what you have to add is define a "namespace prefix", so you can identify the Yahoo result data to extract. Then you need to remove it again, because FileMaker uses its own namespace, and doesn't want no stinking Yahoo namespace in its fmpxmlresult :-]

Fortunately the tools to do this are fairly simple in xsl. You just add a prefix (and it can be whatever you want, but short), in the element like this (I'm using "yah"):

xmlns:yah="urn:yahoo:lcl"

Then, near the end of the tag, you remove it from the results:

exclude-result-prefixes="yah"

<?xml version="1.0" encoding="utf-8"?>



xmlns:yah="urn:yahoo:lcl"  version="1.0" exclude-result-prefixes="yah">



	

		

			0

			

			

			

				

				

			

			

				

					

						0

						

						

							

								

							

						

						

							

								

							

						

						

				

			

		

	

Notice that I had to use:

select="yah:ResultSet"

to target the Yahoo element.

But I didn't have to use it for the "attributes", as they're contained by the element.

Edited by Guest
yah

  • Author

Fenton,

You are brilliant! I attempted this before, but I didn't understand that I only needed to exclude the name space once and all child tags would be excluded. It parsed right up.

Thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.