all groups > dotnet xml > september 2003 > threads for september 22 - 28, 2003
Filter by week: 1 2 3 4 5
Watch this critical update for Microsoft Windows
Posted by Automat Sneek at 9/28/2003 11:17:09 PM
Microsoft User
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to maint... more >>
BUG in xsltTransform.Load: XsltContext is needed for this query because of an unknown function.
Posted by Torrent at 9/28/2003 3:38:47 PM
When Trying to Load an XSLT File with the XslTransform i got a rather =
annoying Exception being thrown "System.Xml.XPath.XPathException: =
XsltContext is needed for this query because of an unknown function."=20
It was annoying because I had checked created the whole document and =
tested it in... more >>
Any XML standards for code grammar?
Posted by Peter Rilling at 9/27/2003 6:20:45 PM
I am written a program that will be used to parse the lexical syntax of code
files. I would like to generalize the grammar logic so that I don't
hardcode any specific grammar in my program. Basically I would like to use
XML to define a languages grammar the way that BNF does. Are there any
st... more >>
XsltContext is needed for this query because of an unknown function - Thrown While Loading
Posted by Torrent at 9/27/2003 3:56:43 PM
The Following is an Error I am getting using VS.NET 2003. When I bind =
the XML and XSLT Document together in Internet Explorer it works fine. =
However when I attempt to Load the File with the XSLTTransform.Load it =
raises this error. I have attempted to use a DNS Resolver hoping that I =
coul... more >>
Dynamic <a> links in xslt output
Posted by Ron Vecchi at 9/27/2003 8:48:05 AM
I'm pretty new to XSLT so bear with
I have an XML file that contains Names and ID's of a bunch of widgets.
Using XSLT I would like to output an <A> link with the Widget's ID as part
of the query string. <a href="myWidget.aspx?ID=WidgetID">WidgetName</a>
I am having a hard time figuring out h... more >>
IDeserializationCallback and XmlSerializer
Posted by Steve C. at 9/26/2003 11:52:59 AM
Is there a way to utilize the IDeserializationCallback
interface with the standard XmlSerializer? It does not
appear to be supported in this context.
IDeserializationCallback works fine when used with the
binary or SOAP formatters. Should I assume that a custom
formatter is needed to su... more >>
Namespaces & .NET XPaths
Posted by Steve Robinson at 9/25/2003 10:22:42 PM
Just out of interest - is there an easier/quicker way to retrieve values via
Xpath when namespaces are used?
At the moment I seem to need a lot more lines of code to do something I
thought was fairly standard? Of course I can just wrap the calls up into a
helper function but was wondering if ... more >>
ASP.NET Caching XML
Posted by Paul Jansz at 9/25/2003 9:22:28 PM
In the world of MSXML 4.0 - one of the techniques used was caching the
DomDocument in the application cache with ASP.
Updates made to individual nodes could occur concurrently.
Is this still possible in .NET? Or is the a better design to use.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using XML file as Storage
Posted by Rafael Veronezi at 9/25/2003 6:03:01 PM
My WinForms app store some kind of data in a structured way... don't need a
database to store that, so I was thinking about store this in a XML file...
I would like to know what's the best method to read/write XML files...
In preview, I'm using DataSets and ReadXml/WriteXml methods... I don't kno... more >>
XmlNode.Value
Posted by Eirik M. at 9/25/2003 3:27:55 PM
Can anyone from M$ or anyone else for that matter explain to me the
reasoning behind the intended usage for this property? I was quite surprised
to find that this property may be null depending on the XmlNodeType. If one
imagines a scenario where some hapless programmer adds a new node to an
XML... more >>
Sort by date [XSLT]
Posted by Ron Vecchi at 9/25/2003 12:46:21 PM
Is there a way to use <xsl:sort> to sort by date.
Sample xml doc I want to perform sorting on
---------------------------------------------
<Parent>
<child>
<date>10/10/2003</date>
<displayText>The text that should be displayed</displayText>
</child>
<child>
... more >>
Changing Attributes into Elements?
Posted by Christopher Ambler at 9/25/2003 12:41:30 PM
I have a class that I deserialize into as such:
public class row
{
[System.Xml.Serialization.XmlAttributeAttribute()]
public string RecordFound;
[System.Xml.Serialization.XmlAttributeAttribute()]
public string IsExpired;
}
When this gets serialized, the output looks like:
<row... more >>
List of XPath Escape Characters
Posted by Matthew Wieder at 9/25/2003 12:02:33 PM
In my previous post, I asked about a routine which prepares a string for
an XPath query by taking care of escape characters.
Unable to find a list, I'm now wondering assumign I enclose the
attribute value in quotes in my XPath query, what other escape
characters need to be handled aside from ... more >>
trouble validating against xsd
Posted by Jon Poploskie at 9/25/2003 11:21:21 AM
Hello,
I have an xsd file that I'm trying to use to validate some xml against. I'm
hoping this is a simple problem, but I just don't see it. I get the error
"The 'role' element is not declared." when trying to validate this xml:
<users>
<user id="jon" pwd="pass">
<roles><role>Admin... more >>
Prepare String for XPath
Posted by Matthew Wieder at 9/25/2003 11:17:09 AM
Does someone have the routine (preferablly in C#) that takes a string
(i.e. "3995 Joseph, Smith "Joe") and prepares it for use in an XPath
query ( i.e. SelectSingleNode(/member[@name=concat("3995 Joseph, Smith
", '"', "Joe"]) ) so that all escape characters are taken care of and
the issue wi... more >>
About DTD Entities
Posted by bheem_d NO[at]SPAM yahoo.com at 9/25/2003 10:12:49 AM
I have a few questions about DTD ENTITY. I would appreciate any help.
1. Is there any equivalent of this in xsd? Suppose I want to use the
same string in multiple places in an xml file, is it possible to do
without DTD entities?
e.g. Consider two elements like this which are present in my xml ... more >>
Problem adding xsl prefix to stylesheet
Posted by Ron Vecchi at 9/24/2003 7:19:24 PM
I'm pretty new to Xml and Xslt so bear with. I cant seem to add the xsl
prefix to my stylesheet and get it to work.
Error: The wrong namespace was used for XSL. Use
'http://www.w3.org/1999/XSL/Transform'.
Heres my stylesheet
--------------------
<?xml version="1.0" encoding="UTF-8" ?>
<s... more >>
XslTransform.Load
Posted by Matt Frame at 9/24/2003 5:57:13 PM
I am building dynamic XSL using a string varible in VB.Net with information
in code and from a database field. I am having a difficult time finding
the correct object to load the string into to then have the object passed to
the XslTransform.Load method. I want to avoid writing the information... more >>
Native .NET Object Serialization Question
Posted by Bob Mixon at 9/24/2003 4:28:47 PM
Hello All,
I have written a small sample application that serializes an object using
the XmlSerializer class. Looks great and I understand how to control some
of the serialization processing using attributes.
My question is, I need greater control over the use of XML attributes. The
XmlSe... more >>
DateTime, serialized xml and timezones
Posted by andrew lowe at 9/24/2003 1:44:18 PM
Hi,
Please bear with me on this problem, first I'll give you some background:
I have an object that contains a DateTime field which i pass to a webservice
public class Foo {
public DateTime RequestDate;
}
public class FooWebService : System.Web.Services.WebService {
[WebMethod... more >>
fieldnameSpecified
Posted by Stephen Travis at 9/24/2003 1:36:34 PM
According to the XML Serialization documentation
(http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemXmlSerializationXmlIgnoreAttributeClassTopic.asp?frame=true)
, fieldnameSpecified can be used to minOccurs = "0" a variable when it is serialized.
For example;
Public Z As Deci... more >>
XSLT document() problems
Posted by Asbjørn at 9/24/2003 12:51:04 PM
Sorry for posting to a lot of groups, but I'm not sure what this
problem relates to, so I thought it was better to be safe than
sorry. Please feel free to set FUT to the proper group when
answering.
I'm having problems with the XSLT function 'document()' after
upgrading to ASP.NET 1.1. I've s... more >>
XmlTextWriter: Why is endElement not written using the WriteEndElement with WriteRaw
Posted by Johan Klijn at 9/24/2003 12:17:13 PM
Can somebody explain why the endElement (</items>) in the following sample
is not written?
Public Sub Test()
Dim objMem As New MemoryStream
Dim objWriter As New XmlTextWriter(objMem, New
System.Text.ASCIIEncoding)
Dim strXMLResult As String
objWriter.... more >>
CloneNode problem
Posted by Eric Caron at 9/24/2003 9:01:23 AM
Hi
Here's my XML file :
<?xml version="1.0" encoding="utf-8"?>
<ApplicationSettings>
<Section Name="Transfert">
<Key Name="m_blnTransfRoleBD" Value="True" />
<Key Name="m_blnTransfRoleHyper" Value="True" />
<Key Name="m_blnTransfCRBD" Value="False" />
<Key Name="m_blnTr... more >>
Trouble Reading XML string
Posted by Ron at 9/23/2003 11:00:57 PM
I have a method that generates an string in XML format and passes it to be
processed. The string is in the following format:
<grandparent>
<parent>
<child1>text</child1>
<child2>text again</child2>
</parent>
<aunt>
<cousin1>text</cousin1>
<cousi... more >>
How do I read and update an xmlfile without loading and saving?
Posted by Niklas Lagergren at 9/23/2003 9:15:46 PM
Hi, I'll try to explain. I'm now using C# and I have an xmlfile that
contains users and information about them, this xmlfile can be read and
changed from many threads in my application, as many users can be connected
at the same time, the user information in the file can also be changed by
other... more >>
Atomized strings?
Posted by Colin Savage at 9/23/2003 4:52:02 PM
Please could somebody explain what an "atomized string" is? I have been
doing loops in the msdn around XmlNameTable and NameTable but neither
explain what an atomized string is. The example for one adds a string to two
different NameTables and then compares them and they are considered equal? I
... more >>
xml serializer treatment of collection objects
Posted by howard dierking at 9/23/2003 3:50:26 PM
If I understand the Xml Serializer correctly, as it is
serializing an object graph, if it comes across a
collection object, it puts a tag in for the collection and
then tries to serialize all of the members of the
collection. This is roughly the same treatment when the
top of my object gr... more >>
Validate email
Posted by Antonio Maciel at 9/23/2003 2:51:08 PM
Hi.
I am using the following pattern to validate e-mail entries in a xml file:
([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+
The problem is that the e-mail element can be empty, and when I apply the
above pattern the element needs a value. How can I validate the e-mail... more >>
Check these internet pack from Microsoft Corporation
Posted by joan at 9/23/2003 12:16:16 PM
Microsoft Partner
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer
from the... more >>
XPath + SelectSingleNode
Posted by muscha at 9/23/2003 8:41:04 AM
Hi All,
I have this weird problem. I have an xml document and tried to do an XPath
query to it. If I use the SelectSingleNode method it throws an exception but
it works with SelectNodes method. Is this a known problem with XPath and
SelectSingleNode?
Code snippet:
<snip>
XmlDocument xml... more >>
XML as API
Posted by Paul Jansz at 9/23/2003 12:32:08 AM
Is there any pointers in designing code with XML in the .NET world.
1. If I have a method with a large number of parameters.
func(a,b,c,d,e,f....)
Would it be better to pass the data as XML func(xml)
or a strong type: func(myparams)
or even XPathNavigator:
** I'm... more >>
Remote data access
Posted by John C. at 9/22/2003 9:45:21 PM
As a new .net developer, I would like to know how a
VB.net Windows application can access a SQL Server
database residing on a web server.
In other words, using the Visual Studio IDE, is there a
way to develop a Visual Basic, Windows application that
can access a SQL Server database over t... more >>
deserializing xml data in an object
Posted by Steph at 9/22/2003 5:13:56 PM
Hello,
I have an xml stream like :
<biblio>
<books>
<book>
<title>book 01</title>
<editor>toto</editor>
</book>
<book>
<title>book 02</title>
<editoreur>titi</editor>
</book>
</books>
</biblio>
... more >>
save XmlDocument as SQL image data?
Posted by Jack Fox at 9/22/2003 4:45:54 PM
I'm still new to Xml, but finding it very useful.
Conceptually what I want to do is compress an XmlDocument, save it to SQL
Server as image data, read it back and restore it to an XmlDocument.
I'm a bit bewildered by the choices available (XmlSerialization, XmlWriter,
Xml on SQL Server) and ... more >>
newbie namespace questions
Posted by Ron Vecchi at 9/22/2003 4:04:58 PM
I'm pretty new to XML. (warning)
I'm tring to understand what a namespace in xml is exactly. Also is this
example correct. (specifically my namespace declaration)
The XSD is in the same directory as the XML file.
---------------------------------------------------
<?xml version="1.0" enco... more >>
id() Function
Posted by Rohit Sharma at 9/22/2003 2:44:16 PM
Dear All,
Save me....I am about to give up.....
I have spent the last two days trying to get id() funcion to work with .NET
XPath classes. Any pointers information on how this works and what the
requirements are wil be helpful. I am using VB .NET.
Thanks in advance. And I will owe you one... more >>
DataReader & XML interchangability
Posted by James Bailey at 9/22/2003 2:24:54 PM
I know there's a lot of debate between DataReader and DataSets. I'm hoping
what I have to ask isn't something done to death.
I'd like to make my application be able to use XML and SQL interchangably,
meaning that I'd like to be able to abstract most of the methods and
properties so that it do... more >>
SOAP Error with VB6 client
Posted by ziggykz NO[at]SPAM hotmail.com at 9/22/2003 11:01:15 AM
I'm trying to return a byte() array or a base64string from a .net
WebService to a VB6 application using the SOAP3 client. I used the
disco utility to generate the WSDL file that is used by the VB6
client.
Any help would be appreciated... more >>
|