How do I import many XML blocks?

qclists's Avatar


14 Jul, 2014 05:32 PM

I need to import a few hundred XML blocks, which i can generate locally. How do I import them onto the cascade server? I could use the Zip Import feature, but I don't know how to structure the files such that they are recognized as XML blocks instead of data files.

  1. 1 Posted by Ryan Griffith on 14 Jul, 2014 06:19 PM

    Ryan Griffith's Avatar


    Because the Zip tool is used only for files (eg images, CSS, JavaScript, or any other static file), you will need to use Web Services to create new XML Blocks within your instance.

    Please let me know if you have any questions.


  2. 2 Posted by Wing Ming Chan on 14 Jul, 2014 06:33 PM

    Wing Ming Chan's Avatar


    My library can be used to create any assets. See Cascade::createXmlBlock( Folder $parent, $name, $xml ). Assuming that all your XML files reside in a single folder on your server, it will probably require ten lines of code to create all these XML blocks.


  3. 3 Posted by qclists on 14 Jul, 2014 06:56 PM

    qclists's Avatar

    That is exactly what I needed. I just need to brush up on my PHP and SOAP queries. Thanks!

  4. 4 Posted by Ryan Griffith on 16 Jul, 2014 05:36 PM

    Ryan Griffith's Avatar

    Glad to hear Wing's library will do the trick.

    Please feel free to follow up with him if you have any questions about his library.

    Have a great day!

  5. Ryan Griffith closed this discussion on 16 Jul, 2014 05:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac