Posts Tagged ‘XML’

Sum with empty element on XPath using .Net

When using sum function on XPath using .net you will get errors “Nan” if the node is empty because it use for numbers only. So, you need to select the nodes/elements that are not empty.

sum(//Quantity[node()])

, ,

No Comments


How to Create Schema from XML in .net

You will use the xsd.exe to create an schema from xml.

Process.start(“xsd.exe”, “xmlfile”)

, , , ,

No Comments


Value does not fall within the expected range.

Problem:
Value does not fall within the expected range.
This problem appears when using the web browser control in .net

Cause
Check and validate the supplied urlString, this should be a valid path.

, ,

No Comments


How to Insert Xml Node from One document to another XML Document in vb.net

If you want to insert xmlnode from one document to another, you have to import the xmlnode. 

dim xmlDoc01 as XMLDocument

dim xmlDoc02 as XMLDocument

private sub InsertNod()  ’insert xmlnode from xmlDoc01 to xmlDoc02

{

xmldoc01.AppendChild(xmlDoc01.ImportNode(xmlDoc01.ChildNodes(0), true))

}

, , ,

No Comments



SetPageWidth