all groups > dotnet xml > july 2004
Filter by week: 1 2 3 4 5
XML and carriage returns
Posted by Josh at 7/31/2004 11:19:02 AM
Hi,
I'm using System.Data.DataSet.ReadXml to convert some xml from a webservice
to a DataSet. The xml looks like:
<?xml version="1.0"
encoding="UTF-8"?><root><prioritiesTable><description>blah blah blah
blah</description></prioritiesTable></root>
The important thing here is the 
... more >>
how do i write checkbox to.....
Posted by Supra at 7/31/2004 10:21:44 AM
how do i write checkbox1 boolean to xml
in vb6 i can only do cstr( checkbox1.value) but in vb.net can't write
to xml. i am doing irc chat similar to mirc or pirch chat.
rw.WriteConfigInfo("User Modes", chkInvisible.Text,
chkInvisible.Checked, "PirateChat.xml")
in procedure events:
... more >>
Using single XSD to validate Similar XML files
Posted by metaphis2k2 NO[at]SPAM hotmail.com at 7/30/2004 7:45:50 AM
Ok, I have 2 xml files that are really similar. They have the exact
same structure exept that in one XML some element are required and in
the other they are simply absent from the xml.
Problem is in they are similar at 90% what I was looking for is a way
to validate and say what "case" I want ... more >>
DocBook XSL and .NET XslTransform
Posted by specialagent.mulder NO[at]SPAM gmx.net at 7/29/2004 11:27:37 PM
Hello *,
I'm trying to transform my DocBook document with the FO stylesheet
from the DocBook XSL distribution (the transformation with the XHTML
stylesheet works).
I changed "$years[1] + 1" to "number($years[1]) + 1" two times in
common.xsl. But the transformation doesn't work anyway. The f... more >>
How to get list of namespces ?
Posted by Oleg Subachev at 7/29/2004 5:47:40 PM
How to get list of namespces that are declared in an element ?
--
Best regards,
Oleg Subachev
subachev@ural.ru
... more >>
Namespaces ?
Posted by Mike Morse at 7/29/2004 11:34:05 AM
What see sample that show xs:element where the xs namespace =
http://www.w3.org/2001/XMLSchema
However, I see another example with xsi: where xsi =
http://www.w3.org/2001/XMLSchema-instance
What's the difference here? Are there right and wrong namespaces? Is there
a global list of the on... more >>
Element vs Node?
Posted by Wayne Wengert at 7/29/2004 7:13:56 AM
I am trying to pull data from child nodes but I cannot find the syntax that
works. I think I may be confusing elements and nodes? I want to get the
value of the items in the <Sched> child nodes. The relevant part of my code
are below as well as a part of the source xml.
=============== Code ... more >>
help with reading xml file
Posted by mycsharpmail NO[at]SPAM yahoo.com at 7/29/2004 6:16:16 AM
Hello, I am working in .Net C# and have an xml file similar to the one
below. I have tried using a DataSet but get the error "The same table
(Gid) cannot be the child table in two nested relations". The file
has a number of parent nodes at the "<ShipmentHeader>" level, each of
which have a num... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Deserializing NULLs into Integer variables
Posted by Mark McConnell at 7/28/2004 6:08:23 PM
Regarding deserializing XML into a custom object...
I've been able to deserialize an XML doc into my custom object and
everything works great. The problem I am encountering is when one of the
XML elements contains a NULL and it maps to a variable of type Integer in my
custom object, the deser... more >>
converting .xml to a comma delimited text file
Posted by Bernie Yaeger at 7/28/2004 4:27:08 PM
Is there a way to convert a .xml file to a comma delimited text file using
vb .net?
Thanks for any help.
Bernie Yaeger
... more >>
compressing XML file
Posted by john smith at 7/27/2004 10:30:02 PM
Hi,
In my .NET application I save data in an XML file.
When opening a project from an XML file I parse the file and recreate objects, set settings etc.
The problem is that the XML file can be very big (~20Mb).
How can I compress/decompress it programatically?
Is there such a functionality in... more >>
XML Attributes in a DataSet
Posted by Ryan at 7/27/2004 9:55:14 PM
How can one extract the Attribute values from a Dataset that has been loaded
with an XML file like the following at the bottom of the document. I have
to use a dataset and the XML file must remain the same?
Regards,
Ryan
<?xml version="1.0" encoding="utf-8" ?>
<Groups>
<Group Name="... more >>
Looking for Advice
Posted by Wayne Wengert at 7/27/2004 8:48:53 AM
I am looking for pointers to good beginner books, tutorials or other
resources to help me understand how to really use XML data. I program mostly
in VB (I have several applications in VB6 but am just starting to convert to
VB.NET). Most of my database backends are SQL Server 2000 with a few still... more >>
XmlAttribute question (0727)
Posted by matt.raffel NO[at]SPAM mindspring.com at 7/27/2004 8:28:24 AM
I have a class with a property is set to export as an XmlAttribute. I
want the attribute to only be written if there is a value. Is that
possible? Right now, the attribute is written no matter what.
eg:
[XmlRoot("Server")]
class Server
{
[XmlAttribute("shareName")]
public s... more >>
Serializing a collection
Posted by mr_carl_gilbert NO[at]SPAM hotmail.com at 7/27/2004 3:27:20 AM
Hi
I am trying to serialize a collection of GUIDs by overriding the
serialize function on a diagram component I am using.
The following code sucessfully serializes a single GUID:
Public Overloads Overrides Function Serialize(ByVal Key As Object) As
String
Dim objXML As New XmlD... more >>
Reading Non-standard XML
Posted by Jim Bayers at 7/26/2004 3:58:49 PM
When we send in credit card info, we get this in reply:
<auth_resp xmlns="urn:auth"><auth_info_resp
id="A1"><order_id>2XXXJl</order_id>
<shopper_id></shopper_id>
<total_amount>0.01</total_amount>
<settlement_amount>0.00</settlement_amount>
<action>X</action>
<response_code>9</response_code>... more >>
Error using derived simpleType as attribute in XSD -> DataSet
Posted by Ian Griffiths at 7/26/2004 1:15:38 PM
I have been given a schema, instances of which I'm required to be able to
consume and generate. I'd like to be able to manipulate these instances as
DataSets internally in my application. The schema defines the following
simpleType:
<xs:simpleType name="cs">
<xs:restriction base="xs:token... more >>
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect.
Posted by sales NO[at]SPAM logicians.com at 7/26/2004 3:53:24 AM
Also posted in general ASP.NET forum.
System.IO.IOException: The filename, directory name, or volume label
syntax is incorrect.
I have hit a problem for which I can find no solutions. Has anyone any
ideas?
I am writing XML into a Memory STream and using a Transform to make
HTML. This w... more >>
Validation Problem
Posted by Wayne Wengert at 7/25/2004 10:04:43 AM
I am building an XML file from a dataset using VB.NET. I've built an xsd
file (listed below) and am attempting to validate a sample xml file (also
below) using http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx
but I get a single error:
Value cannot be null. Parameter name: key
I do... more >>
RSS Search
Posted by 9icj4u613jeqrx8 NO[at]SPAM jetable.org at 7/24/2004 10:44:31 PM
Hi! I'm looking for ideas on what would the best approach to design a
search system for a RSS feeds. I will have some 50 RSS feeds (all RSS
2.0 compliant) stored locally on the web server. Now I'm wondering
what would the best method to allow searching of these RSS files.
Since the search will c... more >>
collection example
Posted by john m at 7/24/2004 7:09:08 PM
Hello,
I would like to find an example of how to handle
serializing/deserializing collections in VB.net
i have an XML file that contains a collection of elements that have two
keys. I would like to populate a combo box with each unique value of key
one.
then the other combo box is po... more >>
XML dataset
Posted by JAS at 7/24/2004 5:22:25 PM
I have made client software where users make orders. Local data is stored in
xml file.
Users are offline from network most of time eg. one week or month and then
they connect dbserver.
Problem:
How to synchronize offline database to sql server???
New, modified and deleted rows must be syncro... more >>
Using XML to retreive data from remote computer
Posted by g18c NO[at]SPAM hotmail.com at 7/24/2004 4:04:09 PM
Hi, i would like to create a program which logs information which can
then be retreived over the internet as an xml file.
Basically i would retrieve the data by using an ip address, and
hopefully some function call, using the machines ip address.
I guess the url would be something like:
mym... more >>
xslt newbie question
Posted by Mike P at 7/23/2004 4:10:38 AM
I'm a ASP.NET/C# programmer new to XSLT/XPath with a bit of experience
of XML. I've been reading through some stuff on XSLT and I'm struggling
to think of what situations I would want to use it in. Basically XSLT
is like CSS for XML files, right (i.e. setting how the XML is displayed
on screen... more >>
How can i get an Applicaton Exception to the Consumer
Posted by Stefan Glock at 7/23/2004 1:44:04 AM
Hi,
i have a Web Service method which can throw an ApplicationException. On the Consumer of the Web Service i always get an SoapException. Is there an easy way to get on the Client Side the Application Exception? ... more >>
XmlSerializer - Serialize properties with get accessors?
Posted by Peter Cresswell at 7/22/2004 8:56:17 PM
Hello everyone,
I would like to serialize an object to XML. Currently my code will serialize
all of the public properties that are value types, but not my public
properties that have get accessors. e.g:
public class MyObject
{
public string name; // This is serialized OK
public... more >>
XSLTransform and <?xml version ...
Posted by solex at 7/22/2004 4:23:10 PM
Hello,
I have a XSLT file that I am trying to use with the XSLTransform class but
it chokes on the first line:
<?xml version="1.0" encoding="ISO-8859-1"?> returning the error:
"System.Xml.XmlException: The data at the root level is invalid. Line 1,
position 44.
Anyone else have this proble... more >>
2 Dare (xmlschema question)
Posted by Alex Shirshov at 7/22/2004 10:07:58 AM
Hello, All!
It seems the bug
(http://groups.google.com/groups?hl=ru&lr=&ie=UTF-8&threadm=a53b01c28a00%242
08bc860%2439ef2ecf%40TKMSFTNGXA08&rnum=8&prev=/groups%3Fq%3DschemaLocation%2
BXmlSchema%2B.NET%26hl%3Dru%26lr%3D%26ie%3DUTF-8%26selm%3Da53b01c28a00%25242
08bc860%252439ef2ecf%2540TKMSFTNG... more >>
How to output numerical entity encodings with the XslTransform class?
Posted by Tim Meagher at 7/22/2004 12:20:00 AM
I am using the XslTransform class in C#.net to output XML files that include
non-ascii Unicode characters such as the Greek capital letter theta U+0398.
I can easily outout the data as serialized UTF-8 by using the default
encoding of UTF-8; however, my customer wants any non-ascii characters
ou... more >>
document() function problem
Posted by Stan Huff at 7/21/2004 6:43:14 PM
I am trying to use the document function inside an ASP.Net control,
specifically a SharePoint Web Part. For whatever reason, the function
always seems to return an empty node set. I am providing a resolver to both
the Load method and the transform but it doesn't seem to matter. I then
derived... more >>
Clone XPathDocument
Posted by blair at 7/21/2004 4:46:02 PM
Hello everyone,
I am converting a small personal program to .NET 2.0 and changing from using XmlDocument to XPathDocument. Ok so my problem is that the system currently clones a XmlDocument (it gets edited / used / and tossed but the orginal document is needed later). Is there some way to "Clone" a... more >>
XmlSerializer for optional xs:date
Posted by dmessenger NO[at]SPAM verdantsys.com at 7/21/2004 9:45:59 AM
I have several elements that have optional child elements and
attributes that are xs:dates.
I have been using System.DateTime and the XmlAttribute/XmlElement
attributes, but these will never work as System.DateTime can never be
null.
So
public class MyClass
{
[XmlAttribute("a")] public... more >>
Serialization and elementFormDefault
Posted by jerome.avoustin NO[at]SPAM insa-lyon.fr at 7/21/2004 6:13:56 AM
Hi !
I've got a big XML Schema defined in several files.
There are files in which there are just type definitions.
But i can't modify this Schema and i must use it (Don't ask me why !)
!
Unfortunately, there's a problem in it, which prevents me to Serialize
and Validate an XML file
In XML... more >>
Renaming an element
Posted by pjeung at 7/21/2004 1:21:02 AM
Say that I have an element <elementA> that has several layers of subelements.
In System.Xml.XmlDocument and related classes, how do I rename <elementA> to <elementB> leaving the subelements intact?... more >>
How do I write a string in the destination element depending on what the string is in the source, using XSLT/XPath? (Like a switch statement.)
Posted by Joakim Olesen at 7/20/2004 5:23:51 PM
Is there something like a switch statement in XPath? What I want to do is
this:
In the source there is an element called "member" with either the value "0"
or "1". In the destination element (also called "member") the value should
be "No" or "Yes" (Where "0" corresponds to "No" and "1" to "Yes... more >>
XML Serialization
Posted by Hollywood at 7/20/2004 1:14:55 PM
I have an class (A) that contains an class (B1) of type (B). An class (C),
contained by class (A), contains its own class (B2) of type (B). When I want
to serialize class (A), I want to ignore, programmatically, certain
properties on class (B1), BUT, I want those same properties to not be
ignore... more >>
Can an XmlNode from one XmlDocument be copied to another XmlDocument?
Posted by Bob at 7/20/2004 11:50:13 AM
I'm wondering if one node that belongs to one XmlDocument can be appended to
another XmlDocument as a new child without having to build a new node from
scratch. I would think XmlNode.Clone() is for this purpose but no, it
doesn't work. I got the following error:
The node to be inserted is fr... more >>
How to use C# to write an xml document to MemoryStream, not a file?
Posted by Jackfan at 7/20/2004 9:57:03 AM
I'm using XmlTextWriter now, but it seems it can just be used to create a
xml file, how can I do?
Thanks in advance!
Jackfan
... more >>
xsl:value-of select doesn't like "($variable)" expressions; bug?
Posted by Alistair Bayley at 7/20/2004 6:04:05 AM
(.Net framework version 1.1.4322)
The following XSL test case is rejected by System.Xml.Xsl.XslTransform, with an XsltException: "($dummy)+0 is an invalid XPath expression." If you remove the parentheses then it is happy. This appears to be an error; see http://www.w3.org/TR/xpath#NT-Expr. The pa... more >>
excel-->XML-->SQL
Posted by Jano at 7/20/2004 12:23:01 AM
Hi all,
I support a number of applications that store info in backend SQL databases. A project has come up where I need to get data out of Excel into one of these databases, using XML/XSLT. I am a beginner in XML/XSLT so was hoping someone would be able to give me some good info/tips on how to d... more >>
Changing machine gives XslTransform error (ArithmeticException in mscorlib.dll followed by XsltCompileException in system.xml.dll)
Posted by ronald NO[at]SPAM calleva.com at 7/19/2004 3:34:49 PM
I just wrote some code on a dev machine,
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Imports System.IO
Imports System.Data.SqlClient
Public Class ClassXMLtoHTML
Dim myXslTransform As XslTransform
Sub New(ByVal strXSL As String)
Me.myXslTransform = N... more >>
XPathNavigation and Namespaces.
Posted by Hollywood at 7/19/2004 1:18:05 PM
I have the following code that is attempting to read nodes from an xml
file...
XmlDocument xpdStatus = new XmlDocument();
xpdStatus.Load("status.xml");
XPathNavigator xpnStatus = xpdStatus.CreateNavigator();
XPathNodeIterator xpniStatus = xpnStatus.Select("descendant::Status");
while (xpni... more >>
XmlTextReader instances - help
Posted by Timothy V at 7/19/2004 11:58:11 AM
Hi,
When you create an instance of an XmlTextReader and give it a file to open
(constructor), does it automatically close the file when the destructor is
invoked (ie. automatically invokes method Close() when destructing)? Or do I
have to invoke the Close() method myself to close the file?
... more >>
XSDObjectGen error
Posted by Pavan at 7/19/2004 3:51:02 AM
Hi, I received an error from a schema using the much hyped XSDObjectGen:
Unexpected error occured in XSDObjectGen : Specified cast is not valid.
Please send the schema to support.
However xsd.exe (.NET v1.1) worked ok (did'nt give an error).
I wonder how long we'll have to wait before we g... more >>
Controlling SOAP formatting
Posted by Bob Rundle at 7/18/2004 10:10:32 AM
I can't seem to control the soap formatting. SoapTypeAttribute() doesn't
seem to have any affect on the SOAP serialization. Here is my sampe code.
What am I doing wrong?
Regards,
Bob Rundle
using System;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.S... more >>
Confused About Validation
Posted by Wayne Wengert at 7/17/2004 10:39:07 AM
I have an XML document and a corresponding xsd document I built. I want to
validate the xml document against that Schema but when I use the MSDN
validator it has no place to select the xsd document? It has a checkmark for
"Validate" but I have no idea what it is using as the Schema?
Where can ... more >>
deserialize a collection
Posted by Greg at 7/16/2004 3:05:02 PM
I'm writing a class in C# ....
I have a collection calls Reports made up of Report objects. I'm trying to deserialize an XML file that looks like :
<Reports>
<Report>
<Title>some title</Title>
<Notes> some notes </Notes>
</Report>
<Report>
blah blah blah
... more >>
Where can I get a FREE XPath Generator?
Posted by Don at 7/16/2004 2:36:08 PM
XmlSerializer and IEnumerable
Posted by Bob Rundle at 7/16/2004 1:07:28 PM
I'm trying to serialize a class with XmlSerializer. This class implements
the IEnumerable interface. I implemented the IEnumerable interface for
reasons other than Xml serialization.
However I find that the XmlSerializer, because I have an IEnumerable
interface on this class, wants to ignore... more >>
XslTransform from one XmlDocument to another...
Posted by Graham Pengelly at 7/16/2004 11:22:14 AM
Hi
I am trying to transform on System.Xml.XmlDocument into another using
XslTransform without writing the object out to a file. I am guessing it
should work something like this...
public XmlDocument TransformXmlDoc(XmlDocument docToTransform, string
xsltFilePath)
{
//load the xslt
X... more >>
|