all groups > dotnet xml > january 2007 > threads for january 15 - 21, 2007
Filter by week: 1 2 3 4 5
How to replace attribute's special characters using XMLTextReader
Posted by Goran Djuranovic at 1/21/2007 3:14:17 PM
Hi all,
I ran into a problem where my XMLTextReader fails on .Read() when I have =
"<" character in one of the attribute's values. What I am trying to do =
is replace illegal characters ("<", "&" , etc.) with legal stuff =
("<", "&", etc.), before I send the XML text to a SQL Server =
st... more >>
Select Filter with namespaces
Posted by Cairn at 1/20/2007 1:25:27 PM
I am new to Xpath but wish to parse an XML document for nodes which contain a
child node with a particuale value.
Please does anybody have any clues as to why I never get any returns in the
root node list after the select call.
With thanks.
The code I have looks like this ( subject to a... more >>
.NET/Java double-dimensional (jagged) array interop
Posted by tiberiu.motoc NO[at]SPAM gmail.com at 1/20/2007 11:35:16 AM
Hi.
I've asked this question on the MSDN forums, but I've had no replies.
I'm really stuck, so I'm gonna try my luck here.
I have a Java web service which contains a simple function; the
function returns a double-dimensional array of integers. I ran the wsdl
utility and I created a simple .... more >>
validating xml doc with multiple schemas using wildcards
Posted by vhrao at 1/20/2007 8:46:38 AM
I am trying to validate a xml file with two schema files cust.xsd and
cust1.xsd. The schema file cust.xsd allows addition of elements from
another schema cust1.xsd by using xs:any wildcard.
cust.xsd - schema
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="urn:xmlns:sysapex... more >>
Error recovery when using XMLWriter
Posted by greg at 1/19/2007 4:14:10 PM
Hi All,
I'm writing data into an XmlTextWritter and I want to able to recover from
an error if it occurs and continue the writing. So far even though I trap
the error any subsequent attempt to write to it, it raises yet another
exception because the writer is in an error state.
Is there ... more >>
SelectNodes and xpath.
Posted by DeveloperX at 1/19/2007 11:18:36 AM
SelectNodes under 1.1 is confusing me.
Imagine an xml file that looks like this. It's just an example:
<drive>
<dir a="a">
<file>aA</file>
<file>aB</file>
<dir a="ab">
<file>abA</file>
<dir a=abc>
<file>abcA</file>
</dir>
<dir a="b">
<file>bA</file>
</dir>
</dri... more >>
Showing XHTML text in Word 2007 with the formatting via webservices
Posted by Darsin at 1/19/2007 3:44:00 AM
What i am doing is to pull the data from a CMS and import it to Word
2007 Beta and i also have to export the data from Word 2007 Beta back
to that CMS. We have with us two Web Services of the CMS. The Web
Services are explained as follows:
IMPORT WEB SERVICE:
1) This web servi... more >>
MI5 Persecution: Hotchkies FAQ (1655)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 1/18/2007 11:28:02 PM
From: iain@XXXXX.demon.co.uk (Iain L M Hotchkies)
Newsgroups: uk.misc,uk.legal,uk.politics,uk.media,soc.culture.british
Subject: Corley FAQ (v0.1)
Reply-To: iain@XXXXX.demon.co.uk
Date: Sat May 4 19:30:34 1996
Mike Corley FAQ
version 0.1
first edition 5th May 1996
last updated 5th May 1... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML Validation against multiple schema Error
Posted by Ben at 1/18/2007 11:25:59 PM
Hi All,
I have 2 XSDs - one with the Types to be used throughout the
application, and one specific to my module (a.xsd & b.xsd)
a.xsd has
<xs:attribute name="MyTest">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="A" /> </xs:restriction>
</xs:simpleTyp... more >>
Deserialize Attribute with a Namespace
Posted by Jon at 1/18/2007 5:44:13 PM
I have an xml document like so...
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:ng="http://newsgator.com/schema/extensions">
<channel>
<title></title>
<link></link>
<description></description>
...
</channel>
</rss>
What .NET XmlAttribute proper... more >>
Hwo to handle empty fields in XML
Posted by Bill Nguyen at 1/18/2007 9:23:35 AM
The following XML has an empty <UserDefinedTag /> (first record)
My VB.NET app got stuck here because I don't know how to handle it. It works
fine with a vlid user defined tag (next record)
<UserDefinedTag>40320121</UserDefinedTag>
Your help is greatly apprecited!!
Bill
- <JA... more >>
How to trim XML's attribute values?
Posted by ABC at 1/17/2007 5:20:35 PM
I have a program which generate a xml file from dataset using
DataSet.WriteXML function. The result is as follow:
<DataSet xmlns="http://tempuri.org/DataSet1.xsd">
<TB TB_NO="NN01001" DESCRIPTION="NN " DATE="1/16/2007
12:00:00 AM" Name=" ... more >>
Transforming to XmlDocument
Posted by Gustaf at 1/17/2007 1:14:15 AM
I've been trying to update my code to the new XslCompiledTransform class
without success. The following method takes an XML and XSL file, and
returns an XmlDocument object. Can anyone figure out how to write the
parameters to the XslCompiledTransform.Transform() method in this case?
static ... more >>
XML-Control .NET
Posted by Matthias at 1/16/2007 9:23:56 PM
Hallo NG,
ich habe folgende Anforderung: Ein XML-Dokument soll in einen Editor
eingelesen werden, also in ein Control das XML als Baum darstellt, die
Node-Values und Attribute sollen editierbar sein. Kennt jemand da ein
geeignetes Control f=FCr (kann auch Geld kosten).
Dank und Gru=DF,
M... more >>
Can't XML Serialize my object
Posted by quantass at 1/16/2007 3:55:03 PM
Am i using the XmlSerializer incorrectly? Im using C# v1.1. My code:
public class Agenda
{
public int a=1;
public ArrayList val = new ArrayList();
}
public class Section
{
public int b=3;
}
Agenda agenda = new Agenda();
agenda.val.Add(new Section());
XmlSerialize... more >>
Problem serializing type System.Xml.XmlElement
Posted by phil NO[at]SPAM leggetter.co.uk at 1/16/2007 3:36:41 AM
I have written a little application that can grab part of a page from a
web site. I then want to take this result and be able to serialize it
so that it can be stored as XML. I am storing these "ResultNodes" as
System.Xml.XmlElements but when I try and serialize (serialise) my
result object I ge... more >>
XPath query with node in empty namespace xmlns=""
Posted by olympus_mons NO[at]SPAM gmx.de at 1/15/2007 3:58:33 PM
Hi all,
my XML looks like:
<root xmlns="tempuri.org">
<result xmlns="">
<date>2006-09-14</date>
<status>ok</status>
</result>
</root>
How do I query the status node using .NET 2.0 and XPath?
The only way I found is using local-name():
strState =
xmlDoc.SelectSi... more >>
VS2005 vs XMLSpy
Posted by Gumby at 1/15/2007 11:23:54 AM
Hi there!
A "special" project team in our department has decided to purchase XMLSpy.
We standardize on VS2005 as our IDE and up to now everyone has used the XML
parser in VS2005.
Are there advantages to using XMLSpy over VS2005? Apparently there are
"integration diagrams" that VS2005 does n... more >>
|