all groups > dotnet xml > december 2004 > threads for december 15 - 21, 2004
Filter by week: 1 2 3 4 5
Deserialization issue
Posted by Mike Sarbu at 12/21/2004 10:58:35 PM
Hello all,
I have an XML file like this:
<?xml version="1.0" encoding="utf-8"?>
<SomeObject xmlns="http://www.abcinc.com/objectdefinition"
xmlns:someobj=http://www.abcinc.com/objectdefinition>
......
</SomeObject>
And I want to deserialize it, so I created a class:
[XmlRoot(Namespac... more >>
Basix question on a string, (I beleive)
Posted by Paolo Pignatelli at 12/21/2004 3:57:10 PM
I have the following XML file:
--------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="sample2.xslt"?>
<Employees>
<Employee>
<Name>Lieder</Name>
<Age>4</Age>
<Greeting>Awooo!</Greeting>
</Employee>
<Employee>
<Name>Lieder2</Nam... more >>
XSLT example does not work?
Posted by Paolo Pignatelli at 12/20/2004 10:18:17 AM
I am trying to work the example on
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q315888 .
I follow esxactly the advice (I beleive):
Here are the files:
WebForm1.aspx:
--
....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title... more >>
Merge data
Posted by John Smith at 12/19/2004 11:26:39 PM
..Net 2003 C#
I get xml from a sql database pull.
I put the data into a XMLDomDocument and then the user changes it.
I now need to update the database correctly. I need to be able to get the
data back correctly including add, change and delete to the original data.
When I pull the data from ... more >>
Global namespace URI replacement
Posted by Chris Bray at 12/18/2004 10:41:51 AM
Hello all,
I am trying to globally replace all namespace URIs in an XML document.
I have tried using XmlNamespaceManager to do this, but have not had any
success. I don't want to do a simple string replacement on the
original text, as the URI may be referenced in a text node, which I
would n... more >>
windows service help
Posted by CK at 12/18/2004 7:43:37 AM
I need a windows service that listens to a directory , if any xml file is
placed in the directory it reads it and calls a class and receives a
string.. this is the code I came up with. it works but it kills my processor
after a few min. what should i do??
Thanks
private void button6_Clic... more >>
Changing format of XML Doc (using WriteXML?)
Posted by Paolo Pignatelli at 12/17/2004 8:15:08 AM
I am trying to get an output/file like this (below) in an XML file
(MyXmlFile.xml) (which I will use for a slide show)
--
<gallery timer="3" order="sequential" fadetime="2" looping="yes" xpos="0"
ypos="0">
<image path="images2/Test1.jpg" />
<image path="images2/Test2.jpg" />
<imag... more >>
Adding the "xls:" to an element?
Posted by schneider at 12/17/2004 2:58:17 AM
How do I add the "xls:" to a XmlNode?
I tried XmlDoc.CreateElement("xls: Value-of")
I'm trying to create an element like the following:
<xls: value-of select="SomeName" />
Thanks,
Schneider
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XmlDocument.DocumentElement is null?
Posted by schneider at 12/16/2004 8:05:42 PM
The DocumentElement is always null? and is readonly?
How to I add node items to the root?
I'm try to create a document from nothing.
All the samples start by loading a string or file.
Thanks,
Schneider
... more >>
xml generator
Posted by ALI-R at 12/16/2004 3:03:37 PM
Hi All,
I have an xml file with the structure below.I'd like to create dynamic
number of xml files from this file based on <subreport> elements.each XML
file contains
subreport element only .for instance if there are 4 <subreport> elements
,I'd like to create 4 different xml files and I want ... more >>
Xml validation against xsd
Posted by Sangeeta at 12/16/2004 12:25:01 PM
I have a xml documnet to be validated against an xsd. The xsd is specified in
the doc as
<books xmlns="my-bookshelf"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:SchemaLocation="my-bookshelf books.xsd">
<book publisher="QUE">
<title>XML By Example</title>
<author>Be... more >>
SelectNodes() having trouble...
Posted by Adrian Parker at 12/16/2004 8:42:41 AM
I have the following xml doc...
<?xml version="1.0"?>
<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
<Body>
<StatusReport>
<StatusRecord>
<CorrelationID>E1308AB43036D8B8FCD2CBB1EE7FFA6B</CorrelationID>
</StatusRecord>
... more >>
DTD translation to Schema
Posted by YorgZero at 12/16/2004 7:02:39 AM
Hello,
I need to write a DTD to XML Schema translator in C#. Is there some source
code available I can start from? It does not have to be C#, it can be C, C++
or Java.
Thanks
Yorg
... more >>
XMLDOMSelection Equivalent with .Net
Posted by Jihad at 12/15/2004 10:21:03 AM
The XMLDOMSelection, in MSXML, was great for removing groups of nodes based
on a single XPath expression.
xSel = xDoc.selectNodes(XPath)
xSel.RemoveAll
Is there an equivalent somewhere in system.xml? Otherwise, one by one seems
like the only alternative.
Thanks.... more >>
Dynamic xslt and transform with-out System.IO
Posted by schneider at 12/15/2004 4:57:26 AM
Anyone know if there is a way to dynamicly create a Xslt template/s and use
them as an
xml transform with-out use files for the Xslt?
All the methods I see use files.
I want to create a Xslt transform via code?
Any examples would be great.
Thanks,
Schneider
... more >>
XPATH
Posted by CK at 12/15/2004 2:19:14 AM
I Load the xml into the xmldoc and work with it fine. in the middle of my
function I do a xpath to get two nodes that are similar.
<X12_4010_837>
<TS837Q3_2000A>
<testvalue_AB>ck</testvalue_AB>
<TS837Q3_2000B>
<testvalue abc="tes... more >>
|