![]() |
vB_XML_Parser how do I?
I have searched many sites with no luck.
Can anyone refer me to a decent article or usage of the vB_XML_Parser class? Thanks EDIT: I am attempting to retrieve a local xml file data and have tried: PHP Code:
But echo or gettype($xmldata) returns NULL |
What do you want to do with it?
PS. The best way is to see how vBulletin uses it. It's used in a lot of places. |
I plan to use it to read a local xml file and parse the data to a memberinfo template as an extra tab.
|
You can call the class in two ways. Like this:
PHP Code:
PHP Code:
PHP Code:
|
Thank you.
My error was in using parsedata instead of parseddata. (missing d) The following now works: Code:
$xml->parse(); Maybe this will change when I get the data to template. I was using simple_xml() which returned quickly. Now I just need to figure out how to get the variables to template. |
All times are GMT. The time now is 04:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|