all groups > dotnet xml > january 2004 > threads for january 15 - 21, 2004
Filter by week: 1 2 3 4 5
XML Serialisation & Circular References
Posted by Earth Worm Jim at 1/21/2004 2:53:28 PM
I have been able to get simple circular references to be serialized in xml
by using the ImportTypeMapping method on the SoapReflectionImporter class.
But I am unable to serialise circular references when the circular reference
is contained with in a collection class, specifically I am using a ... more >>
XML Parsing
Posted by Sandy at 1/21/2004 12:41:09 PM
I have an xml string exactly as follows:
<ownerid name="Anderson, Eric" dsc="0" type="8">{CF9F4762-89CE-4470-8019-D208724883BD}</ownerid>
this comes from our CRM Database. This was returned when I asked for ownerid. I would like to display in a textbox or datagrid just the name. I know how... more >>
Read XML into Dataset and load SQL server table from Dataset
Posted by Sal at 1/21/2004 11:57:50 AM
Hello all,
I am working on a project with the following characteristics:
1. Load data from a SQL server table to an xml file
2. Read the xml file into a dataset.
3. Load data from the dataset into another SQL server table.
I was able to accomplish the first objective.
I used the follow... more >>
c# simple read and return part of an xml file
Posted by (chris.millar NO[at]SPAM voyage.co.uk) at 1/21/2004 2:28:07 AM
The below xml is saved as a file, i want the quickest way in c# of reading just the DataSource section and returning it as a string, can anyone help me out.
Cheers
Chris.
<NewDataSet>
<DataSource>
<name>Oracle</name>
<IsMaster>0</IsMaster>
<datasourceid>a3a1a14e-51d9-44b4-b0da-c5... more >>
xml encoding problems
Posted by Neet at 1/20/2004 3:36:05 PM
Hi,
I am currently working on sending an XML request to a server and it responds with an xml response. This request and response use ISO-8859-1 encoding. The xml request and response need to match. The Response i get, replaces some of the French text with <e9> characters, and the request that i sen... more >>
'Convert' is not a member of 'Boolean'
Posted by brianlagerman NO[at]SPAM yahoo.com at 1/20/2004 1:05:04 PM
I used the designer in VS.NET 2003 to create a dataset. Within that
dataset, there is an element "Tags", with a primary key and
relationship:
<xs:element name="Tags">
<xs:complexType>
<xs:sequence>
<xs:element name="TagName" type="xs:string" minOccurs="0" />
<xs:element n... more >>
Retreiving Xml child nodes using DataSet and XmlDataDocument
Posted by Anas M. Nebuchadnezzar XXXVII at 1/19/2004 6:56:25 PM
I am loading an Xml file from a sql server. I have one field that
contains child nodes stored as text. The problem is, when I try to imort
the dataset into a XmlDataDocument, it loads the whole thing as a text
element. (with all of the special characters converted) The best
solution I've fou... more >>
Problems with mixed content type.
Posted by Anas M. Nebuchadnezzar XXXVII at 1/19/2004 6:39:03 PM
I have an Xml file that I am trying to transform using an Xsl
stylesheet. My data is in the form of:
<root>
...
<aaa>
<bbb>Mixed content type, with <def link="words">words</def>
defined in between pure text</bbb>
</aaa>
...
</root>
and the stylesheet I'v... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
help with looping through XML items.
Posted by Paul M at 1/19/2004 12:48:09 PM
Larry,
i've got an xml file which has multiple cities as the top level item.
When i read it in using XMLReader, and define the variables, as below, it
finds the correct number of cities in the xml file, but repeats the first
one 3 times. I'm sure its something minor but i just cant seem to fig... more >>
Xml.net for an XML person
Posted by suzy at 1/19/2004 12:35:25 PM
Hello,
If I have some XML in the following format:
<Foods>
<Food Name="Pizza">
<Ingredient Amount="500g">Flour</Ingredient>
<Ingredient Amount="100g">Cheese</Ingredient>
</Food>
<Food Name="Pasta">
<Ingredient Amount="500g">Pasta</Ingredient>
... more >>
XML+XSL = report ?
Posted by moko at 1/19/2004 11:07:26 AM
This is a question i have always wanted to ask but didn't know whom to ask.
If i had data in XML format, am i right in believing that i can use XSL (i
dont know XSL yet)
to create a browser based report ? Or even a paper based report ? With
formulas ?
... more >>
Looking for some guidance...XML loop and process
Posted by Rich Wallace at 1/19/2004 8:55:48 AM
Hi all,
I have an XML document that my app will accept and the document may have
more than one 'record' in the document (bear with me, I'm fairly new to XML
lingo).
Incoming document:
-----------Beginning of XML-----------
<?xml version="1.0" encoding="us-ascii"?>
<!--Product data from JD... more >>
converting word to xml
Posted by prabha at 1/19/2004 12:56:11 AM
Hello Everybody,
I have to conert the word doc to multiple html files,according to the templates in the word doc.
I had converted the word to xml.Also through Exsl ,had finished the multiple output html files.
The problem is while reading through the worddoc paragr... more >>
Reading XML into a DataSet
Posted by David D. McCrory at 1/18/2004 11:38:39 PM
I have the following [WebMethod] that returns an array of a struct and I
want to load it into a DataSet on the consumer side.....Can someone provide
me with an example of how to use the DataSet.ReadXml() function with an
array of a struct??
[WebMethod]
public State[] GetState2()
{
int cnt;
D... more >>
XML Reading with XmlDocument
Posted by David Costelloe at 1/18/2004 1:44:27 PM
Hi,
I am having trouble with this code can't seem to load these email values any
Ideas?
XML File
<?xml version="1.0" ?>
<Sections>
<FilePath>
<Path>c:\temp\</Path>
</FilePath>
<Comment>Email list for Report</Comment>
<EMails>
<Address1>SomeAddress@email... more >>
produce a truly hierarchical xml
Posted by News Server at 1/17/2004 8:46:11 PM
Any help appreciated.
I have two Access tables, customer and orders. I would like to create a
truly hierarchical xml file form the joined tables. I need to produce:
<Query1>
<Customer>
<Name>Bob</Name>
<Order>
<ID>1001</ID>... more >>
Write Namevalue pair into Config file
Posted by Shaun Ram at 1/17/2004 3:18:21 PM
Hi I have this constraint. A help would be greatly apprecitated.
I have this Config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="ITASCA">
<section name="ConnectionString"
type="System.NamevaluesectionHandler,System" />
... more >>
Dotnet newbie needs some help with XML
Posted by j_jim_lewis NO[at]SPAM hotmail.com at 1/17/2004 2:54:09 PM
I need to be search an XML document to find a specific attributes
value.
Here is a sample of the XML document:
<?xml version="1.0" encoding="utf-8" ?>
<localization>
<language type="English">
<translation forid="lblEmail" text="Email:"/>
<translation forid="lblPassword" text="... more >>
Validating UpdateGram
Posted by Iain at 1/17/2004 11:25:21 AM
I've got a system which takes an XML file, translates it into an update gram
and then loads it into my database with SQLXML3 (all in dot net).
But it's fragile. And the SQLXML 3 error reporting is not absolutely
wonderful.
So what I want to do is to validate it before I upload it.
When I... more >>
Two Dimensional Array
Posted by cql60 at 1/16/2004 11:42:30 AM
Hi all Pro,
I have the class call "Person", and I do declare two dimensional array type
of string inside this class which will keep "First_Name" and "Last_Name" as
the record. When I try to serialize it by using XMLSerializer, I got error
like this:
An unhandled exception of type 'System.In... more >>
Problems MSXML 3.0
Posted by Eder de Oliveira at 1/16/2004 3:12:26 AM
So, MSXML 3.0 doesn't support Schema XSD. But where I can find
especification about this?
thanks
Eder
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
xpath problems
Posted by Marri Suliez at 1/15/2004 11:06:02 PM
I am trying to run the asp xpath examples from the QuickStarts samples, but
I am not having any luck. When I run the code in a console app it works
fine. When I run the same exact code in an aspx page it doesn't work.
Here's a condensed example of what I am talking about. If I run this cod... more >>
Attempt to identify unique keys using .NET xsltransform hangs, but works fine in MSXML 4.0
Posted by LarryR at 1/15/2004 8:02:43 PM
The following XSLT works fine using MSXML 4.0 (e.g I receive a result in
about 20 seconds), but effectively hangs in both .NET 1.0 sp2 with the XML
hot fix and NET 1.1. My source XML file is large at over 46,000
<atl_client> nodes
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet versi... more >>
Schema Derivation by Restriction
Posted by Wells Caughey at 1/15/2004 7:11:07 PM
I am trying to create an XML Schema type definition by deriving from another
type definition using restriction. For example suppose my base type was
this:
<xs:schema <<schema element setup>> >
<xs:complexType name="Fruits">
<xs:sequence>
<xs:any minOccurs="8" maxOccurs="8"/>
... more >>
Cannot Unload Assemblies in XSLT Using Script: patch??
Posted by Kenny Cheng at 1/15/2004 6:11:15 PM
Dear all
Anyone knows that this problem has been patched? Is this a .NET 1.1 or 1.0 problem
PRB: Cannot Unload Assemblies That You Create and Load by Using Script in XSL
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316775... more >>
how can i read the nodes of this file in asp.net???
Posted by Paul M at 1/15/2004 4:36:15 PM
hi there,
i have an xml file, but am not too sure how to read all these elements using
vb.net code.
any help would be greatly appreciated:))
<---------CODE--------------->
<?xml version="1.0" encoding="utf-8"?>
<weatherFeed>
<CurrentConditions>
<country>Albania</country>
<ci... more >>
C++ VS.NET 2003 simple XML sample problem.
Posted by Leo at 1/15/2004 3:50:08 PM
I'm going from VS 6.0 to VS .NET 2003. I'm converting a project and can't
get it to compile. I've created a small Win32 console app that reproduces
the compiler error. This has got to be something dumb. Please help.
#import <msxml.dll>
int _tmain(int argc, _TCHAR* argv[])
{
IXMLDOM... more >>
Write entities in a XML file
Posted by Fede at 1/15/2004 12:11:39 PM
Hi to all!
This is the file that I would like to write using VB.Net and XMLTextWriter:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--DTD-->
<!DOCTYPE my_file [
<!ELEMENT my_file (text)>
<!ELEMENT text (#PCDATA)>
<!--Entity declarations-->
<!ENTI... more >>
AppendChild in a specific order in relation to preceding-sibling? PLEASE!
Posted by KatB at 1/15/2004 11:27:05 AM
Hi,
Is it possible, and how?, to append a child element into a specific
order. For example:
<stations>
<station name="one"/>
<station name="three"/>
<station name="four"/>
</stations>
I need to insert <station name="two"> physically between one and three.
PLEASE TELL ME THIS ... more >>
Exporting from XMLReader to an XML file
Posted by Leszek at 1/15/2004 11:26:52 AM
Hello,
I have an XmlReader object containg some Xml code. I would like to export
this document from the reader to an Xml file.
How to do this?
Thanks for any hints,
Leszek Taratuta
Below there is the code I'm using:
string myXmlQuery = "SELECT 1 AS Tag, NULL AS Parent, [Filename] AS
... more >>
Signing XML with a X509 Certificate
Posted by Gustavo Quinteros at 1/15/2004 11:03:47 AM
I'm trying to sign a XML with a X509 Certificate (Like an email), and store
it in a database. I want to include the certificate in the XML in order to
display the certificate properties (like click in the red insignia in a
signed email message)
for this purpose I'm using Visual Basic .Net... more >>
Problem MSXML3
Posted by Eder at 1/15/2004 9:18:07 AM
Anyone have a problems with MSXML3, when do assign Schema document in a XML document?
thanks
Eder... more >>
Questions on Serialization and ArrayList
Posted by Hollywood at 1/15/2004 8:32:15 AM
First, is it possible to use XmlArrayItem to declare two data types, DT1 and
DT2 where DT2 is a derived class, in an ArrayList as the same ElementName?
The following throws a "System.InvalidOperationException" exception when
creating the serializer.
[XmlArrayItem (typeof(InternalDataObject), E... more >>
For Loop for Threading
Posted by Kapil Shah at 1/15/2004 7:15:46 AM
Hello Everbody:
I have a question. How do you create a for loop for
Threads. I want to create 10 threads . I have created the
the code as follows:
for( tcpThd=1; tcpThd<=10; tcpThd++)
{tcpThd=new Thread(new ThreadStart(Process));
tcpThd.Priority=ThreadPriority.Highest;
tcpThd.Start();
... more >>
|