Productive Weekend, but not as planned.
What have I done this weekend that was so productive? well I did some more faffing with the site, added Amazon Books to the sidebar, and started on twitter, linked twitter to my facebook account, added a twitter feed on this site, added a twitter widget to my Google.com/ig page(also known as the hub of my life), totally gorked Robert Llewellyn(Llewtube – Car Pool – Channel Flip), in short I’ve become a capatalist wet liberal twit who hasn’t written a line of code all weekend…
Oh and I’ve started using bit.ly to do my external links
XmlHelper v1.00
I got fed up with rewriting the same methods over and over when I do any XML work so I put together a small helper class.
I present it here for anyone who wants it, I’m only releasing the DLL at the moment and it’s here under the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License
Once you have added a referance to the DLL add
using BHS.XML
and then you can call any of the methods, the class and it’s methods are static.
namespace BHS.XML { /// <summary> /// Black Hat Software:XmlHelper /// A series of static methods to do common tasks with XML /// </summary> public static class XmlHelper { /// <summary> /// Adds the Named attribute with a given value to an existing Node /// </summary> /// <param name="AddTo">Node to add the new attribute</param> /// <param name="attribName">New attribute name</param> /// <param name="attribValue">Value to set</param> /// <returns>a link to the new attribute created</returns> public static XmlAttribute AddAttrib(XmlElement AddTo, string attribName, string attribValue) /// <summary> /// Read a value from a given attribute on an existing node /// </summary> /// <param name="ReadFrom">node that has the attribute</param> /// <param name="AttribName">Name of the Attribute</param> /// <returns>value of the attribute or NULL if not found</returns> public static string ReadAttrib(XmlElement ReadFrom, string AttribName) /// <summary> /// Create a new node on a given node /// </summary> /// <param name="AddTo">Node to add the new node to</param> /// <param name="NodeName">Name of the new node</param> /// <returns>A referance to the newly created node</returns> public static XmlElement AddNode(XmlElement AddTo, string NodeName) /// <summary> /// Create a new text node on a given node with a given value /// </summary> /// <param name="AddTo">Node to add the new node to</param> /// <param name="NodeName">Name of the new node</param> /// <param name="NodeValue">Text value to set the new node to</param> /// <returns>A referance to the newly created node</returns> public static XmlElement AddTextNode(XmlElement AddTo, string NodeName, string NodeValue) /// <summary> /// Read a value from a given text node on an existing node /// </summary> /// <param name="ReadFrom">Node with the node to read</param> /// <param name="NodeName">Name of the node to read the value</param> /// <returns>inner text of the node.</returns> public static string ReadTextNode(XmlElement ReadFrom, string NodeName) } }
If anyone wants to suggest other methods or if you are using it and find a bug let me know…
Feedburner
I’ve signed up to feed burner for this site, so if you subscribe to the blog I should see you in the stats
Tutorials, Dodge v1.02 & L4D.
I’ve not transfered the Tutorials over from Xblog.org, and added the Dodge v1.02 page to projects.
Now I need to get on with some work on the editor. The only problem I have at the moment is I seem to keep playing “Left 4 Dead” which is counter productive, to the extreme.
Also webbers Xbox has developed tRRoD, so now he has to give me all his games, but he wont.
A new beginning, again…
I’ve imported all the posts from the old Xblog.org site, now to see if I can get the ones from live…
…Well sort of worked, if you discount the fact that for some reason I couldn’t save the RSS file from chrome and Incontinent Exploder 7.0 has stopped working altogether.
Entries marked Imported from Live came from the windows live blog that I was trying to reinvent myself through
Entries marked Imported from Xblog are from my older more stable blog that I killed off to re-invent myself.
Still got stuff to port over but It’s coming together…
<update>I’ve found a code syntax colour doobery-thingy-whatsit(technical term) if you find any posts with code I haven’t fixed let me know
</Update>

