Geeks With Blogs
INETA Pakistan Blogs Home of INETA Geeks August 2005 Entries
.NET Pakistan : Where Paki Geeks Hangout!
What is .NET Pakistan.Net Pakistan will initially be a blogging site that will evolve as a .NET Portal and a discussion forum. At .NET Pakistan you will be getting daily dose of technology updates, code snippets, tutorials, best practices, and solutions for their posted problems.Blogging at .Net Pakistan will be done by experienced .Net Professionals from around the globe. The list of bloggers will increase with time. If you are interested in blogging for us then do write us at (dotnetpakistan@yahoo.com) ......

Posted On Tuesday, August 23, 2005 11:05 PM

some interesting responses on UTF-16 problem with XMLTextWriter
This is what hb replied with : yar may be, becauseutf-16 is two byte per character.so with string writer its unicode.if u enforece ascii then utf-8 would be there.(note: my reply is just an argument, i might need correction, so dont hesitate to correct me)---hBI replied hb's mail as following: yes exactly thats wat the point is.. it sounds reasonable for string writer to generate a utf-16 prologues .. but my amazement revolves around the fact there isnt any support for parametrizing prologue specually ......

Posted On Tuesday, August 23, 2005 1:56 PM

System.IO.StringWriter and UTF-16 Encoding problem with System.XML.XMLDocument
I am continuing my work with System.XML and System.XML.XPath namespaces. This implies that my adventure with XML and .NET is not over yet. I came across this interesting situation while freezing my code for next release.I was actually generating XML document using System.IO.StringWriter and System.XML.XMLDocument. Apparently there shouldnt be any issues with it. But actually there is a small problem with that. When you use StringWriter to write XMLDocuments it appends a prologue with “UTF-16” ......

Posted On Tuesday, August 23, 2005 1:54 PM

Extracting XMLNode from XPathNodeIterator
The project that I am working on these days require me to play a lot with XML. To navigate XML and fetch required information I use XPath to query XML. Though XPath offers significant performance gains over XMLNode (DOM) based parsing. However, there are times when you just want to use XMLNode perhaps you want to get hold of OuterXML or want to append certain element to DocumentElement of XML document. In these scenarios XPathNodeIterator apparently is of no particular help, or so I thought atleast. ......

Posted On Tuesday, August 23, 2005 1:53 PM

System.Enum.Parse :: The right way!
To compare strings with enums the right way, one should use enum.parse rather than comparing string literals. Following is an example where i am parsing a string type variable named messageId and creating an enum of type MessageTypeMessageType messageType = (MessageType) System.Enum.Parse(typeof(Me... argument in System.Enum.Parse specifies if the enumeration/comparison should be case sensitive or not. Hammad Rajjoub,MVP (Windows Server System - XML Web Services),User ......

Posted On Tuesday, August 9, 2005 4:09 PM

Using XMLWriter to create XML Documents
If you want to generate an in-memory XML Document i.e. without creating a file on system you can use System.IO.StringWriter class to provide IO stream to an XMLTextWriter instance. Following is a code snippet that I used to create an XML Document. this.returnMessage = new System.Xml.XmlDocument();Sy... stringWriter = new System.IO.StringWriter();Sy... xmlTextWriter = new System.Xml.XmlTextWriter(st... xmlTextWriter.WriteStartDoc... ......

Posted On Tuesday, August 9, 2005 4:07 PM

XPath Query
I came across following good links that you may find useful if you want to learn the art and science of XPath query.1- Understanding XPath at Queue Publishing2- XPath Essentials at DNJ Online3- XPath Queries at Developer.com Hammad Rajjoub,MVP (Windows Server System - XML Web Services),User Group Leader - Dot Net Wizards (http://dotnetwizards.blogs... UG Relations Committee (http://inetapakistan.org),... Speakers Bureau (http://mea.ineta.org) ......

Posted On Tuesday, August 9, 2005 3:40 PM

Visualise XPath Queries with Visual XPath
Any one who has used XPath to navigate XML Documents knows that it is a tricky business to do. Selecting specified node(s), evaluating expressions and things like that could actually take a bit of your time. And this all isnt much intuitive to a common developr.I my self usually have to refer to XPath query syntax whenever i intend to use it. I came across this awesome tool that was written by my senior and mentor Noman Laghari.The best part with Visual XPath is that you dont really have to compile ......

Posted On Tuesday, August 9, 2005 3:39 PM

Hop goes the VS Developer [VS.NET IDE for Linux]
Many people had been inquiring how they can use their existing .NET skills to develop applications for Linux. Mono was what got people excited but I have seen all the interest and enthusiasm recede as soon as people get a glimpse of how they can go about developing applications using Mono. I believe its primarily because most .NET developers are Windows users and don't have enough Linux skills to get started on Mono. Enter Grasshoper, the Visual Studio .NET IDE for Linux. You DO NOT actually have ......

Posted On Sunday, August 7, 2005 10:43 PM

Undserstanding Microsoft Integration Technologies
In todays world of EAI (Enterprise Application Integration) and SO (Service Orientation) its very important to understand integrating technologies and tools that are made available to us. I always say that todays is the information world that can be thought of applications as an islands automated within themselves but not usually connected to others. And to connect them is "the task". Sooner or later our most of efforts and development time would be consumed in either integrating applications or ......

Posted On Tuesday, August 2, 2005 2:17 PM

Copyright © INETA Pakistan | Powered by: GeeksWithBlogs.net