all groups > dotnet xml > april 2004 > threads for april 8 - 14, 2004
Filter by week: 1 2 3 4 5
whats the best way to do this?
Posted by suzy at 4/14/2004 8:42:54 PM
hi,
i am 3 xml files containing train timetables, the columns in each xml file
are "departuretime" and "destination". the difference between the 3 files
are they contain train times for 3 different train companies.
i want to display 3 columns (1 for each company), and display (in HTML) the
... more >>
Why xml being excaped in xmldocument?
Posted by Adam Smith at 4/14/2004 6:52:39 PM
Hello, I have a file:
test.txt:
<?xml version="1.0" encoding="UTF-8"?>
<First>
<value>3</value>
</First>
I am reading it like this:
XmlDocument xml = new XmlDocument();
xml.Load("test.txt")
If I do an xml.OuterXml, I get
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<First>
<val... more >>
XPathDocument and hex 0x1A
Posted by CV at 4/14/2004 5:35:47 PM
I am trying to extract specific fields out of XML documents using
XPathDocument & Xpath. The basic code outline is as follows:
try {
...//Load file as XpathDocument ..
XPathDocument xp = new XPathDocument(filename, System.Xml.XmlSpace.None);
//Select the required nodes..
....
... more >>
Question about XML schema and blank element
Posted by Mark Spencer at 4/14/2004 4:44:19 PM
Hey there,
I'm running into an issue and wondered if any of you XML gurus know a
solution.
I'm currently using XML as a data transport mechanism between two
applications and an XML schema for format validating purposes.
Whenever I have an child element that is nested inside another
element... more >>
how do you use and run xsd.exe
Posted by george r smith at 4/14/2004 4:29:47 PM
Can not figure out how to use this tool ?
... more >>
soap serialization problems
Posted by AA at 4/14/2004 12:02:25 PM
Hello
I am having problems with a very simple serialization :(
I download the schema
http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0
and execute the xsd.exe for create the classes.
I load the file created in my project but when I try to serialize...
'-------... more >>
Ignore DocType
Posted by Nat at 4/14/2004 2:48:50 AM
I am reading data from an XML document with xmlDoc.load(fullname).
Unfortunately, in my xml file there is the definition of a doctype file
that is not available and so, it buggs. I would like to ignore it, to
remove this line, or I don’t know… my language is Visual C#.
Thanks in advance for yo... more >>
SelectSingleNode with XmlDataDocument
Posted by H Irick at 4/13/2004 8:51:03 PM
I have code that worked with an XMLDocument. Now I'm trying to convert it to use with a synchronized XML dataset loaded from my database. The only difference I can see is that the DataDocument constructer has added an xmlns attribute to the parent tag
I find that xDoc.GetElementsByTagName works f... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Tutorial on XML namespaces?
Posted by Jon Davis at 4/13/2004 11:36:14 AM
I would like to parse RSS 1.0 (not RSS 2.0) files. But I don't know how to
work with these XML namespaces! And when namespaces are improperly used in
RSS 2.0 files, I don't know how to deal with them and exceptions keep
getting thrown! Does anyone have a tutorial or know of one that deals with
X... more >>
User entered data in XML
Posted by nobody at 4/13/2004 12:25:24 AM
I'm writing data the user enters out to an XML file (using DataSet.WriteXML;
DataSet is a typed DataSet created from an XML Schema). The problem I'm
having is the user can (and needs to) enter characters like &, < and >. Is
there some .NET function (maybe something in System.Xml) that will take... more >>
Boolean values in schemas
Posted by Julian Hershel at 4/12/2004 7:51:44 PM
Hi.
I want to to use the xs:boolean type for one of my elements. But is it
possible to make these boolean values be read as Yes/No instead of
true/false? Should I create a custom type for that?
Thank you.
Julian
... more >>
help xsd converting wrongly group ref
Posted by Kesav Kumar Kolla at 4/12/2004 4:31:05 PM
I have the following xsd
<xsd:element name="batchRequest" type="BatchRequest"/><xsd:complexType name="BatchRequest"><xsd:sequence><xsd:element name="authRequest" type="AuthRequest" minOccurs="0" maxOccurs="1"/><xsd:group ref="BatchRequests" minOccurs="0" maxOccurs="unbounded"/></xsd:sequence></xsd... more >>
empty quotes != not(string(.)) ????
Posted by darrel at 4/12/2004 3:11:11 PM
I have a when statement:
<xsl:when test="//pageTitle[../linkID = $activeLink] = not(string(.))">
This should find the 'pageTitle' node that has a sibling of 'linkID' that
matches the '$activeLink' parameter and see if it is empty or not.
The above returns FALSE
However, this:
<... more >>
Save Application State to XML: How to have each module create a "Node"?
Posted by johnfofawn NO[at]SPAM hotmail.com at 4/12/2004 2:12:12 PM
Hi,
I have an application which is built from many modules. I re-use the
modules in different applications.
I'd like to have each of my modules implement a "SaveState()" method.
The method should return the state of the module (and any modules it
contains) in some nice, easily parsable and ... more >>
XML to CSV was Flattening XML tree
Posted by solex at 4/12/2004 12:15:20 PM
Hello,
Part of my XML application will allow the user to select any field(s) from
the hiearchy as output to a CSV file for viewing/ manipulation. The
datastore consists of many XML files that adhere to a single schema.
If possible I would like a generic xslt file that will create the CSV fi... more >>
Adding a function INSIDE a quoted text element
Posted by darrel at 4/12/2004 10:52:37 AM
In my XSLT, I'm trying to write out some dynamic URLs.
I can't put an actual xsl:value-of field inside a URL:
<a href="<xsl:value-of select="linkUrl"/>">
But I can do this:
<a href="{linkURL}">
Is there a similiar way to insert a function inside the quotes? This is what
I nee... more >>
best way of finding the differences in two bit of xml
Posted by bg at 4/12/2004 3:56:05 AM
hi all
if i have two fragments of xml, whats the best way of doing a "diff" on them to find any differences
TI
b
... more >>
Re: Problem with Xpath query !!!
Posted by Nakah at 4/11/2004 8:50:59 PM
"Nakah" <nakahspam@free.fr> wrote in message news:...
> Thanks, I've just tried it but it doesn't work :'(
>
>
> "Derek Harmon" <loresayer@msn.com> wrote in message
> news:uqmsyB%23HEHA.2300@tk2msftngp13.phx.gbl...
> > "Nakah" <nakahspam@free.fr> wrote in message
> news:OcqK488HEHA.1448@TK2... more >>
Problem with Xpath query !!!
Posted by Nakah at 4/11/2004 4:14:03 PM
Hi,
I have some troubles with Xpath when I'm using it with a XmlDocument =
containing two namespaces. Here is the XmlDocument :
<grammar =
xmlns:sapi=3D"http://schemas.microsoft.com/Speech/2002/06/SRGSExtensions"=
xml:lang=3D"en-US" tag-format=3D"semantics-ms/1.0" version=3D"1.0" =
root=3D"... more >>
format-number format string incompatability
Posted by Richard Haber at 4/10/2004 9:19:08 PM
I am using format-number(-1234.56,'#,##0.00;(#,##0.00)') in a stylesheet
that works in every xsl processor (including MSXML2) except for the one in
..NET 1.1. I am expecting to see (1,234.56) as the result of this function,
but am getting an ArgumentException : NumberGroupSizes error with the
m... more >>
Serialize a object inherited Label control
Posted by Luiz Rafael Fernandes at 4/10/2004 12:20:27 PM
Hi...
i try to serialize a object inherited of label control, as follow:
//definition
public class WinLabel : System.Windows.Forms.Label
{
public WinLabel() {}
}
//execution
WinLabel l = new WinLabel();
l.Text="text";
l.Name="name";
XmlSerializer ser = new XmlSerializer(typeof(M... more >>
Write XML to File while reading
Posted by Drew at 4/9/2004 4:48:05 PM
I'm reading in an XML file from the server using
XmlTextReader in C# like so:
XmlTextReader xr = new XmlTextReader(url);
while(xr.Read())
{
//parse the xml file here
}
Now then, I need to also save this file to the local file
system and I should be able to do this at the same t... more >>
parsing query strings in XSL?
Posted by darrel at 4/9/2004 1:59:15 PM
I'm using XSLT to transoform XML into navigation.
My XML has a field for the URL, and a field for a variable that sets the
'active node' in the menu when it displays. The catch is that I now repeat
data on some nodes:
<url>link.aspx?activeLink=8.2.1</url>
<linkID>8.2.1</url>
So... more >>
How to get ASP.NET using C# to transform Access Reports
Posted by Peter Petrillo at 4/9/2004 10:26:04 AM
The Access development group here at this company has exported its reports in xml format from Access 2003. I have no influence on how they have created them. I received the following files
xm
xs
xsl
asp or html (my option
Using a simple ASP.NET form with only a System.Web.UI.WebControls.Xml... more >>
Converting dataset xml into adodb.recordset???
Posted by Ed Staffin at 4/9/2004 5:56:03 AM
Hi, I have a need to conver the xml produced by a .net
dataset (with a single table) into an adodb.recordset. The
adodb.recordset doesn't understand the xml that the
dataset.GetXml method produces. Can someone point me in
the right direction?
Thanks ... Ed
... more >>
I dont know how convert it to dataset or XML...
Posted by Pavel Novotný at 4/9/2004 12:41:02 AM
H
I'm trying to import a | seperated text from string variable which represents a tabl
with several fields, eg
6124079|PRIRUBA 11 DN250 PN6;CSN131160.0;11369.1;CSN131005.50|KS|11,100000|3437,
6124080|PRIRUBA 11 DN200 PN6;CSN131160.0;11369.1;CSN131005.50|KS|8,870000|2761,
I dont know how conv... more >>
Simple issue with XSLT Extension Objects
Posted by Gauthier at 4/8/2004 9:33:19 PM
Hi, I've a simple issue with the use of extension objects.
I'm trying to call a text formating method from an object that I add to
my arguments collection, this method take an input string and output
the formatted string.
So far everything process correctly (the method is called without any
... more >>
Why does this give an error ?
Posted by Mike Oliszewski at 4/8/2004 8:29:17 PM
XmlNodeList CommonFiles =
ProgramBackup.SelectNodes("Directory[contains(.,'CommonFilesPath']");
This generates a XPathException "'Directory[contains(.,'CommonFilesPath']'
has an invalid token."
How can I do this, it works fine in XSLT but in this case thats a huge
amount of processing over... more >>
has children or no ?
Posted by C# newbie at 4/8/2004 5:10:19 PM
Hi,
how could I find out a node has childern or no using xpath ?
Thanks
... more >>
xpath query with more specifications
Posted by C# newbie at 4/8/2004 4:03:58 PM
Hi group,
I've written a program which uses this XPath query:
//*[contains(translate(.,\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",
\"abcdefghijklmnopqrstuvwxyz\"),"SomeString"]
as you better know, it finds and locates "SomeString" under any path within
an xml file.
The thing is that I don't know h... more >>
<xsl:apply-templates> not returning a node-set???
Posted by garant.b NO[at]SPAM mellon.com at 4/8/2004 1:47:19 PM
Hi
I've made a stylesheet to transform my data into XSL-FO. This
stylesheet used to work with MSXSL 4.0 but I've got some issues in
..NET. First, I changed removed all the "node-set()" function since
they're not used anymore. But now, I used an <xsl:apply-templates/>
and for some reason, it w... more >>
XPath
Posted by Neil at 4/8/2004 4:21:09 AM
I'm trying to get a list of nodes using the XMLNodeList.SelectNodes( xpath ) method. I want a list of criteria nodes where the attribute notModifiable is false or doesn't exist. Anyone know how to do this? So far I can grab the nodes with notModifiable equal false but I don't know how to do the seco... more >>
|