all groups > dotnet xml > august 2004 > threads for august 22 - 28, 2004
Filter by week: 1 2 3 4 5
xmlNode.InnerText vs. xmlNode.Value
Posted by Dan at 8/27/2004 4:41:44 PM
I've loaded the following xml into an XMLDocument object:
<?xml version="1.0" ?>
- <Preferences>
<Institution>Argh</Institution>
<Speaker>Chigier, Ben (1234)</Speaker>
<Worktype>Addendum</Worktype>
<speakerCode>1234</speakerCode>
</Preferences>
I then try to retrieve the value of... more >>
XMLnodelist and XPATH Problem
Posted by Robert at 8/27/2004 3:10:34 PM
I am having a problem selecting nodes using the XMLnodelist Selectnodes
using XPATH when I use XML SPY is successfully queries but when is use
VB.net it comes up with nothing.
Here is my code
Dim nodess As XmlNode
nodess = myNode.SelectSingleNode("//Web[@Url=
'http://loca... more >>
Error when using XMLTextReader to read HTML
Posted by Mitch at 8/26/2004 7:26:03 PM
I have some simple HTML I'm trying to read with the XMLTextReader. As in the
MSDS examples, I set up a loop to read each XML node:
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element:
Console.WriteLine("<{0}>", reader.Name);
break;
ca... more >>
Value-of Select
Posted by Paul King at 8/26/2004 5:32:49 PM
Hi there,
Im in a pickle chaps. I need to fetch information out from our raw XML
files into a Style XSL sheet.
Basically I have the commant
<xsl:value-of select="Product/ProductCode"/>
However the structure of the XML file is based like the following example
<root>
<Product>
<... more >>
XSLT Doing my brain in....
Posted by Paul King at 8/26/2004 3:50:41 PM
Hi there,
I have a raw XML order file with the following structure
<root>
<header>
<body>
Ok the HEADER contains details about the XML msg and its originator etc -
pretty pointless stuff
The BODY however contains multiple Orders with descriptions and QTY's etc.
I have such de... more >>
XPath Query w/ Namespace
Posted by Scot NS Curry at 8/26/2004 3:45:30 PM
I have the following XML document.
<?xml version="1.0" encoding="utf-16"?>
<xd:xmldiff version="1.0" srcDocHash="6067335156532207495" options="None"
fragments="no"
xmlns:xd="http://schemas.microsoft.com/xmltools/2002/xmldiff">
<xd:node match="1">
<xd:node match="1">
<xd:node match="4"... more >>
XmlTextReader Problem - ServicePoint ConnectionLimit ArgumentOutOfRangeException
Posted by Keith at 8/26/2004 2:13:37 PM
Anyone else experience this problem when using the XmlTextReader? (See =
stack trace below)=20
I've installed the patch from knowledge base article 839588, but it =
didn't fix it.
System.ArgumentOutOfRangeException: Specified argument was out of the =
range of valid values.
Parameter name: T... more >>
XPath and default (overridden) namespaces
Posted by Peter Theill at 8/26/2004 10:11:28 AM
Hi,
I need some help on XPath ... what's the expressions to get:
1. All "Employee" nodes?
2. Only "Employee" nodes from "urn:test1" namespace?
The document is shown below.
<?xml version="1.0" standalone="yes"?>
<NorthwindEmployees>
<Employee xmlns="urn:test1">
<employeeid>1... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
whitespace in empty nodes after save
Posted by frostbox NO[at]SPAM hotmail.com at 8/26/2004 4:36:49 AM
Loading and saving a xml document in .net creates whitespace in empty nodes!
loading an empty node like:
<node></node>
..net saves as:
<node>
</node>
resulting in a whitespace when processed by xslt like:
<xsl:value-of select="node"/>
Can the whitespace be removed from empty ... more >>
XPath: counting unique values
Posted by Jo Goos at 8/26/2004 2:39:06 AM
Hello,
I would like to count the unique values of a specific element in an XPath
statement.
Let's say I have the next XML document ...
<CLUB>
<MEMBER>
<NAME>Fred</NAME>
<LOCATION>Canada</LOCATION>
</MEMBER>
<MEMBER>
<NAME>Louis</NAME>
<LOCATION>Belgium</LOCATION... more >>
Http ---> Protocol(XML) ---> Http Content
Posted by Shahzad Atta at 8/25/2004 1:28:43 PM
Hi there,
My web server needs to get html source of a web page from a remote web
server . This html will be rendered to client browser after some processing.
I know it can be done via XMLHTTP object but I am looking towards a .Net
complaint solution, which is part of default .Net framework.(... more >>
how do I import a XMLTextWriter into an XMLDOCUMENT?
Posted by Tarren at 8/25/2004 9:51:36 AM
Hi:
I want to append a new transaction to a transaction log.
The transaction log is trans.xml
<transactions>
<transaction>
<id>12</id>
<stamp>1/1/1900 12:02</stamp>
</transaction>
</transactions>
Basically I have been able to make the new TRANSACTION fragment... more >>
Serialize method call, store it and run it later
Posted by edumen26 NO[at]SPAM yahoo.com at 8/24/2004 3:28:13 PM
Hello,
I'm looking for the best way to store a method call so I can execute
it in the future. I asume that the soap infraestructure can be useful
because it can serialize the calls and deserialize them. I just need
someone to point me to the start line (olympic expression by the way
;) ).
Th... more >>
serialisation of classes to generate XMLDocument
Posted by Stephen at 8/24/2004 2:43:03 AM
I need to generate input XML for another application by serialising classes
defined in an XSD document. The code below will generate the XML I require
but I need to generate this in memory rather than creating a file. I assume
I should be using System.IO.MemoryStream but can't get this to wo... more >>
Using innerXml and outerXml on a xmlDataDocument leaks cpu-resourc
Posted by Henrik K at 8/24/2004 12:17:01 AM
Selecting element nodes from a xmlDataDocument using the childNodes
collection or by using selectSingleNode and then reading innerXml or outerXml
leaks cpu-resources.
A trivial example showing this behaviour is included below.
Running this example increases the cpu-load gradually and reaches... more >>
Binding XML to datagrid
Posted by Do at 8/23/2004 11:37:34 PM
Hi,
I tried to bind an XML similar to the following to a datagrid.
<Idontwant>
<Iwant>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
<Yes></Yes>
</Iwant>
</Idontwant>
The datagrid comes up with nothing. When I remove the node 'Idontwant' and
... more >>
free memory
Posted by frostbox NO[at]SPAM hotmail.com at 8/23/2004 9:25:01 PM
The system.xml.xmldocument does not implement a method to dispose() or
otherwise free the memory after instantiation.
Another discussion thread concludes that everything is handled
automatically though garbage collection once memory runs out !! (this
can't be efficient?)
Why then does other... more >>
How to generate dynamic XML from aspx page
Posted by Robson Carvalho Machado at 8/23/2004 7:03:02 PM
Dear Friends,
I was using the below code in ASP to dynamically generate XML from a SQL Query
Does anyone knows how can I migrate this code to VB and ASPX?
Regards
Robson Machado
Response.ContentType = "text/xml"
Response.Write "<?xml version='1.0' ?>"
dim RS, CN
set CN = server.Create... more >>
Schema Value Types int and Integer
Posted by Wayne Wengert at 8/23/2004 9:13:22 AM
According to the help file in VSNET 2003 the XML Schema Type "Integer" maps
to a .NET Framework type of "System.Decimal". This does not seem logical?
The Schema Type "int" maps to "System.int32" which seems logical. Can
someone explain this?
Wayne
... more >>
Write to XML
Posted by Diomatas at 8/22/2004 10:59:01 PM
Hello everybody
I am making an application in vb.net. I keep my app settings in an xml file.
What I am trying to do is to change the data of a node according to the
application user preferences.
All documents and example I ve found on the internet are about creating and
saving a whole x... more >>
XSL stuff
Posted by Eric D. at 8/22/2004 10:20:33 PM
Hi....
I have a sample xml that looks something like this:
<manifest>
<config>
<type>Processor Type
<options>
<option>ARM</option>
<option>Pentium</option>
<option>Alpha</option>
<option>Motorola</option>
</options>
</type>
</co... more >>
Specify Constraints in XSD
Posted by Wayne Wengert at 8/22/2004 8:39:06 AM
I am trying to find the correct way to create xsd files that include
constraints such as min and max values, etc. My current xsd file looks like
the example below (just an excerpt) but the <xs:restrictions... tag is
flagged as an error. I took that syntax from the sample in the Help files
(also ... more >>
|