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 parsing error:

Featured Replies

file->import records->xml data source...->http request=http://tsesc.com/xmlexport.aspx?type=dtod&date=13850715

error:

XML parsing error:

Unknown element 'pe'

Line Number: 2

help me please.

Edited by Guest

It doesn't work that way. FM can import XML but only if it is in it the FM XML grammar. So you need to write an XSLT to transform that tsesc XML grammar into the FM grammar. That's what the "use XSLT style sheet" option is about at the bottom of the import dialog.

Do a search in the FM help for "xml import" to learn the details. Post back if you need help writing the XSLT stylesheet.

Here's a quick partial xsl stylesheet, which works (I can't read the text fields, but it seems to all be there). I only did 3 fields, so you'll have to add the rest. But it's a simple xml file.

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



  

  

    

      0

      

      

      

        

        

        

        

      

      

        

          

            0

            

              

            

            

              

                

              

            

            

              

                

              

            

            

              

                

              

            

          

        

      

    

  

(P.S. The stylesheet should also be on a web page, accessed via http if you want to transform the source directly from its http location, without having to write it to a local file. Otherwise you get a cryptic "could not connect to socket" error. Actually I just tried it twice, and it worked the 2nd time, with a local file, but not the 1st time. Odd.)

Edited by Guest
http or local?

  • 3 weeks later...
  • Author

tanx

I have a sample db that allows you to set up the "field mappings" (between your database fields and your source XML). I haven't tweaked it with "features", but it works to create a simple XSLT for importing into FMP. Email me if interested.

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.