Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

There is a problem with this xml file?! #18

Open
SaiGonSeamus opened this issue May 1, 2017 · 2 comments
Open

There is a problem with this xml file?! #18

SaiGonSeamus opened this issue May 1, 2017 · 2 comments

Comments

@SaiGonSeamus
Copy link

Hi,
Tried loading a 2.5GB xml file and got this error.

Do you want to clear the database before importing (yes/no)?: yes

Clearing the db
Reading file
Parsing file
There is a problem with this xml file?!
@4val0v
Copy link

4val0v commented Aug 25, 2017

Similar problem
File size => 400Mb
PHP 7.0

libxml_use_internal_errors(true);
$errors = libxml_get_errors();
echo 'Errors are '.var_export($errors, true);

Errors are array (
0 =>
LibXMLError::__set_state(array(
'level' => 3,
'code' => 64,
'column' => 6,
'message' => 'XML declaration allowed only at the start of the document
',
'file' => '/home/masscan/bin/scan-02.xml',
'line' => 250,
)),
1 =>
LibXMLError::__set_state(array(
'level' => 3,
'code' => 5,
'column' => 1,
'message' => 'Extra content at the end of the document
',
'file' => '/home/masscan/bin/scan-02.xml',
'line' => 253,
)),

xml file

@vxnuke
Copy link

vxnuke commented Jul 24, 2018

out of curiosity how many ip's are in your scan? i have successfully imported 738279 hosts with php5 installed. It looks to be an error with php7 if you remove everything from "runstats" to "<scaninfo" it should import fine.

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

No branches or pull requests

3 participants