The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
I plan to use it to read a local xml file and parse the data to a memberinfo template as an extra tab.
|
#4
|
||||
|
||||
You can call the class in two ways. Like this:
PHP Code:
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
Thank you.
My error was in using parsedata instead of parseddata. (missing d) The following now works: Code:
$xml->parse(); $item = $xml->parseddata[item]; 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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|