all groups > dotnet xml > september 2004 > threads for september 15 - 21, 2004
Filter by week: 1 2 3 4 5
Removing a bunch of nodes
Posted by Victor Hadianto at 9/21/2004 11:05:03 PM
Hi All,
What is the best way to remove a collection of nodes? For example the
following XML:
<topic>
<title>Foo</title>
<title>Bar</title>
<description>Foo bar</description>
</topic>
At the moment if I want to remove all the title nodes I do the following
XPath //topic/t... more >>
encoding xml genned by the getxml method of a dataset
Posted by marfi95 NO[at]SPAM yahoo.com at 9/21/2004 7:59:55 PM
I have a basic question about xml encoding and predefined characters
in xml. I know that characters such as "<" get encoded to < My
question is when does this actually happen? I'm using the getxml()
method of a dataset to build my xml, but before I send it to the
server, I prepend an enco... more >>
XMLTextReader - root element is missing
Posted by cheryl NO[at]SPAM cherylgilbert.com at 9/21/2004 2:41:58 PM
I'm sending xml to a web service by building a string dynamically.
When my web service tries to validate the xml with a schema, I'm
getting the error "the root element is missing". If I use an xml file
saved to disk, I don't get an error.
Does anyone know what the problem could be?
- Cher... more >>
Writing the Xml Declaration Using XmlDocument
Posted by Dan at 9/21/2004 7:35:38 AM
Is there a better way to include the XML declaration than the following?
XmlDeclaration dec
=m_XMLDocument.CreateXmlDeclaration("1.0",string.Empty, "yes");
m_XMLDocument.InsertBefore((XmlNode)dec,
(XmlNode)m_XMLDocument.DocumentElement);
XmlTextWriter wri... more >>
XPath query problem.
Posted by Johan Smidje at 9/21/2004 5:01:03 AM
Hi.
I'm trying to locate one node in the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<ROUTINES>
<ROUTINE name="TA14">
<METHOD name="1">
<DEBET>
<SUBROUTINE name="1401"></SUBROUTINE>
<SUBROUTINE name="1402"></SUBROUTINE>
<SUBROUTINE name="1408"></SUBROUTINE>
... more >>
XmlValidatingReader gives errors from inline schema
Posted by apa57 NO[at]SPAM hotmail.com at 9/21/2004 3:59:47 AM
Hi there,
I do have a dataset which I use to write a XML file with inline
schema. A second
application should use a XmlvalidatingReader to read the xml file
again.
Now I get errors like: The
'http://tempuri.org/LicenceFile.xsd:LicenceData' element is not
declared.
I'm a bit surprised s... more >>
customize xml created from dataset
Posted by Andrew at 9/20/2004 11:14:11 AM
hi,
i've successfully write my xml from a dataset schema ....
thanks for support ...
now i need to set properly this parameters ...
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE anagrafica-prestazioni (View Source for full doctype...)>
how can i add this line considering i'm wr... more >>
Converting a string date field/node in an XML document to Date type in a dataset
Posted by ree32 NO[at]SPAM hotmail.com at 9/19/2004 10:08:36 PM
I am having problems with Date Strings when using VS.net method of
converting an XML document to a dataset.
I need the the date nodes to be of date type. As I am loading the
Dataset to a datagrid, and I using the sort facility to sort by date.
Currently the dates are being treated as strings.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Help, Transferring XML data under SSL
Posted by jimb at 9/19/2004 3:07:04 PM
I need some advice on how to securely transfer data between two servers.
Here is the situation. We have two sql servers that hold student data.
I have full access to my sql server, but only write access to the main
sql server on campus. I hope to use XML and SSL to transfer student
data ... more >>
Assembling a link to another document
Posted by Luke Vogel at 9/18/2004 10:44:11 AM
Hi all ...
More help needed please.
I'm trying to construct an anchor link to another document for my
shopping cart web app.
something like:
<a href="ShoppingBasket.aspx?isbn=<isbndata> ><img src="basket.gif"></a>
where the <isbndata> is extracted from the xml file
In my xsl file I've... more >>
benefits of xml schemas in .net
Posted by Paul at 9/18/2004 9:45:01 AM
Hi,
I have been asked to write xml schema files for some xml local datastores
that we will be using. Being new to .net, I do not know if this will be of
any benefit to our development efforts. So I am curious. Does an xml
schema assist in .net development in anyway? Does it make the xml pa... more >>
Newbie in XML with C# question
Posted by Aaron at 9/17/2004 11:34:08 PM
Hello,
I am learning how to using XML documents to store data.
I get this error:
Access to the path "c:\inetpub\wwwroot\Info.xml" is denied.
I have tried with the full path of the file, with / infront of the file.
How do I get the data in too the xml document
Here is the code below... more >>
Problem add Web Reference for CSTA WSDL
Posted by trexim at 9/17/2004 4:25:32 PM
Hi,
I am trying to create a Web Reference for CSTA using the URL
http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl
Visual .Net complains that:
"
The document was understood, but it could not be processed.
- The WSDL document contains links that ... more >>
How to deserizliaes multiple records from SQLXML?
Posted by Don at 9/17/2004 3:09:53 PM
Hi:
When I read my sqlxml results into a reader and deserialize it, I only get
the first record deserialized into my object.
If I have five records, they're all in the reader. But how do I get access
to all of them via an object or objects?
Do I need an object collection? Here's my XML th... more >>
Saving XmlDocument with Danish Encoding????
Posted by M O J O at 9/17/2004 3:06:10 PM
Hi,
I'm trying to update a vbproj xml file programatically, but when I try to
open the updated vbproj file in Vs.Net, all entries ("Files") with danish
chars are wrong.
How do I force the XmlDocument.Save to encode to Danish chars
('ISO-8859-1')?
Thanks in advance.
M O J O
... more >>
Appending XML to an existing XML file
Posted by Novice at 9/17/2004 2:47:01 PM
Hey all, I've read a few articles about speed and XML processing - so I just
want to make sure that I'm using the right strategy for what I want to
achieve.
I have an XML file that I'm appending to every time a user submits their
information.
Right now I'm using XMLDocument (Load and Sav... more >>
XML parsing in C#
Posted by venkat_chellam NO[at]SPAM yahoo.com at 9/17/2004 11:28:39 AM
I have a XML file like as follow
<?xml version="1.0" encoding="UTF-8"?>
<NeuStarLSRReport>
<NeuStarHeader fromDate="09/10/04" toDate="09/13/04"
RequestsReceived ="43" ResponsesSent="50">
</NeuStarHeader>
<NeuStarReqestList>
<NeuStarRequestRecieved pon="IDT2345611" ver="AA"
dat... more >>
XmlSerializer and MemoryStream
Posted by grs at 9/17/2004 10:01:13 AM
I am using some Microsoft examples that:
1. Serialize an object using XmlSerializer and write a file out to the
harddrive.
2. Read back in the file using XmlDocument.Load and populate a string.
What I would like to do is use MemoryStream to do this instead of writing
to the harddrive, but I a... more >>
AppendChild adds empty namespace declaration to node
Posted by Dorte at 9/17/2004 1:21:05 AM
Hi,
From an ASP.NET application I am loading an xml-file in order to modify it.
This is part of the code I have produced so far:
XmlDocument XMLDoc = new XmlDocument();
XmlNamespaceManager nsmanager = new XmlNamespaceManager(XMLDoc.NameTable);
nsmanager.AddNamespace("rd",
"http://sch... more >>
SoapFormatter.Deserialise cannot read a Font object?
Posted by Philip K at 9/16/2004 4:31:05 PM
I was trying to use Soap serialisation to save some systems settings
how ever it fails if the settings contain a Font object, works fine if
the Font object is not in the object being serialised.
Font is marked [Serializable()] in the MS documentation.
Exception has been thrown by the target... more >>
XML
Posted by Raj at 9/16/2004 3:09:03 PM
How does one generate a XML code?... more >>
help with Schema validation erroring out every single element
Posted by Tarren at 9/16/2004 9:59:10 AM
Hi:
The problem I am having is when I validate an xml file to a schema, it is
erroring out every element. I think this has something to do with me
defining/referencing the namespaces. I have searched on the net for a
while, but am still confused. Thanks in advance for help. Below is the... more >>
To access a particular node in XML
Posted by kmriyad NO[at]SPAM vsnl.com at 9/16/2004 4:00:11 AM
I'm newbie to xml and C#.
I have one XML file with the following content:
<Store>
<Book id="1" >
<Title>Thermodynamics Unleashed</Title>
<Price>56.00</Price>
<Book>
<Book id="2" >
<Title>CAD & CAm</Title>
<Price>72.00</Price>
<Book>
<Book id="3" >
<Title>Machine Desi... more >>
DataSet Data & DataSet Schema
Posted by Scott M. at 9/15/2004 11:11:39 PM
I have created a strongly typed dataset and populated it with data in my
data layer. I have confirmed that the DataSet does, in fact contain my data
and that there is a schema governing this data (obviously, since it is a
strongly typed DataSet).
I used the drag & drop method to create the... more >>
XmlSchema find element question/best practice solution.
Posted by Victor Hadianto at 9/15/2004 11:03:01 PM
Hi,
I have a simple XSD for example like this:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:element name="customer">
<xs:complexType mixed="false">
<xs:sequence>
... more >>
XmlSchema include question.
Posted by Nathan Wallace at 9/15/2004 10:31:07 PM
Hello,
I have 2 schema, for argument sake let's call them child.xsd and parent.xsd.
I define all my types in parent.xsd and the child.xsd include the parent.xsd
using the following tag:
<xs:include schemaLocation="http://localhost/xsds/parent.xsd"/>
Now when I create an XmlSchema object... more >>
XMLSerializer cannot serialize an object that contains a Font obje
Posted by Philip K at 9/15/2004 9:19:02 PM
I was trying to use an XML file to save some program settings.
But cannot serialise the settings object if it contains a Font
object (even though Font is maked [Serializable()] in the MS
documentation.
Dies in new XmlSerializer(typeof(JigViewSettings));
What am I doing wrong ?
Code:
... more >>
XML to XML Using XSLT
Posted by is4fun2k NO[at]SPAM yahoo.com at 9/15/2004 4:05:02 PM
Hi,
I need to transform one xml document into a second xml document. They
both have many nodes so xslt works fine, but there is one node I have
not figure out how to transform.
Here it is:
Node in Input File.
<FullAddress>JOHN SMITH@19495 BISCAYNE
BLVD@MIAMI@FL/33180@USA</FullAddress>
... more >>
Event Log
Posted by Marathoner at 9/15/2004 12:01:41 PM
I am tring to write to a custom event log on a Web Server from a Web Service
on the same machine. Here is my code:
// Create the source, if it does not already exist.
if(!EventLog.SourceExists(sAppName))
{
EventLog.CreateEventSource(sAppName,
sLogName,
... more >>
XML validation error. Help required
Posted by stuart dent via .NET 247 at 9/15/2004 11:44:02 AM
XML validation error. Help required
If anyone can help me, thankyou, thankyou...
When I run this code code I get this error:
The data at the root level is invalid. Line 1, position 39.
I can't work out what the error is. Can you???
original code:
Dim oRead As XmlTextReader
Dim oValid ... more >>
Co-occurrence Constraints
Posted by Eric W. Sirko at 9/15/2004 9:11:36 AM
Hi,
Eric van der Vlist's book XML Schema says that we can use xs:key to declare
co-occurrence constraints. The example he uses (boiled down a bit) is a
"book" element that must have either an "isbn" attribute or an "isbn" child
element, but not both:
<?xml version="1.0" encoding="utf-8" ?>... more >>
|