O
O
Octik2015-10-11 01:52:01
PHP
Octik, 2015-10-11 01:52:01

How to write a parser for xml?

Help me write a parser for an xml file that should enter everything into the mysql
database, the xml structure, shoveled a bunch of everything I can’t write myself, help or give me a direct where to dig.

<Part>
   <id>70551</id>
   <Number>B366-10-235B</Number>
   <Description>B366-10-235B</Description>
   <Qty>0</Qty>
   <Price>161.12</Price>
</Part>
<Analog>
   <partId>19149</partId>
   <analogId>16243</analogId>
</Analog>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2015-10-11
@skobkin

You can use SimpleXML .
Or DomDocument .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question