Some help with custom fields

Vic96 - August 13, 2007 - 12:00
Project:Import / Export API
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

This seems like just the module for the task I have at hand but I can't seem to figure out a few things.
I get an XML file with this format:

<articles>
<article>
<date>2006-05-12</date>
<time>11:34:07</time>
<author>John Doe</author>
<headline>
Blue widgets are better than red.
</headline>
<cats>International</cats>
<subcats>Asia</subcats>
<content>
Blue widgets are certainly better than red because they're blue and not red. Try green ones sometime.
</content>
<summary>
Blue widgets are better but green aren't so bad either.
</summary>
<copyright>ABC</copyright>
</article>
</articles>

I placed this XML file in the test directory and clicked 'import - chose the node type and 'XML'. I got an option to choose the XML file amongst others. I clicked the radio button next to it. Now there are a large number of fields below including 'creation date' 'last changed date' and a ton of other options, most of which have a red asterisk next to them, meaning they need to be mapped. Now my question is:

How do I map these fields when the XML file doesn't have this data. Can I set default values for some of the fields? What about data like node id and revision id? How does one provide this data? I'm dealing with an XML news feed which has to be imported. Appreciate any help. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.