all groups > dotnet xml > june 2005 > threads for june 15 - 21, 2005
Filter by week: 1 2 3 4 5
Deserialize empty XML element (VB.NET)
Posted by mcollier at 6/21/2005 7:58:39 AM
I'm having some trouble figuring out how to deserialize an empty XML
element in VB.NET. Let's say I'm trying to deserialize XML such as:
<Order>
<OrderRefNumber/>
<Customer>Bob</Customer>
</Order>
I would then have a simple entity object to represent the XML data.
That object would hav... more >>
Long duration of call XmlDataDocument.CloneNode
Posted by Petr Felzmann at 6/21/2005 2:11:01 AM
Hi,
why the duration of call the CloneNode(true) is steadily increasing? First
call is 0.004s and 100th is 0.16s! XML file is 5kB only, no disk swap.
XmlDataDocument xml = new XmlDataDocument();
xml.Load(@"C:\foo.xml");
for(int i = 0; i < 100; i++)
{
XmlNode node = xml.CloneNode(true);
... more >>
XML - all its cracked up to be?
Posted by mikeb at 6/20/2005 2:43:47 PM
This is an honest question, no sarcasm intended.
I'm really curious, what -is- the big deal about XML? I'm heaing all sorts
of things such as an open standard that can be read across all platforms,
etc. But really, my colleagues are insisting that we transfer large chunks
of data using XM... more >>
How can I generate a user friendly error message when validating XML against a schema?
Posted by Joakim Olesen at 6/20/2005 12:00:00 AM
Hello
When validating xml against a schema, the most frequent error I get is
something like "The 'FOO' attribute has an invalid value according to its
data type. An
error occurred at , (25, 913)". That error message is not very user
friendly, so I'd like to extract the data in the failing ... more >>
What am I doing wrong part 2?
Posted by steve bull at 6/17/2005 2:26:59 PM
I thought I had figured it out. But, I am only half way there.
Now I have the following code snippet to read the colorRange attributes for the colorRangeSwatch in the xml file listed
below.
string expr = "/swatches[colorRangeSwatch='All Red Colors']/colorRangeSwatch/colorRange";
... more >>
Web Service Timeout Parameter
Posted by dayblue at 6/17/2005 1:42:06 PM
My question has to do with the process of calling web services. Typically
when the client calls a web service they can specify the timeout for the
call. My question is how the actual web service or individual method can
police this parameter so as to maintain better control.
Some of the w... more >>
What am I doing wrong?
Posted by steve bull at 6/17/2005 11:57:06 AM
I have the following code snippet to read the colorRange attributes for the colorRangeSwatch in the xml file listed
below.
string expr = "swatches[colorRangeSwatch='All Red Colors']";
XmlElement crsElement = (XmlElement)m_colorRangeSwatchDoc.SelectSingleNode(expr);
bool fr ... more >>
return illegal xml characters from a web service
Posted by Michael Lopez at 6/17/2005 6:10:02 AM
I've written a small web service in c# that takes in a plaintext string,
encrypts it, then returns the encrypted string. Some of the characters
returned by encryption are illegal xml characters and causes an error when
trying to consume the service coldfusion(axis). The service works fine when... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can I add new nodes to an XPathDocument?
Posted by steve bull at 6/17/2005 12:43:16 AM
I have an XPathDocument which contains a list of color definitions. If I want to add a new color definition to, or
delete an existing one from, the source xml file how can I force this to be reflected in the XPathDocument?
Do I have to reload the XPathDocument? If so, would I need to dispose o... more >>
Empty Dataset Tables Don't Save to XML
Posted by Phil Galey at 6/16/2005 12:36:32 PM
How do you get around the problem of empty tables in a dataset not being
included when you do a WriteXML? When you later read the data back into a
new dataset, those tables are gone, because they never got saved to the XML
file. Only tables containing one or more records get saved to the XML fi... more >>
XmlTextReader, parsing, space as data
Posted by kenneth NO[at]SPAM nospam.nospam at 6/16/2005 12:10:10 PM
I just ran across this.
#1 <DBColumn> 1 </DBColumn>
#2 <DBColumn> </DBColumn>
The data for #1 will be parsed and returned as " 1 ". I get a sequence of
Element/Text/EndElement.
The data for #2 will not be returned. I get a sequence of
Element/Whitespace/EndElement... more >>
XMLValidatingReader misses errors
Posted by Geoff at 6/16/2005 11:31:42 AM
I am using an XMLValidatingReader to validate an XML file received via a web
service. I want to verify that the incoming file matches the XML schema.
When testing the validation routine, the XMLValidatingReader correctly flags
mis-matched tags such as <abc>some content</xyz> but does not catch... more >>
Transfroming wordml to cutom xml
Posted by Rahul at 6/16/2005 10:53:37 AM
Hi,
I am converting wordml into a custom html. The converted xml is in UTF-8
fromat. But the special characters get garbled in conversion. For Example
they show up as "â?""..
What needs to be done to avoid this.
Thanks
Rahul Aggarwal
... more >>
CSV to XML
Posted by Manoj at 6/16/2005 10:07:04 AM
Hi,
I want to generate different XML files from one CSV file. For eample I want
build the employee.xml which should contain the distinct list of employees
from the CSV file. The CSV File contains employee name getting repeated
multiple times based on the record type. Please suggest how can ... more >>
XML Validation with xsd of a generic node
Posted by kurotsuke at 6/16/2005 12:00:00 AM
Hi,
I need to validate an xml which contains a tag called
<Trigger>
that contains a structure which I don't know and that I don't want to
validate.
How should indicate in the XSD file that the document can contain a
tag caller <Trigger> but that I don't want to do any validation of its... more >>
Parsing XML Schema (C#)
Posted by Mike at 6/15/2005 2:20:14 PM
Hi! I have an Excel 2003 Schema I need to parse to extract elements names.
I am puzzled with the System.Xml.Schema object. Here's the example of my
schema:
I need to get a collection of element names(TemplateB62,TemplateC62 ......)
<?xml version='1.0' encoding='UTF-8'?>
<xsd:schema targe... more >>
From DOM to an XML string
Posted by ChuckD_Duncan at 6/15/2005 1:00:59 PM
I know this is too easy for you heavy-weights but I am drowning in streams
and writers ..., I have created an XmlDocument containing all my nodes and
attributes. I just need to do something like:
string XmlString = MyXMLDoc.MakeXmlString();
Ok... so what do I really have to do... I sta... more >>
XSLT Development Tools?
Posted by Teksure at 6/15/2005 9:32:13 AM
Hi group, searching in the Internet I found two products for XML which
incorporate a very robust debugger for XSL/XSLT, I would like you to see
these products and then, give me your opinion about the development
environment or recommend me some other that you know.
XML IDE's
- http://xslt-pro... more >>
|