AnsweredAssumed Answered

Import XML and Associate with Form

Question asked by kooktroop on Mar 8, 2007
Latest reply on Mar 8, 2007 by arielb
Hi,

I'm trying to import my XML content into WCM. Copying and pasting isn't a good idea due to the large number of files and the possibilities of resulting errors. So, I would rather automatically import them by copying them across.

To test it out I created a form (simple.xsd) and then created the file test.xml using the form. I then saved test.xml as text_import.xml and modified it to look like:


<!– test_import.xml –>
<?xml version="1.0" encoding="UTF-8"?>
<pm:content xmlns:pm="http://www.processmentor.com" xmlns:alf="http://www.alfresco.org" xmlns:chiba="http://chiba.sourceforge.net/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <pm:name>imported test</pm:name>
  <pm:description>this test is an import!&lt;br /&gt;</pm:description>
</pm:content>

After browsing to this test_import.xml I clicked edit and was given the standard "save this file…" etc. rather than being able to edit through the nice simple.xsd form that appears when I edit the original, test.xml.

Am I doing something wrong? Or is this type of operation not supported?

Thanks in advance.

Outcomes