I am still trying to get it running. I have installed current feeds (1-alpha-14) and today's feeds_xmlparser from github. I follow the steps in the readme and activate all modules, but xml does show up as parser under admin/build/feeds/edit/new/parser.

You said I don't need xml parser, so but the php library, so I check phpinfo it tells me about SimpleXML

Simplexml support enabled
Revision $Revision: 1.151.2.22.2.35 $
Schema support enabled

Any ideas?

thanks

Comments

mokko’s picture

Aha. Found it! According to http://drupal.org/node/726564 the solution was to clear all caches! Let's see what's the next problem.

Edit: might be worth it to add it to readme.

mokko’s picture

I wrote down some more notes in case you want to put some of it in readme.txt

in order to import example.xml, i guess one needs to do this:

  • visit admin/build/feeds/create to create a new importer. I use the following settings
  • basic settings: attach to content type: Use standalone form.
  • file upload
  • Parser: Xml Parser
  • Settings for XML parser:XPATH:/catalog/book
  • Node processor settings needs a content type which will be created during import
  • Node processor mappings:I use the mapping from the readme.txt

Example files contains only two records (books), of course, but readme says there are 12.

I have another problem now. I can import only one of them. Any idea?

chrisirhc’s picture

Try using //book instead of /catalog/book. Does that help?

I've added some minor details and corrections into the README.txt, thanks for the heads up!

I'm sure that the README needs more work and details like those that you have mentioned, but I'm unable to work on the wording.

mokko’s picture

I could give it a try. So I tried all xpath variants I could think of. It imports 0 or 1 records only. I also created an xml with 3 records, but it stays with 0 or 1.

catalog/book
catalog
/catalog/book
//book

Yes, the module looks very useful and promissing!

I might be able to write a few words for documentation eventually if you want me to. I could write it in the github wiki page. What do you think?

Should we open a new issue? The original problem is solved.

mokko’s picture

Status: Active » Closed (fixed)