Jump to content
Server Maintenance This Week. ×

XML Validation Help


jfortes

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

Recommended Posts

Hi there...

I'm producing XML code to export data out of a fM file, I use a calcuation field to represent the XML code of each record and then I export that field to a file... very simple and works. Normally, I dont have much trouble, but the XML does not have the same validation I have implemented in my FM file, so sometimes I produce XML files rejected in the other part(Empty fields etc...)

I could program that validation inside my calculation field but since I am provided with an .XSD file, I wonder if it would be possible to use that schema to validate my XML code inside my FM solution.

¿Any suggestion, example of use of .XSD code in Filemaker?

Link to comment
Share on other sites

I don't know for sure that this will help, but it seems to me that you should be able to solve your problem with the 360 Works Scriptmaster plugin and some Groovy code. The link below is probably a good place to start for the Groovy code.

http://groovy.codehaus.org/Validating+XML+with+a+W3C+XML+Schema

Link to comment
Share on other sites

There is also, in Mac OS X, a command line xml tool: xmllint

It seems to have various validation options, dtd, schema. But the man documentation is kind of terse (usually is).

I don't know whether the tool is present or up-to-date in Panther.

Link to comment
Share on other sites

This topic is 5327 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.