Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

[Solved] XML / XSL import works in FM11, but in 9 gives 'xmlns:soap' is not declared for element 'FMPXMLRESULT'


This topic is 4832 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have an XSLT which I use to import some XML data in SOAP format. Works great in FileMaker 11, but when trying it in FileMaker 9v3 I get the following error:

XML Parsing error: Attribute 'xmlns:soap' is not declared for element 'FMPXMLRESULT'

In the XSLT which works in FM11, I do have an xmlns definition:


<xsl:stylesheet

   version="1.0"

   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

>



 

However, I need this, because if I remove it, then I get a different error:

 

"Unable to resolve prefix 'soap'"  which happens when I count the records as I'm using the soap namespace...

 



 

<DATABASE DATEFORMAT="M/d/yyyy" LAYOUT="" NAME=""

RECORDS="{count(soap:Envelope/soap:Body/People/*)}"

 

TIMEFORMAT="h:mm:ss a"/>



 

 

Solved:

turns out that FM9 doesn't like the xmlns which are naturally appended to the FMPXMLRESULT.  FM11 seems to not care.

 

Solution:

 

add

   exclude-result-prefixes="soap"

to your <xsl:stylesheet

node.

 

if you need to exclude more, just put a list in like this:

 

 

   exclude-result-prefixes="a b c"

 

So the final XSLT looks like this:



 

<xsl:stylesheet

   version="1.0"

   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

   exclude-result-prefixes="soap"

>

  • 1 month later...
Posted

Yes, when you declare an xmlns for import into FM, you have to exclude it from the result (of the transformation). Filemaker only wants its own xmlns, naturally!!

This topic is 4832 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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