all groups > dotnet xml > january 2005 > threads for january 15 - 21, 2005
Filter by week: 1 2 3 4 5
XML Datei schreiben
Posted by Andrea Bauer at 1/21/2005 6:55:17 PM
Hallo,
wie kann ich so eine Datei unter .Net schreiben C++ oder C#.
Bitte mit Funktionsaufrufen. Vielen Dank.
Grüße Andrea
<Product>
<ProgramNumber>2</ProgramNumber>
<ProductNumber>598</ProductNumber>
<CreatePanelCode>true</CreatePanelCode>
<Length>378</Length>
<... more >>
XML not opening in Word 2003 when requested from IE 6
Posted by RandyB at 1/21/2005 12:05:03 PM
I built a web app that creates and saves a WordML file on disk (with a
processing instruction in it for Word.Document). When this file is requested
from a client machines, the client's browser automatically opens Word 2003
and views the XML in the Word application as a document, as its suppos... more >>
XSLT Dataset - need help by transform
Posted by Matthias Marx at 1/21/2005 10:44:27 AM
Hi,
May some one could help me.
I want to transform data, coming from SQL Server and loaded to a dataset
wiuth xslt.
After that, I want convert it by a xslt style sheet, and store it back or in
a new dataset.
SqlXmlAdapter ad = new SqlXmlAdapter(cmd);
... more >>
can't create schema for qualified attributes in element with default namespace
Posted by Martin at 1/20/2005 9:05:17 PM
Hi,
I have a xml file like the one below
<?xml version="1.0" encoding="utf-8"?><e1
xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2"
e1:rest="345"/>
If I try to create a schema for it with Visual Studio, I get the error
"Failed to create a schema for this data file beca... more >>
Xml fragment in XML document
Posted by Chris Fink at 1/20/2005 1:17:52 PM
How do I make this well formed?
<?xml version='1.0'?>
<xmlvalidationrequest>
<xml>
<?xml version='1.0'?><test>basic xml fragment<test>
</xml>
<status>True</status>
<errormessage><errormessage>
</xmlvalidationrequest>
... more >>
XmlTextWriter Formatting and PreserveWhiteSpace
Posted by Riko Eksteen at 1/20/2005 11:41:09 AM
Hi
I'm reading an xml file into an XmlDocument, adding some nodes, and writing
it back out. I would like the nodes I add to assume the same level of
indeting as the rest of the document. (I load the document with
PreserveWhiteSpace = true.)
I thought I could do this by using an XmlTextWr... more >>
How to convert attributes to element
Posted by Tod Johnson at 1/20/2005 10:12:52 AM
Hello all,
Can't figure it out. :( Assume that we have 2 XML document:
Document1 (source):
<elements>
<elementA attribute1="value1" attribute2="value2" ... />
<elementA attribute1="value1" attribute2="value2" ... />
...
</elements>
Document2 (element description):
<elements>
... more >>
How to canonicalize an XML Document
Posted by Pollux at 1/19/2005 8:53:34 PM
Hi
I previously posted a question which hasn't been answered, so I figured
it must have been too complicated. I must admit that I didn't make it
very easy to follow. In fact, the information I need is quite simple.
How to canonicalize an XML Document in C#? Consider the following code:
X... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is it possible to generate non-technical schema validation errors?
Posted by Prodika at 1/19/2005 4:41:03 PM
With the 1.0 Framework, I've worked out using the XmlValidatingReader. Since
I'm using the validation errors as feedback to the end user, I'm hoping to
get away from techy messages such as "The
'http://tempuri.org/XMLFile1.xsd:MaxDependents' element has an invalid value
according to its data... more >>
XML File valid, but not valid with ADO.NET
Posted by Michael Kuzminski at 1/19/2005 2:25:02 PM
I have some xml from a company that usees the same xml tag underneath
different nodes. The xml is valid, but ADO.net complains when I try to load
it into a dataset. It gives me the error:
Although this XML document is well formed, it contains structure that Data
view cannot display.
The s... more >>
Suppress encoding attribute - XMLTextWriter
Posted by Josh Newman at 1/19/2005 12:00:32 PM
I'm using the XMLTextWriter to create an XML document. I do not want the
encoding attribure in the XML file.
Instead of:
<?xml version="1.0" encoding="utf-8"?>
I want:
<?xml version="1.0"?>
Code extract:
MemoryStream ms= new MemoryStream();
XmlTextWriter x = new XmlTextWriter(ms, Enco... more >>
problem with WriteAttributeString
Posted by petterl at 1/19/2005 11:39:15 AM
I try to write out some data to an xml file but it stopped with the message
"An unhandled exception of type 'System.InvalidOperationException' occurred
in system.xml.dll
Additional information: Token StartAttribute in state Prolog would result in
an invalid XML document."
The code is as... more >>
creating dynamic elements
Posted by guevara_81 NO[at]SPAM yahoo.com at 1/18/2005 1:13:35 PM
Hello,
I have an xml doc that is formed like this
<doc>
<recSet>
<elem attrib1="Text" attrib2="FOO"><elemVal>SOME
VAL</elemVal></elem>
</recSet>
</doc>
and I want to transform it to look like this
<newDoc>
<newRecSet>
<Text>SOME VAL</Text>
</newRecSet>
</newDoc>
I can get up ... more >>
Evidence bug
Posted by Tod Johnson at 1/18/2005 12:08:02 PM
Hello all,
not so long I've found really strange bug in the .NET. It seems that
Evidence that I've got from the current executing Assembly is somehow
expired (it happens suddenly after about month) and Xslt Transformation
stop working at all for the whole AppDomain until I restart it. Am I ... more >>
Client Script XML XPath problem
Posted by news.microsoft.com at 1/18/2005 11:33:18 AM
I am using client script to handle some XML stuff with MS XMLDOM
But I ran into a problem in selecting the elements using selectNodes method
The XML looks like:
<root>
........................
<Table>
<PK>3</cls_PK>
<Person_Id>1</cls_LampType_FK>
<ClassName>MV-175</cls_ClassName>
... more >>
XML / SOAP - NameSpace
Posted by c.bouev NO[at]SPAM red.fr at 1/18/2005 2:58:48 AM
Hi everybody,
I'm stuck in some SOAP webservices running on an IBM mainframe,
connecting to them from a .NET application (WinForm).
The SOAP server does understand differently the two following SOAP
messages extracts (calling the getQuote method) :
<ns:getQuote xmlns:ns="urn:iessoapd:pgm"... more >>
problem in redefine xml schema
Posted by junlia at 1/17/2005 3:09:04 PM
We are using ACORD xml schema standard, and we need to add to it, so we
choose to redefine ACORD xml schema. One of the problems that I ran into is
how to add some values to an emumerated list.
For an emumerated list like this:
<xsd:complexType name="AttachmentType">
<xsd:simpleConte... more >>
Copying DOM object...help
Posted by Joe at 1/17/2005 10:38:18 AM
Dear All,
Can anyone help me with these two questions? Thank you. I am using MSXML 4.0
SP2 and VC++ .NET.
Q1.
Does anyone know any efficient method of copying the content of one DOM
object to another existing/initialized DOM object? Any sample code will be
most appreciated... more >>
HOW to representing NULL for dateTime?
Posted by Pet Matrix. at 1/16/2005 10:27:01 PM
Hi,
I am having the schema and one element in that schema is ,
<xs:element name="EndT" type="TstampType" minOccurs="1" maxOccurs="1"/>
How do I represent the NULL value for the datatype dateTime in the xml.... more >>
XSLT extension object returning a node set
Posted by Martin at 1/16/2005 6:01:33 PM
Hi,
I want to write an XSLT extension object that returns a node set.
I intend to use the extension object in a select attribute of a for-each xsl
element.
eg. <xsl:for-each select="myobj:mynodes()">.... </xsl:for-each>
I am currently returning XmlNodeList from my extension object method, ... more >>
Schema Pri Key and Dataset
Posted by TechNoHick at 1/15/2005 8:41:05 AM
I am using a dataset that I fill with XML data. When I try and use the
Dim curRow As DataRow = dtGalleries.Rows.Find(GalleryId)
I keep getting an error that the primary key doesn’t exist. I have the key
defined in the XML schema, but when I fill the data set it doesn’t seem to
realize... more >>
|