Jump to content

SimpleXML PHP help needed


MrRay

Recommended Posts

Hey everybody :), not sure if you still remember me, but I need help again for the new revision.

I wanna parse xml w/ php and use that to generate pages. As for actually doing that part, it has not happened yet, for now I am simply preparing.

The XML document I plan to have set up like this:

[code]<inventory>
              <item>
                        <number></number>
                        <century></century>
                        <dimensions></dimensions>
                        <value></value>
                        <sold></sold>
                        <category></category>
                        <artist></artist>
                        <name></name>
                        <description></description>
                        <images></images>
                        <listed></listed>
              </item>
</inventory[/code]

Was my original idea, but I got a different idea involving having the xml be used to point at folders containing other data, which would decrease the parsing time.

Does it sound practical? I am aware that the downside would be that extraction of data for other applications would not be as convenient... But would the performance increases be worth it? Also: is this method faster than using MySQL? What I was shooting for was a site that could do rss, wml, have the abilility to work with another cms if the need were ever present, and be able to be easily integratable with things. I'm just not sure enough though...I'm far to new to the xml thing.

What is the best method??

As always, thank you for aiding me.
Ray
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.