Click to See Complete Forum and Search --> : [RESOLVED] Where did my XML go?
gep13
Dec 15th, 2009, 10:20 AM
Hey,
I have just added an FAQ to the FAQ Forum, but looking at it now, I don't seem to see the XML that I put between the CODE tags.
http://www.vbforums.com/showthread.php?t=595883
Any idea what is going on?
Thanks
Gary
techgnome
Dec 15th, 2009, 10:42 AM
OK... that's weird... because you can select "something" in those code blocks... but they appear to be spaces or something... because when I then copy and paste it into note pad, I get nothing.
When you edit the post, does the XML then show up?
-tg
gep13
Dec 15th, 2009, 10:44 AM
Hey,
Yeah, I actually just checked that, and when I go to edit the post, I can see the XML.
I have done this a number of times in normal forums, and this hasn't caused a problem. The only difference I can see is that this forum allows full html markup, but I have chosen to not use this. Should I? And construct the post differently?
Gary
techgnome
Dec 15th, 2009, 10:51 AM
Beats me... this is the first time I've seen XML code go sideways.
-tg
gep13
Dec 15th, 2009, 10:53 AM
Hmmm, not what I was hoping to hear :)
I will wait and see if anyone knows anything, otherwise, I will try editing the post to use html markup instead, and see if that works.
Thanks
Gary
MartinLiss
Dec 15th, 2009, 11:18 AM
If you change form [CODE] tags to [Highlight=vb.net] tags (as I did for you in the last block of your post) it works sort of okay.
techgnome
Dec 15th, 2009, 11:20 AM
would [highlight=xml] work? or what about the noparse tag?
-tg
gep13
Dec 15th, 2009, 11:21 AM
If you change form [CODE] tags to [Highlight=vb.net] tags (as I did for you in the last block of your post) it works sort of okay.
Ah, ok, so there is a work around, however, the below is a direct copy of the first xml CODE block, and it works fine in regular forum:
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
Gary
si_the_geek
Dec 15th, 2009, 11:30 AM
It is due to HTML being enabled in that forum... and unfortunately NoParse doesn't help.
[highlight=xml] (or something similar, perhaps HTML) is likely to work.
gep13
Dec 15th, 2009, 11:31 AM
Hey,
Ok, I thought that is what it would come down to. I will refactor the post later tonight if I get a second.
Thanks
Gary
Nightwalker83
Dec 15th, 2009, 04:47 PM
I see all the code that was posted correctly and can paste it into note pad++. I don't know maybe Marty or Si changed it before I posted! :confused:
MartinLiss
Dec 15th, 2009, 05:01 PM
I see all the code that was posted correctly and can paste it into note pad++. I don't know maybe Marty or Si changed it before I posted! :confused:Nope, according to the Last edited by tag gep13 did it.
gep13
Dec 16th, 2009, 01:54 AM
Nope, according to the Last edited by tag gep13 did it.
Yip, I edited it last night, but still not 100% happy with it. I was playing with CSAH:
http://copysourceashtml.codeplex.com/
To try and get a nicer looking post, since you have full HTML markup available in that thread. It works really well, but it generates a lot of characters, so I am going to have to split the post over multiple ones, so just trying to work out the best way of doing it.
Gary
abhijit
Dec 17th, 2009, 11:38 AM
Gary,
Have you tried using this formatter (http://xlight.mendhak.com/Default.aspx)?
I copied the XML from your post and formatted (http://www.vbforums.com/showthread.php?t=596197)it.
gep13
Dec 17th, 2009, 03:28 PM
Interesting!!
I had read about this converter in the WPF/Silverlight forums, but I never thought to use it. The resulting output might well be shorter than the HTML that is currently being rendered. I will give this a try.
Thanks
Gary
DeanMc
Dec 20th, 2009, 12:39 PM
Well you should!
Since I built it I am aware that there are one or too niggles in it but its about 98% correct for most XML based languages!
gep13
Dec 21st, 2009, 01:56 AM
Hey,
Haven't had a chance to look at it yet, but I certainly will :)
Gary
penagate
Dec 27th, 2009, 08:31 PM
Sorry to be late to the party, but for future reference, use < to escape the < symbol in the FAQ forum.
gep13
Dec 28th, 2009, 01:38 PM
Hey,
Thanks for that, good to know!
Gary
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.