Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
samantha92
Contributor III
Contributor III

LOAD * FROM xml file

Hiya,

I am trying to load all files from an xml file but I get an error and have to load in my fields individually - is there a different way to load * from xml?

Thanks in advance!

1 Solution

Accepted Solutions
felipedl
Partner - Specialist III
Partner - Specialist III

Yes,

As i stated, the XML parsing of Qlik doesn't allow the Load * statement.

When you use the wizard, it should get all the fields (if the XML is valid) into the load statement.

You should get something like this when using the 'Table Files':

Sample.png

And the following load statement with the example XML.

Sample.png

Felipe.

View solution in original post

6 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Samantha,

The 'Table Files' wizard when loading the XML files should place all the fields already and there's no option to use '*' for XML.

What type of error are you getting because i tested with the bellow xml example:

<note>

<to>Tove</to>

<from>Jani</from>

<heading>Reminder</heading>

<body>Don't forget me this weekend!</body>

</note>


And worked just fine.



Felipe.

samantha92
Contributor III
Contributor III
Author

Hiya,

I'm getting Load all (*) is not allowed in this file type


I am creating subroutines so didn't want to load in all files individually so I am able to reuse my subroutines for other xml files.

felipedl
Partner - Specialist III
Partner - Specialist III

Yes,

As i stated, the XML parsing of Qlik doesn't allow the Load * statement.

When you use the wizard, it should get all the fields (if the XML is valid) into the load statement.

You should get something like this when using the 'Table Files':

Sample.png

And the following load statement with the example XML.

Sample.png

Felipe.

samantha92
Contributor III
Contributor III
Author

Hiya,

Yeah I have just loaded them all in, was just wondering if it was possible to do - thanks for the help

felipedl
Partner - Specialist III
Partner - Specialist III

No problem .

its_rajvir
Creator
Creator

Hey!

I am trying to do the same but unable to do so. Can  you explain how did you load all in?

please Help!

Thanks