Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml undefined @attributes #5

Open
Notmarrco opened this issue Apr 18, 2017 · 0 comments
Open

xml undefined @attributes #5

Notmarrco opened this issue Apr 18, 2017 · 0 comments

Comments

@Notmarrco
Copy link

Hi,
I'm trying to use the importer with a XML file, but I get the following error :

[Symfony\Component\Debug\Exception\ContextErrorException]  
  Notice: Undefined index: @attributes                       
                                                             
Exception trace:
 () at [...]vendor/mathielen/import-engine/src/Mathielen/DataImport/Reader/XmlReader.php:36

so the issue seems to be there : https://github.com/mathielen/import-engine/blob/master/src/Mathielen/DataImport/Reader/XmlReader.php#L36 (notice the TODO label :) ), but I can't figure out why it doesn't work.

When I dump the SimpleXMLIterator $this->iterableResult I can see '@attributes' but I can't access them, and in fact even if I could that would only be some attributes on my first xml tag, but it wouldn't return the list of the xml fields .

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant