Well, there you have it: we need PHP5 as a standard to do this.<br>Perhaps this module could be one of the first to require PHP5.<br>I have too much on my plate at the moment, but would certainly be willing to help anyone who wants to have a go. I have good XML / XPATH experience and have used simplexml quite a bit.
<br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br><br><div><span class="gmail_quote">On 8/15/07, <b class="gmail_sendername">David Metzler</b> &lt;<a href="mailto:metzlerd@metzlerd.com">
metzlerd@metzlerd.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Add php5, simplexml to drupal_execute and a little glue function to
<br>iterate through the xml and build form_value arrays and you have a<br>powerful combination.<br><br>Good luck,<br><br>Dave<br>On Aug 15, 2007, at 12:23 PM, Steven Jones wrote:<br><br>&gt; Hey,<br>&gt;<br>&gt; Just yesterday, I wrote a importer for some data that came out of
<br>&gt; filemaker pro, in xml format.<br>&gt;<br>&gt; Actually it was very easy, but I knew the fields that were in the<br>&gt; data. What I did was to build up a form_values array for a node<br>&gt; submission form, and then pass it in to drupal_execute.
<br>&gt;<br>&gt; The only tricky bit was making sure the taxonomy terms existed, and<br>&gt; creating them if they didn&#39;t. I guess you could read the xml file, and<br>&gt; build a CCK node type to hold the inserted data, and then import the
<br>&gt; data.<br>&gt;<br>&gt; The import/export api&#39;s seemed far too confusing, but maybe they&#39;re<br>&gt; good and worth a closer look.<br>&gt;<br>&gt;<br>&gt; On 15/08/07, Chris &lt;<a href="mailto:drupal_support.lists@toastfirst.com">
drupal_support.lists@toastfirst.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Requirements:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;Assumption:&nbsp;&nbsp;Input file&nbsp;&nbsp;= standard XML file {e.g<br>&gt;&gt; <a href="http://www.w3schools.com/xml/note.xml">
http://www.w3schools.com/xml/note.xml</a>}<br>&gt;&gt;<br>&gt;&gt; i) Enable user input of custom XML page by provision of web<br>&gt;&gt; address url to<br>&gt;&gt; an XML page (in similar fashion to feed; but it is not a feed)
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Possible enable user input via browser paste (thoughts for/against<br>&gt;&gt; welcome)<br>&gt;&gt; ii) Primary parse to display and allow &#39;deselection&#39; of fields<br>&gt;&gt; from XML<br>&gt;&gt; import that are not required (by default, or set default to &#39;select&#39;
<br>&gt;&gt; required)<br>&gt;&gt; iii) Import XML (with additional parameters set in ii) to [custom]<br>&gt;&gt; node type<br>&gt;&gt; iii) Enable edit of imported node list (such as deletion of non-<br>&gt;&gt; required
<br>&gt;&gt; records from list - can/may arguably be done with content listing<br>&gt;&gt; by type)<br>&gt;&gt; iv) Enable linking of key# data field in XML import to key# data<br>&gt;&gt; field in<br>&gt;&gt; existing nodes (of type) for duplicate identification and/or
<br>&gt;&gt; replacement [or<br>&gt;&gt; default global replace - achieved by relevant call to drupal].<br>&gt;&gt;<br>&gt;&gt; My findings suggest that:<br>&gt;&gt; - there is nothing currently available to import XML pages with
<br>&gt;&gt; custom data<br>&gt;&gt; sets<br>&gt;&gt; - there are some that require same<br>&gt;&gt; - CCK and Views may be suitable to help make this a generic<br>&gt;&gt; contribution by<br>&gt;&gt; way of creating destination node type? Also &#39;know of node import&#39;
<br>&gt;&gt; but not<br>&gt;&gt; yet investigated relevancy<br>&gt;&gt;&nbsp;&nbsp; (question to note - if use CCK do we have access to data [ie is<br>&gt;&gt; it stored<br>&gt;&gt; seperately?] in DB for later export or additional requirments?)
<br>&gt;&gt; - there are some existing API&#39;s for RSS/XML but I&#39;m not sure if<br>&gt;&gt; anything of<br>&gt;&gt; use for this application<br>&gt;&gt; - there is some &#39;Google SUmmer of Code&#39; work to look at feeds; but
<br>&gt;&gt; I do not<br>&gt;&gt; think this is relevant.<br>&gt;&gt;<br>&gt;&gt; I have not developed anything custom for Drupal for a couple of<br>&gt;&gt; years and<br>&gt;&gt; find the mix of contribs in this area &#39;confusing&#39; so please lend
<br>&gt;&gt; me your<br>&gt;&gt; wisdom:<br>&gt;&gt;<br>&gt;&gt; - any suggested approaches to re-use existing API&#39;s and contributions<br>&gt;&gt; - any existing projects underway that this might impact or work with<br>
&gt;&gt; - any willing developers / helpers /shadowers to help ramp up and/<br>&gt;&gt; or to<br>&gt;&gt; build a module for this<br>&gt;&gt;<br>&gt;&gt; Additional Comments:<br>&gt;&gt; This capability would be great for commercial applications.
<br>&gt;&gt; If I do this it is likely to be in the near future and to customer<br>&gt;&gt; time<br>&gt;&gt; constraints I would be happy to contribute back to drupal.<br>&gt;&gt; As you can see this i not specd yet but these are my ideas so far
<br>&gt;&gt; based on<br>&gt;&gt; my client requirement and &#39;quick&#39; initial look at available options<br>&gt;&gt; Any head start with better approach, where to look, who to talk to<br>&gt;&gt; and what<br>&gt;&gt; to research to measure viability/effort required would be very
<br>&gt;&gt; welcome<br>&gt;&gt; indeed.<br>&gt;&gt;<br>&gt;&gt; regards<br>&gt;&gt;<br>&gt;&gt; Chris.<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Regards<br>&gt; Steven Jones<br><br></blockquote></div><br>