XML parser written in PHP Questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are currently in the midst of developing an XML parser written in PHP to
take the data and insert it into a MySQL database.  We have some questions
to the community.

Here is an example of what our XML data looks like: (just an example - not
the actual data)

-<shoes xmlns:dt="urn:schemas-microsoft-com:datatypes" id="f1121"
sizes="mens"/>
-<sizes id="mens">
   <size dt:dt="int">8</size>
   <size dt:dt="int">10</size>
   <size dt:dt="int">12</size>
 </sizes>

1.  What functions/classes do we use when creating a parser to read such
data?
2.  How is the "dt:dt = "int"" handled, especially since we don't even need
this data - just what between the tags. Is there a way to skip over this
information and just read what's in front of the datatype information -
without error?
3.  How does the hyphen play a part in the parsing of this information? We
recognize that this provides some sort of tree functionality - but does this
interfer with the parsing process?

Any input would be greatly appreciated.  This is for our senior project and
we've run into some errors in our code and need this cleared up.

Thanks!

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux