XPATH With Default Namespace In C# - XpathNavigator

April 4, 2013 at 8:00 AMRajeev
This article explains the sample C# code using XPath Navigator to select an XML element from an XML file which is having a default namespace.Normal xpath expression won't return anything if there is a namespace defined in Xml file.
This article explains the sample C# code using XPath Navigator to select an XML element from an XML file which is having a default namespace.Normal xpath expression won't return anything if there is a namespace defined in Xml file. [More]

Posted in: C#

Tags: ,

How To Select Required Number Of Nodes From Top or Bottom Using XPATH - C#,VB.NET

April 3, 2013 at 8:39 AMRajeev
This post explains how you can access a specified number of required XML elements using the XPATH expression,top n elements ,bottom n elements etc. Same sample is given in both C# and VB.NET.
This post explains how you can access a specified number of required XML elements using the XPATH expression,top n elements ,bottom n elements etc. Same sample is given in both C# and VB.NET. [More]

Posted in: .NET

Tags: , ,

How To Select An XML Node Element Values According To A Specific Attribute Value - C#,VB.NET

April 3, 2013 at 8:05 AMRajeev
By this article I presents sample code to select individual XML element value from an XML file according to a specific attribute value provided.This sample uses Xpath expression to select the elements.
By this article I presents sample code to select individual XML element value from an XML file according to a specific attribute value provided.This sample uses Xpath expression to select the elements. [More]

Posted in: .NET

Tags:

How to Select Xml Element Nodes From An Xml File using Xpath - C#,VB.NET

April 3, 2013 at 7:27 AMRajeev
Sample code in C# and VB.NET to Select Xml Element Nodes From An Xml File using Xpath expression.
Sample code in C# and VB.NET to Select Xml Element Nodes From An Xml File using Xpath expression. [More]

Posted in: .NET

Tags: ,

C# .NET- How To Read CDATA Section

March 28, 2013 at 8:03 AMRajeev
CDATA (Character Data) as discussed in my previous articles is used to store information in XML file as unparsable data so that no parser will parse it and will be treated as pure char string. In this article I am explaining how to read the data stored as CDATA section in an XML file using XmlDocument in C# .NET.
CDATA (Character Data) as discussed in my previous articles is used to store information in XML file as unparsable data so that no parser will parse it and will be treated as pure char string. In this article I am explaining how to read the data stored as CDATA section in an XML file using XmlDocument in C# .NET. [More]

Posted in: C#

Tags: , ,

How To Store Java Scripts In XML

March 27, 2013 at 9:01 AMRajeev
CDATA can be used to store text data in XML file so that it should not be parsed by any XML parser. Any data stored under CDATA are recognized as non markup.For more details on CDATA read the article CDATA(Character Data In XML).
CDATA can be used to store text data in XML file so that it should not be parsed by any XML parser. Any data stored under CDATA are recognized as non markup.For more details on CDATA read the article CDATA(Character Data In XML). [More]

Posted in:

Tags: , ,

What Is CDATA In XML ? (What Is Character Data/ Unparsed Data in XML?)

March 27, 2013 at 8:30 AMRajeev
CDATA is used to store text data in XML file so that it should not be parsed by any XML parser.DATA are used to escape blocks of text containing characters which would otherwise be treated as markup.
CDATA is used to store text data in XML file so that it should not be parsed by any XML parser.DATA are used to escape blocks of text containing characters which would otherwise be treated as markup. [More]

Posted in:

Tags: , , , , ,

What Is PCDATA In XML (Parsed Character Data in XML) ?

March 27, 2013 at 8:18 AMRajeev
XML parsers are used to parse XML files. All parser normally parse the data inside the XML element tags also when the entire XML file is parsed.This parsing is needed since any XML element tag can contain other element tags also.PCDATA,the Parsed Character Data is nothing special.It is the normal data stored in any XML file that will be parsed by any XML parser. Simply put,PCDATA are data which are always recognized as markup [More]

Posted in:

Tags: , , ,

C#.NET - Code Commenting Best Practices

March 22, 2013 at 9:22 AMRajeev
Code commenting has given lesser priority most of time during programming. In actual, it needs similar or even more attention than code lines to give readability and maintainability in the long run. It is quite common that code written by one programmer will be maintained or upgraded by various other developers during the product life span and hence code commenting is not an optional topic at all. In this article I am explaining some of the key points to be taken in to account while code commenting. My explanation is in the context of .NET programming and is somewhat similar for other languages also [More]

Posted in: .NET

Tags: , ,

XML document parsing in .NET - Best and efiicient options

March 21, 2013 at 7:29 AMRajeev
.Net framework has got various mechanisms for reading and querying XML documents.But what are the pros and cons of each of these methods? which is the best efficient mechanism out of all these? Which is most efficient in terms of performance? Which is simpler and faster to code?
.Net framework has got various mechanisms for reading and querying XML documents.But what are the pros and cons of each of these methods? which is the best efficient mechanism out of all these? Which is most efficient in terms of performance? Which is simpler and faster to code? [More]

Posted in: C#

Tags: , , , , , , , ,