all groups > dotnet xml > march 2006 > threads for march 8 - 14, 2006
Filter by week: 1 2 3 4 5
Problem with reading XML
Posted by prasanta at 3/14/2006 10:24:07 PM
Hello,
I have a xml file. when i am trying to load through XPathDocument and
try to get XPathNodeIterator its not working . my xml is loking like
<?xml version="1.0" ?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schema... more >>
How to access a network file path \\foo\bar.txt from an .aspx and from a custom IHttpHandler?
Posted by Daniel at 3/14/2006 9:40:44 PM
How to access a network file path \\foo\bar.txt from an .aspx and from a
custom IHttpHandler?
How to specify which account that aspx application should use when doing
file IO from network paths?
When I try to open the file from .aspx the file read throws: Logon failure:
Logon failure: unkno... more >>
XPath Expression to retrieve attribute value without case sensitivity
Posted by AST at 3/14/2006 12:04:01 PM
Hey,
I am struggling with how to form the XPath expression to find the value of
an attribute value without case sensitivity.
I have tried the following, but I must be missing something simple.
"SOLUTIONS/SOLUTION[@id=*[translate(text(),
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRST... more >>
Strange "Obsolete" message with Transform method
Posted by Mike Hofer at 3/14/2006 11:24:36 AM
I've got two statements in my code that are both generating weird,
weird, weird messages:
The first one was,
Dim document As System.Xml.XmlDocument
Dim navigator As System.Xml.XPath.XPathNavigator
Dim transform As System.Xml.Xsl.XslTransform
..
..
..
navigator = document.CreateNavigator... more >>
Trouble deserializing XML data from UPS.com
Posted by Grant Harmeyer at 3/14/2006 10:31:16 AM
I am trying to use the UPS.com online tools to develop a class libary that
uses serialization to communicate with their XML APIs. When I use the class
libary to generate a TimeInTransitRequest object, the XML looks like this (I
substituted the user credentials):
<?xml version="1.0" encoding... more >>
WebDAV/XML Question
Posted by Thomas Delany at 3/14/2006 10:23:33 AM
We are using WebDAV to extract and save Exchange users EML files off. I
have run into a problem when I try and get a list of emails within a
folder. We use the following…
strQuery = "<?xml version=\"1.0\"?><D:searchrequest xmlns:D = \"DAV:\" >"
+ "<D:sql>SELECT \"DAV:href\", \"DAV:conte... more >>
Visual Studio 2005 and XML Data view
Posted by hugo.flores NO[at]SPAM ge.com at 3/13/2006 12:44:31 PM
I remember that in 2003 there used to be a view where you could see
your XML file as a table.
Where did the "Data view" went in VS 2005?
... more >>
XmlSchemaException in App.config using UIP Application Block
Posted by SparkPlug at 3/13/2006 9:08:33 AM
Does anyone know why I might be getting an XmlSchemaException in App.config
configured as below to use the UIP Application Block?
I get the following error for every element, sub-element and attribute
within the <uipConfiguration> element:
Message 1 Could not find schema information for th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
xPath query
Posted by TR at 3/10/2006 6:37:06 PM
I'm trying the select a element based on values of two attributes. In the
Xml doc i need to look at an attribute minVal and maxVal. if the Value I'm
passing in in the xPath is greate than min "and" less than max, I'll want
to pull all the attributes of that element.
Is this possible with ... more >>
XmlDocument.Save() does not close the file properly?
Posted by liuhengyi NO[at]SPAM gmail.com at 3/10/2006 5:22:27 PM
Hi,
I have a test program that creates 5 threads and each thread uses
XmlDocument.Save(filename) to save a Xml dom to a file. I have put the
lock statement around the Save to prevent from concurrently updating.
However I'm still seeing "System.IO.IOException: The process cannot
access the fil... more >>
Assigning XML string as the content of an attribute
Posted by McGeeky at 3/10/2006 2:46:58 PM
Hi. I want to assign an XML string to an XML attribute. This XML string must
undergo "escape" conversion so that the < and & symbols are converted in to
escaped equivalents.
Does the .Net library have a conversion method that does this? Note that I
want to construct the resulting XML string... more >>
XmlSerializer constructor
Posted by mr_foo at 3/10/2006 12:43:05 PM
I'm having trouble constructing the XmlSerializer without getting a
Configuration Exception(Only elements allowed: Line 3) in Dev Studio 2003.
When I remove the <system.diagnostics> node from my app.config I don't have
any issues but I wanted to keep the node. Please let me know if anyone has... more >>
How can I loop through XML like this? thanks
Posted by davidw at 3/10/2006 9:39:05 AM
I have flat xml like this
<field name="a1"/>
<field name="a2" merge="true"/>
<field name="a3"/>
<field name="a4"/>
<field name="a5" merge="true"/>
<field name="a6" merge="true"/>
<field name="a7"/>
but I want to loop through them like this
<field name="a1">
<field name="a2"... more >>
MemoryStream, Backslash-Zero Problem
Posted by rasx at 3/9/2006 6:29:27 PM
I get this error when I fail to ‘clean up’ my UTF-8 MemoryStream: “Invalid at
the top level of the document. Error processing resource…†Visual Studio 2005
in debug mode shows well formed XML “prepended†with a character represented
by an empty rectangle and trailed with a series... more >>
Verify an xml file is valid
Posted by David Thielen at 3/9/2006 1:25:29 PM
Hi;
What's the fastest way to verify that an xml file is well-formed (and valid
if it has a dtd)? I don't want to pull any data out, I just want to make sure
it is a good file. (When the user selects an xml file to save and use in the
future, we want to do a fast sanity check on it.)
-- ... more >>
XML Deserialization Issue
Posted by joshjbond NO[at]SPAM gmail.com at 3/9/2006 1:21:50 PM
Hello All,
I am having some trouble deserializing some xml into a series of
objects that are part of a web service proxy. I know the XML is valid,
and the objects are up to date (the xml instance doc validates against
the original scheme, which is current with the WSDL). The issue looks
famil... more >>
Xml validation exception only occurs outside debugger - VS 2003 C#
Posted by Chris Stiefeling at 3/9/2006 10:26:28 AM
Hi,
I am experiencing a strange problem. I am reading and writing xml files via
XmlDocument and XmlTextWriter. In the debugger everything works fine but
outside the debugger (debug or release) I receive the following error: "The
type initializer for "System.Xml.Schema.Validator" threw an... more >>
UPS Online Tools
Posted by Grant Harmeyer at 3/9/2006 9:53:27 AM
OK, this is going to be a lengthy post with a lot of code. I have built a
class library in C# for communicating with UPS' online tools for package
tracking, time in transit and a few other services. I have used
serialization to form the requests and I use deserialization to read the
response... more >>
XML Schema - limit occurrence
Posted by 1-crm NO[at]SPAM freenet.de at 3/8/2006 11:23:01 PM
Hi,
i'd like to validate my XML file (see below) using XML Schema.
Now my question: is it possible to limit the occurrence of the element
b in the data element.
I mean: data can contain up to 6 b elements, but it doesn't matter how
the b elements are allocated in the elements a and c.
An... more >>
Need help getting timezone info in webservice
Posted by Bill at 3/8/2006 6:21:28 AM
(I forgot to mention that I'm using C#)
-------------------
When communicating with a server via webservices, I need to view and set the
timezone information for a simple object (it contains one DateTime and one
string).
Is there a way to force the DateTime part into a string on the clien... more >>
Tag without endelement
Posted by Peter Morris [Droopy eyes software] at 3/8/2006 12:00:00 AM
I expect this in my xml
<van id="1234">
<stock level...../>
<stock level..../>
</van>
I do xmlReader.Read(), if the NodeType == XmlNodeType.Element then I call
ImportVanStockLevels(xmlReader);
ImportVanStockLevels will do this
1) read each attribute
2) call xmlReader.Read() until <... more >>
|