all groups > dotnet xml > december 2003
Filter by week: 1 2 3 4 5
Interesting Problem with System.Data.SqlClient.SqlCommand.ExecuteXmlReader()
Posted by Dylan Phillips at 12/31/2003 9:16:02 PM
A strang error is occurring when I run the following code:
SqlConnection c = new SqlConnection();
c.ConnectionString = "Initial Catalog=Northwind;user
id=sa;password=kat1ie;Data Source=server";
c.Open();
SqlCommand command = c.CreateCommand();
command.CommandType = CommandType.Text;
command... more >>
Extracting XML data to be used in XSLT HTML output
Posted by Grant Harmeyer at 12/31/2003 3:21:43 PM
Ok:
I have done small level Xml stuff and am just now starting to understand
some of the plumbing involved. I've done a lot of .NET programming for SQL
Server, but little for Xml data stores.
I am currently just interested in using the .xsl file that I have being
applied to a source .xml fi... more >>
need HELP.how to compare a xml file with another file using vb.net?
Posted by rajesh at 12/30/2003 8:59:40 PM
hi all
i have a doubt!
i want to compare two files,one is a xml file which has
some certain rules,and the otherone is a "c" file.
i want to check each and every line of the "c" file which
should satisfy the rules written in xml file,if any error
occurs,it should display an error message in ... more >>
Casting using XmlSchemaSequence on web form VS inside C# class
Posted by pete NO[at]SPAM bga.com at 12/30/2003 1:07:02 PM
I am reading a schema with two DataTables and loading into a dataset.
In my intial tests I was using a web form. Everything was running
great so I convert it over to a class. Now I am getting
"System.InvalidCastException: Specified cast is not valid". I have
checked to make sure the same n... more >>
MSXML2.XMLHTTP username and password encoding
Posted by rick NO[at]SPAM oyarsa.com at 12/30/2003 11:28:37 AM
I'm working on a project where we have to call up a URL from a Java
servlet - the only sample call we have is some Javascript that used an
MSXML2.XMLHTTP object to send the request, using a username and
password.
How is the username and password actually passed to the target web
server for th... more >>
XML Schema Inherits
Posted by mreid NO[at]SPAM exhibitworks.com at 12/30/2003 10:34:58 AM
Can one XML Schema Inherit another ?
... more >>
typed datasets and duplicated relations
Posted by Iain at 12/29/2003 9:16:59 PM
I'm struggling to create a typed data set (with xsd.exe) with 4 tables and 3
layers
orders -> Items
Items->ItemAtts1
Items->ItemAtts2
if you follow me. it's kind of working, but I don't seem to be getting the
bottom relationship (Items->ItemAtts2). When I look in the generated code I
fi... more >>
XMLreader to text
Posted by Bill H at 12/29/2003 11:07:39 AM
How do I read the entire XML text from an XMLReader ?
I just want to retrieve the XML string from a SQL SP formatted as XML. =
I assumed the ExecuteXMLReader was the best option. So whats the most =
streamlined process of getting the XML into a string ?
Thanks
Bill... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Retrieve XML from DataSet without Schema
Posted by Sarmad Aljazrawi at 12/29/2003 2:14:15 AM
Hi,
Is there a way to retrieve xml document as xml string from a dataset without
its schema?
Regards,
Sarmad Aljazrawi
B.Sc. Computer Science, MSDBA, MCP
www.aljazrawi.net
... more >>
XPathDocument and retrieving xml string
Posted by Robert Strickland at 12/27/2003 10:53:57 PM
I load an xml stream into a xpathdocument type, compile a xpath expression
and select to specific node. I find the node and wish to return the innerxml
of that node. When I use value of the current node I get back the "values"
of the child nodes but no formatted xml which I need for transformatio... more >>
Validating XML file
Posted by Uwe Kuhne at 12/27/2003 9:27:04 PM
I receive a XML file from a customer and want to use a schema for validating
the XML file. What I don't know how to do is, that I want to continue
processing this XML - file no matter if there is an error or not.
e.g. I have an element <Code> which can contain values 1 to 9.
If something el... more >>
Writing CDATA data to XML
Posted by Yasutaka Ito at 12/27/2003 3:14:47 PM
Hi folks!
I have a DataSet, which I'm writing into XML using the DataSet.WriteXML()
method. Now, I want to write the cell's data/text as CDATA, when it is
written into an XML. For example, I want the XML output as follows:
<root>
<myElement><![CDATA[abc]]></myElement>
</root>
but not... more >>
Web Services SDK - Where ? (WSDK )
Posted by Dan at 12/27/2003 2:05:52 PM
MSDN includes a some interesting pages about using the
Microsoft.com Web Service SDK, Version 1.0 at
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/mscomwssdkproject/sdk/microsoft.com_web_service_sdk_ver
sion_1.0.asp
Everything except where to get it. I can't find anyth... more >>
Extracting custom data with an XSLT?
Posted by Moogy at 12/27/2003 1:49:36 AM
I'm pulling my hair out here. First, I'm new to XML, so that doesn't
help, but none of this makes any sense to me. All I'm trying to do is
take a simple source XML file and translate it with an XSLT to produce
HTML code.
The problem I have is that no matter what translation it runs through... more >>
XmlRootAttribute ignored when serializing class from array
Posted by Dave at 12/26/2003 7:41:04 AM
Hello,
I'm trying to solve an XML serialization problem that
appears to me to be be a bug with the XmlSerializer.
Let's say I have a class that looks like this:
[XmlRootAttibute(ElementName="x"]
public class y
{
[XmlAttribute("a")] public string a;
[XmlAttribute("b")] public str... more >>
Xml Dom .net bug???
Posted by Daniel Bass at 12/24/2003 11:40:43 AM
given a snippet from an XML message
....
<DATA name="John" value="23" />
<DATA name="Betty" value="71" />
<DATA name="Craig" value="" />
<DATA name="Lisa" value="42" />
....
I load this into the Xml Dom in .Net (VB), and query each node for the
'name' and 'value' attributes.
When I ge... more >>
Can XML describe different hierarchical data?
Posted by Bruce W.1 at 12/23/2003 9:30:00 PM
I want an XML file to describe hierarchical data where each node is
different. Each node will contain different and varied other nodes.
Describing this in an XML file would be easy but I'm having a problem
with this as related to DTD or XSD.
What the XSD really needs to do is describe a node... more >>
XMLREADER or XMLDocument???
Posted by john88m NO[at]SPAM hotmail.com at 12/23/2003 4:46:56 PM
How do I read the attributes of this XML? I have a page with text boxes that
i want to read
these values in. notice there are 2 Parameter tags with the same attributes.
Code would help
<TranslationRecords>
<TranslationRecord TrxID="1">
<ParameterCollection>
<Parameter KeyName="FielD... more >>
Serializing a class
Posted by Jeff Bunting at 12/23/2003 2:41:29 PM
I'm trying to serialize a class I have and have been getting:
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.xml.dll
There was an error reflecting type MyClass.
I noticed in the help for the SerializableAttribute Class the following:
"Indicates that a ... more >>
Trying to understand why simple XML will not validate
Posted by Ron Rohrssen at 12/23/2003 11:31:10 AM
I've been working on learning XML schemas and trying to
make use of the MS classes for validating data against a
schema.
So, I've been trying to work through some simple schemas
and instances. But, the parser inside of Visual Studio
seems to frequently validate against a cached version of... more >>
XML validating and writing at the same time
Posted by Brian Kedersha at 12/23/2003 10:45:17 AM
I am receiving XML data that I would like to validate against my schema and
write at the same time.
Some of the data is optional, if the data in the optional elements is
incorrect, I would like to write blank data to that element, and then
continue validating against my schema.
Any ideas?
... more >>
Trying to validate XML w/ an XSD..
Posted by Jonas Bush at 12/22/2003 12:44:34 PM
I'm trying to validate an XmlDocument with an XSD schema,
and I'm getting the following error:
Could not find schema information for the
element 'month'. An error occurred at , (1, 40).
Here is the code I'm using for validation:
System.Text.UTF8Encoding utf8 = new
System.Text.UTF8Enco... more >>
XmlTextReader fails on reading DOCTYPE?
Posted by keldan at 12/22/2003 7:33:13 AM
I am hoping someone on this list can shed some light on
the below issue for me. I am using XmlTextReader to read
from an XML file. Unfortunately, an exception is thrown
("Index was outside the bounds of the array.") when the
reader reaches the DOCTYPE. If I remove it everything
works fi... more >>
escapeOutput and webmethod
Posted by sd at 12/21/2003 7:59:40 PM
Hello All,
I aplogize if this has already been answered however I
couldn't find anything related to this...
I have bunch of webservices written in vb.net returning
native data types, due to constraints of the client I need
to return data that has been output escaped i.e. when a
string... more >>
Generate XSD from class
Posted by Bert at 12/21/2003 3:15:00 PM
Hi,
Is there a way to generate an XSD from a class programmatically, so without
using xsd.exe?
Thanks,
B.... more >>
XML comments
Posted by Saso Zagoranski at 12/21/2003 10:59:42 AM
Hi!
I have a question about XML comments included in VS. net.
Let's say I have a project in a solution. And this project has a class with
some methods:
class MyClass
{
/// <summary>...</summary>
/// <param name="param1"> parameter1</param>
/// <returns> some string </retu... more >>
direct edit of the ii6s metabase.xml using c# or vb.net
Posted by Roger at 12/20/2003 8:02:17 PM
I need to edit the IIS 6.0 config file (metabase.xml) and had a go with this
code, trying to get a list of all defined websites, and write their name to
console, but it does not seem to work, would appreciate any pointers:
-----------
Try
Dim doc As New XmlDocument
... more >>
SOAP responses and .NET
Posted by sjain NO[at]SPAM wherenet.com at 12/20/2003 12:56:01 AM
I am testing a WebService by writing a client on .NET.
I used the WSDL to successfully create a proxy class, and
am able to send correct SOAP requests, as per the WebService.
The SOAP trace utility shows that I am getting a good SOAP
response.
However, the .NET proxy object returns silen... more >>
Serialize class to string?
Posted by Ben Fidge at 12/19/2003 7:20:36 PM
How do you use the XmlSerializer to serialise a class instance to a string
as opposed to a file or stream?
Thanks
Ben Fidge
... more >>
Serializing an object.
Posted by Scott Meddows at 12/19/2003 12:06:50 PM
I'm trying to serialize an object in VB.NET. I have all my objects denoted
with the <Seralizable()> Attribute. This is the code I am using...
Dim sf As SoapFormatter = New SoapFormatter
Dim ms As IO.MemoryStream = New IO.MemoryStream
sf.Serialize(ms, currentIssue)
ErrorReportingTextBo... more >>
Data Mapping between Applications.
Posted by techWorld76 NO[at]SPAM yahoo.com at 12/19/2003 8:11:54 AM
Hello,
Could anyone please throw your suggestions on the following
scenario?
(It would be really helpful if you could provide a solution using
..NET,XSLT,XSD,Web Service other than 'Biztalk Server' Approach.) -
Honestly speaking, I am new to this Data Exchanging Process, though I
have... more >>
Repeater and XML Node List
Posted by williamg75 NO[at]SPAM hotmail.com at 12/18/2003 6:06:30 PM
Alrighty,
so if I have an XmlNodeList as the data source for a repeater, in my
repeater, I would like to do things like:
<%# DataBinder.Eval(Container.DataItem, "ChildNodes[0].InnerText") %>
But everytime I do it says stuff like:
'System.Xml.XmlChildNodes' does not allow indexed acces... more >>
ERROR saving Grid as XML
Posted by Filippo Pandiani at 12/18/2003 3:58:47 PM
SCENARIO
=======================================
I have a Grid and I want to save the values on an XML.
Let me say that I am NOT using DataSet to load valus on my grid.
PROBLEM
=======================================
When I am saving a Grid to XML I get the following exception:
"Token S... more >>
XML WebService ASP.NET
Posted by Scott at 12/18/2003 3:18:56 PM
Hello - I am very new to the .NET environment, so please be paitent - Can
anyone point me to a very basic example of a project that takes an XML
stream from a web page and sends it to a ASP.NET Web Service that can then
be used to pull records from a SQL Server DB. Like I said I am green at
this... more >>
XslTransform Problems with Whitespace
Posted by Kevin Westhead at 12/18/2003 3:04:04 PM
I'm using XslTransform to apply a transform to an XML document, however I
get validation problems when parsing the resulting XML document due to
invalid whitespace. I'm passing in an XPathNavigator for the input to the
Transform method and specifying a Stream for the output.
Here is an example... more >>
Document load problem with entities
Posted by Miquel Labòria at 12/18/2003 1:06:56 PM
When I load a document, it have text "ñ" I recibe an error:
Reference to undeclared entity, 'Ntilde'
"Ntilde" is an entity of iso-8859-1, why load method can't load it. How can
I refer entities ISO-8859-1?
Please help me...
... more >>
Win98 memory bottleneck for using XML in MSDE2000
Posted by theju NO[at]SPAM wp.pl at 12/18/2003 9:27:54 AM
Used to read newsgroup for answers, now have to ask for them as well.
I have an application (C#, .NET 1.1) that connects to local db on MSDE
2000 SP3a (using ADO from MDAC 2.71) on one side and to a web service
on the other (not relevant I guess). Some stored procedures consume
xml produced by... more >>
Validating a XML document with a XSD
Posted by Brian Kedersha at 12/17/2003 5:34:14 PM
I found code for validating XML documents with the XML Schema cashed for
rapid access.
Example 3: Validating with XMLSchemaCache.
http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xsd_devgd_hdi_validate_5zzn.asp
This code seems not to be working no matter I do to fix it. I receive the
f... more >>
XMLTextWriter Encoding problem
Posted by adamr1000 NO[at]SPAM hotmail.com at 12/17/2003 1:59:29 PM
The following code sample should produce a valid xml file to the
console. However, when I try this in C# (Visual Studio 2003, 1.1
Framework), there is an extra questionmark preceding the rest of the
content.
MemoryStream ms = new MemoryStream();
XmlTextWriter xtw = new XmlTextWriter(ms, Enco... more >>
Problem with XSD
Posted by RF at 12/17/2003 10:47:15 AM
Hi,
I have a schema file test.xsd (~30KB). Whenever I try to load this schema
into VS.NET it takes about 60% of CPU time, at the same time when I switch
to XML view it takes 100% of CPU time. It takes about 1-5 minutes to load
successfully.
How can I disable the option of VS.NET of loading ... more >>
XmlSerializer encoding and declaration issue
Posted by Mullin Yu at 12/17/2003 10:33:27 AM
I am using XmlSerializer to serialize an object to xml string like the
following at C#. Now, I want to know how can I
1. change the default encoding to utf-8 or others, instead of utf-16
2. remove the XML declaration => <?xml version ....>
3. remove the white space / tab of the xml structure
... more >>
Retrieving JUST text from a node with child nodes
Posted by Bjorn at 12/16/2003 5:31:42 PM
Hi all,
Can't seem to figure out how to retrieve the text of a node with multiple
child nodes (and I just want the text of the parent, not the InnerText or
InnerXML that comes with it).
My doc looks something like this:
<parent attrib1 attrib2 attrib3>
Extractable string
<child... more >>
String TO xml (xml string)
Posted by Braden at 12/16/2003 2:39:28 PM
I am trying to take a string and convert it to a data
source. The string is Xml that I am pulling out of
sharepoint and looks like this:
<Field FromBaseType="TRUE" Type="Choice" Name="Status"
ColName="nvarchar1" DisplayName="Status">
<CHOICES>
<CHOICE>Active</CHOICE>
<CHOICE>Resolved</CH... more >>
Newbie: Adding Schema breaks working code
Posted by ElJay at 12/16/2003 1:22:58 PM
The following code worked great until I added a schema (generated by VS
..NET) to the XML document.
XmlDocument xdoc = new XmlDocument();
xdoc.Load("NewsSource.xml");
XmlNodeList nl = xdoc.SelectNodes("root/rssfeeds/site");
The XML file looks like this
<?xml version="1.0" encoding="utf-8... more >>
web service
Posted by kkr at 12/16/2003 12:02:29 AM
Hi ,
i am new to .NET Tecnology. i have the following problem.
i am accessing a lotus notes document in .Net using Domino
objects component as reference.
This is working perfect as a windows client.
But when i try to execute the same code as a webservice
it gives me "OUTOFMEMORY EXCEPTION... more >>
How can i specify default XML namespace when it does not declared in the xml document
Posted by zoodeka NO[at]SPAM hotmail.com at 12/15/2003 11:47:56 PM
How can i specify default XML namespace when it does not declared in
the xml document
I need it for validation against xml schema
@@@I have a procedure
Sub ValidateXMLDocument(ByRef XMLDocument As Xml.XmlDocument, ByVal
SchemaPath as string)
If XMLDocument.DocumentElement.NamespaceURI = ... more >>
A question for the guro
Posted by Ayende Rahien at 12/15/2003 7:08:54 PM
How do I select a node that has both namespace and is prefixed?
IE:
<a:b> (and also in the default namespace!)
... more >>
.net xml editor doesn't recognize extension correctly
Posted by John at 12/15/2003 5:26:55 PM
I am trying to use the xml desinger in .net 1.1 to create
the follow schema. where USAddress is derived from Address
But when I generate the xml file, the .net xml editor says
"The active schema does not support the element 'street'"
The schema is from a msdn .net example.
What I am missin... more >>
Error Message (Same table, cannot be the the child of two nested relations)
Posted by Brian Kedersha at 12/15/2003 2:54:05 PM
We created a XML Schema that has nested table relations. We had the
following Warning message come up.
An unhandled exception of the type 'System.ArgumentException' occurred in
system.data.dll
Additional information: The same Table (DOS_Identifiers) cannot be the
child table in two nested... more >>
Xml replace method removes indentations
Posted by Amendra at 12/15/2003 2:34:23 PM
Hi,
I am using the document.replacechild method to replace some values. But when
used, it removes the previous indentation that was in the document for that
node. Actually looks like the CRLF is being removed for some reason, any
luck.
Eg...
The original doc
<locationAdd>
<friend... more >>
|