I am trying to insert data from xml to mysql database using LOAD XML LOCAL INFILE in php but it inserted blank values for self closed xml tags like <Password />
here is the xml code
<?xml version="1.0" encoding="UTF-8" ?>
<Users>
<User>
<Password />
<Name>name1</Name>
</User>
</Users>php mysql code: LOAD XML LOCAL FILE 'users.xml' INTO TABLE data users ROWS IDENTIFIED BY '<User>'; how can i insert the name into the database? (this is the sample xml and i have xml with more than 9000 rows).