tomp Posted April 22, 2010 Share Posted April 22, 2010 I must have a mental block with XML/XSLT. I need to do an XML import (I think). I've played with the FM supplied example and looked at several other resources but can't make the transition to my situation. Can someone help? The spec I have is attached. The 'download' is what I need to 'import' into an FM file. Where do I start? What do I need to do? I would be happy to have everything go into a single table. Any direction/help would be appreciated. XML_spec.pdf Link to comment Share on other sites More sharing options...
comment Posted April 22, 2010 Share Posted April 22, 2010 The attached stylesheet will import 4 fields I picked at random. Hopefully you'll be able to fill the rest. reservations.xsl.zip Link to comment Share on other sites More sharing options...
tomp Posted April 23, 2010 Author Share Posted April 23, 2010 Thanks! I'll see if I can make it work. Link to comment Share on other sites More sharing options...
tomp Posted May 7, 2010 Author Share Posted May 7, 2010 I finally have some data to import using this data format. For the 'import' script step, I'm using the 'http request' for 'Specify XML Data Source'. It is an 'https' reference. I also use the xsl file derived from the example in the previous reply. When the script step executes, the following error occurs: [color:red]XML parsing error: unable to open primary document entity '' Line Number: 0 Column Number: 0 If I copy the url in the 'http request' field and drop into a browser, the data are displayed so the url appears to be correct. Where does the error come from and what is it telling me? Link to comment Share on other sites More sharing options...
comment Posted May 7, 2010 Share Posted May 7, 2010 I don't know for sure, but I think it means Filemaker is not receiving data in response to the request. I don't know this for sure either, but I doubt very much Filemaker can negotiate a HTTPS connection through the XML import request. Try using curl (via AppleScript) or even a web viewer instead. Link to comment Share on other sites More sharing options...
tomp Posted May 10, 2010 Author Share Posted May 10, 2010 I think I've gotten around the https issue (couldn't do an xml import via an https connection) by saving the data to an .asp file, renaming the extension to .xml and doing a file xml import. However, while the import xml script step executes without an error, no data is imported. >>Can someone take a look at the .xsl and .xml files (attached) to see why the data in the .xml file are ignored? >>Also, could someone suggest a .cmd file (unfortunately need it for windows) to open a url, do a 'save as', and rename the saved file - all 'hidden'? xml.zip Link to comment Share on other sites More sharing options...
comment Posted May 10, 2010 Share Posted May 10, 2010 Try: instead of: Link to comment Share on other sites More sharing options...
tomp Posted May 10, 2010 Author Share Posted May 10, 2010 Bingo! Thank you! Now if I can just automate the procedure to download the data from the https url and rename the file.... Any help?? Link to comment Share on other sites More sharing options...
comment Posted May 10, 2010 Share Posted May 10, 2010 I don't know about Windows, but I think this has come up before - try searching the forums for: +Windows +curl. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5101 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 accountSign in
Already have an account? Sign in here.
Sign In Now