all groups > dotnet xml > may 2004 > threads for may 8 - 14, 2004
Filter by week: 1 2 3 4 5
XPath problem with dateTime strings comparison
Posted by Viktor Jevdokimov at 5/14/2004 7:53:52 PM
Hello,
I've got an XML file saved from DataSet. One table has datetime column
(datatype - xs:dateTime). XML file fragment for example:
<Root>
<Element>2004-03-15T00:00:00.0000000+01:00</Element>
<Element>2004-03-16T00:00:00.0000000+01:00</Element>
<Element>2004-03-17T00:00:00.0... more >>
Invalid XML document generated from WriteXML() on a strongly typed dataset
Posted by Dave at 5/14/2004 5:35:32 PM
Hi all,
I've seen that many people have had this exact same problem in the past, but
no-one seems to post the answer when (if) they solve it... so here we go
again.
If I create a strongly typed dataset from an xsd schema I've created in
VS.NET 2002, instantiate and populate the dataset and ... more >>
printing out :
Posted by MFRASER at 5/14/2004 2:27:13 PM
Ok. I am new to the DOM document idea. I previously just created my XML
using a textbuilder or string object.
Now I am trying to create the XML in a string format, send the XML to
another object , and rebuild the DOM inside the object.
Here is my code pay attention to the last five lines.
... more >>
syntax: " or ' ?? (<?xml version="1.0")
Posted by DraguVaso at 5/14/2004 12:41:19 PM
Hi,
I have a simple question regardign the syntax: do I have to need double
quotation marks or single qoutation marks in my XML?
For exemple:µ
<?xml version="1.0"
or
<?xml version='1.0'
the first one seems the 'official' way to me, but because I need to make
XML-strings in some applica... more >>
XmlSerializer with object derived from CollectionBase
Posted by eastsh at 5/13/2004 10:30:54 PM
I have been looking into using the MS application block for
configuration management, and I am very happy with the options it
provides. Since it stores hashtables, I decided that for configuration
data my app needs, I would create strongly typed collections for each
config type. For instance... more >>
Serialize CollectionBase derived List to XML file
Posted by Colin Basterfield at 5/13/2004 6:46:44 PM
Hi,
I have a list which is derived from CollectionBase, and it contains a list
of User objects, which I want to Serialize out to an XML file.
Is there anywhere where I can find how to decode it so that it recognizes
what objects are held in my list? or an example in C# prefereably?
Many ... more >>
Array Bounds Exception Inside system.xml.dll
Posted by William McIlroy at 5/13/2004 6:41:05 PM
Array Bounds Exception inside system.xml.dll. Test data is a dozen GB (available for the asking on CD). Source code follows. Call into system.xml.dll happens at the while statement..
using System
using System.Xml
using System.Collections
// This program reads an ASCII file of XML elements
... more >>
XML DOM to Stream
Posted by Sean Wegele via .NET 247 at 5/13/2004 5:45:48 PM
(Type your message here)
--------------------------------
From: Sean Wegele
I would like to get from
Xml.XMLDomDoc to a IO.MemoryStream
Any help? this is driving me nuts!
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>NX1HZZSzl06PJsFKh8864A=... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to get "version" and "encoding" using xmltextwriter
Posted by Amil Hanish at 5/13/2004 1:16:30 PM
I am trying to use XmlTextWriter. I write the xml data fine, but the file
is missing the first line that shows the version and encoding:
<?xml version="1.0" encoding="utf-8"?>
Can the XmlTextWriter do this?? Thanks.
Amil
... more >>
How can I get XmlNode from XmlTextReader
Posted by Bnaya Eshet at 5/13/2004 12:19:09 PM
How can I get XmlNode from XmlTextReader
I need something like reader.Value bau instead of string I need the XmlNode
object.
Does any one know how to do it?
TNX
... more >>
How fill Dataset from XML file?
Posted by VB Programmer at 5/13/2004 11:38:07 AM
How do I use an XML file to fill a dataset? Any code examples?
XML format:
<Server>
<Name></Name>
<Ip></Ip>
<OS></OS>
</Server>
The XML file has 10 of these records.
Thanks!
... more >>
XPath helper upon XmlTextReader
Posted by Bnaya Eshet at 5/12/2004 5:21:18 PM
I do like XPath, I really do.
But I'm working on the compact framework which XPath is not included.
So I come to understanding that if XPath do not come to the mountain,
The mountain will come to XPath.
I decided to build an XPath evaluation helper with will get XmlTextReader... more >>
How to skip ?
Posted by joemann at 5/12/2004 4:56:02 PM
I'm reading XHTML documents into an XmlDocument object via an XmlTextReader. The problem is that many of the documents use very large numbers of tags for formatting, and it appears that the XmlDocument parses each of these into its own node - which bogs down the load time. If I remove the &... more >>
XML Serialization of Top Level Collection Class
Posted by Brian Orrell at 5/12/2004 2:59:15 PM
I know how to deserialize a collection class that is referenced in a
container class as a variable or property using the XmlArray and
XmlArrayItem attributes. What I can't for the life of me figure out is how
to deserialize a collection class that is the top level element of an xml
stream. Hop... more >>
XSLT from XSD
Posted by RS at 5/12/2004 2:29:33 PM
Is there a way to create a XSLT style sheett from XML document or from XSD
schema?
... more >>
Weird Issue XML AppendChild
Posted by anonymous at 5/12/2004 11:32:45 AM
Can you not append a XmlWhiteSpace node to XmlDocument?
See example:
using System;
using System.Xml;
class TestXml
{
public static void Main(string[] args)
{
string xmlDoc = @"<root><child>a</child></root>";
string newXml = @"
<child>b</child>
<child>c</child>
";
XmlDo... more >>
xsd.exe and code generation
Posted by Wayne at 5/12/2004 11:21:42 AM
I have three xml schemas, one schema contains types that the other two
referance. When generate code for each of the schemas, all three cs files
contain the types that are part of the common schema.
Currently I am going through the auto generated code and removing the common
types, with the he... more >>
XMLWriter and XMLDocument
Posted by David Withnall at 5/12/2004 1:56:08 AM
Okay
I am using an XMLDocument object to process several thousands of lodgements (from a database)
I am trying to output it from an XML Document to a file using the XmlDocument.WriteTo() method with an XmlWriter. It writes 131kB and then cuts out halfway through an element
Is this a limitation... more >>
Counting nodes
Posted by Sonu Kapoor at 5/11/2004 2:09:19 PM
Hi guys,
I know that counting of nodes is not a big deal. But I
need to do something where I cant get any solution. Here
is how my xml looks like.
<?xml version="1.0" encoding="utf-8"?>
<CategoryList>
<Category>
<MainCategory ID="3">XML</MainCategory>
<SubCategory>Basic</Su... more >>
XSD.exe and code it generates
Posted by mewayne NO[at]SPAM hotmail.com at 5/11/2004 7:29:55 AM
I have the following XML snipet:
<PROFILEINSPECTION MODIFIED="TRUE">
<PROFILEINSPECTIONID MODIFIED="TRUE">8622</PROFILEINSPECTIONID>
</PROFILEINSPECTION>
using VS.net I have created a schema, and do the following:
1) remove the Dataset as I don't need it.
2) Set the PROFILEINSPECT... more >>
Indent xml
Posted by guy at 5/10/2004 9:37:48 PM
Is there a simple way to indent xml with dotnet? SQL Server returns a long xml string that is hard
to read.... more >>
Error opening xml file
Posted by brckcc NO[at]SPAM novell.com at 5/10/2004 3:51:02 PM
I'm attempting to use XmlTextReader. When I call the Read() method I get the following error
"The data at the root level is invalid. Line 1, position 1.
The xml is formatted fine. The first entry in the xml file is a valid tag
What does this error trying to tell me. I can read the file usin... more >>
Problem with ReadXml into DataSet
Posted by Linus Rörstad at 5/10/2004 2:42:02 PM
Hello!
I have created a xml-file by using the writeXml method on a dataset. The
problem arrises when I want to read the xml-file back into a dataset on a
pocket pc application. Some of the fields which are strings have whitespaces
added to end of the values in the dataset but not in the xml-fi... more >>
InsertAfter does not work.
Posted by Sonu Kapoor at 5/10/2004 1:33:58 PM
Hey Guys,
I am trying to insert a xml elmement right after specific
MainCategory element in the following xml file:
<?xml version="1.0" encoding="utf-8"?>
<CategoryList>
<Category>
<MainCategory ID="3">XML</MainCategory>
<Description>List of XML articles.</Description>
<Active>Ye... more >>
Reading in an xls data file
Posted by BobTheHacker at 5/10/2004 10:31:06 AM
Should I not be able to read an XSL file into the XMLDocument to modify it etc? When I do I get Zero items into my collections. Here is the code
FileStream myFile = new FileStream("C:\\mystyles\\styles\\sdoc.xsl", System.IO.FileMode.Open, System.IO.FileAccess.Read)
StreamReader myReader = new... more >>
SAX model and XmlTextReader
Posted by Raghu at 5/10/2004 7:59:42 AM
Does XmlTextReader class in .net represent SAX implementation?
If yes, are there any performance gains if I use C++ SAX implementation in
msxml4.dll versus XmlTextReader in .net? Did any one try this?
If no, what is the .net class that implements SAX model?
Thanks.
Raghu/..
... more >>
Simple XML Log
Posted by HHoulston at 5/10/2004 4:26:03 AM
I want to receive an XML document via an aspx page and log the raw xml to a text file. I've been looking at this for a while and can't work out how to do it. Can someone tell me how to grab the raw xml text (once I've got the text I can do the logging bit)
Thanks... more >>
XMLNavigator
Posted by Kate_Luu at 5/9/2004 9:24:26 PM
Hi All,
Is any body know what is the name space for XMLNavigator and
DocumentNavigator? Do XMLNavigator and DocumentNavigator obsoleted? If they
were, What are the new classes replacable for them? Any help is greatly
appreciated. Thanks you all in advance.
Kate
... more >>
xmlserializer and IDIctionary
Posted by chris.hickman NO[at]SPAM unix.net at 5/9/2004 8:43:49 PM
Hello,
I wrote this code a while back to solve the problem of serializing
hashtables that can hold complex types (as long as you know what types
it may hold ahead of time).
Public Class SerializableHashtable
Inherits System.Collections.Hashtable
Implements IXmlSerializable
P... more >>
Graphing XML Data using C#
Posted by James McCormack at 5/9/2004 5:45:48 PM
I've got a list of bowling scores and I'd like to create a graph of them.
I've looked into crystal reports, but this seems like too much work for what
I'm needing.
Does anyone have any examples ??
Thanks,
Jim.
... more >>
|