vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   a thought about bbcodes and xml... (https://vborg.vbsupport.ru/showthread.php?t=67149)

Milorad 07-13-2004 10:03 PM

a thought about bbcodes and xml...
 
is there a way to turn the BBcode system into a very basic XML parser? it seems pretty similar already.

Could the [] be changed to <> ?

For instance... if I were to create a few custom tags in my bbcode system to process something like:

Code:

<catalogue>
  <cd>
    <title>Becoming X</title>
    <artist>Sneaker Pimps</artist>
    <track>blah</track>
    <track>blah</track>
    <track>...</track>
  </cd>
</catalogue>

Is something like this feasable? - can one nest custom BBcodes reliably?

... I'm just kinda thinking out loud... but I think that this would be good for forums with a heavy article focus.

Xenon 07-13-2004 10:18 PM

Hmm, you could create a new bbcode [XML] by hacking functions_bbcode parse.

and then send everything between those xml tags through the php xml functions.

(i'm just talking about the basic way of course)

I think if you spend a bit time regarding some security issues, that should be the best way

Milorad 07-13-2004 11:23 PM

see, if I did that, I'd still have to create an XSL style sheet... the BBcode system would allow multiple administrators to drop tag definitions into the pool without the complication of XSL syntax.

I've done some XML transformation before so its not too difficult for me, but I can't say the same about other contributors.

I'm hoping people will be able to talk this out with me because talking it through helps me see the issues with it. Thanks for the reply Xenon.


All times are GMT. The time now is 06:03 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
  • Page Generation 0.00986 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete