all groups > dotnet xml > january 2005
Filter by week: 1 2 3 4 5
Detailed COM Interface error
Posted by katak at 1/31/2005 11:13:02 PM
I am using .net C# to call a third party application to edit a .xml file.
This is the error the third party application return when I tried to save
after edit.
Unalble to save: failure writing new data to object tree.
Detailed COM Interface error: 80004005
Then I tried to directly run ... more >>
Faster way to reconstruct XmlDocument
Posted by Zeng at 1/31/2005 5:54:30 PM
Hello,
I have profiled my code, and the current performance bottleneck is this
routine. It gets called 7400 times to do some intensive calculations when a
user uses the feature. The xmlText parameter will be used to pass in a xml
document text stored in db, the text contents (about 200 of t... more >>
sending soap over http
Posted by Mark at 1/31/2005 4:05:21 PM
i have a very simple web servive
Imports System.Web.Services
<System.Web.Services.WebService(Namespace:="urn:Example1")> _
Public Class Example1
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function HelloWorld(ByVal name As String) As String
Return "Hello... more >>
Possible to include other tags in a XSLT file?
Posted by Richard L Rosenheim at 1/31/2005 3:11:03 AM
Is it possible to include addition tags in a XSLT file, that the XSLT
processor will, for all practical purposes, ignore?
What I'm looking to do is to include a section to contain information
regarding what parameters the XSLT file is expecting. Then my program can
retrieve the information fr... more >>
MSDN like documentation for Xml-files?
Posted by Ole Hanson at 1/30/2005 7:39:26 PM
I would like to be able to generate documentation for a custom configuration
file (xml) to enable future support engineers to understand applicable
values to the various elements inside the configuration file. (see below for
sample).
Does any program exist (like NDoc) that is able to generate ... more >>
newbie question on finding and editing
Posted by GeorgeAtkins at 1/30/2005 9:39:03 AM
Using vb.net, I need to search through XML files to locate specific elements
and once found, update attributes of their companion elements. In plain
language, I need to find specific book titles and update note information
about each book. Not every book would be updated; just selected ones.
... more >>
Newbie question re column name does not belong to table item
Posted by coastalrocket NO[at]SPAM yahoo.co.uk at 1/30/2005 5:02:25 AM
This is my first time with XML and first time with vb.Net so it's an
up hill learning curve for me but I would appreciate any help with
this probably simple request.
I've got a couple of column names in an xml source that my vb.net
application can't handle. I know its because there is a ":" in... more >>
HTML 4.01 / XHTML implementation of the DOM
Posted by Edgardo Rossetto at 1/30/2005 12:46:41 AM
Hi, got a few questions:
- Does anyone know a HTML 4.01 / XHTML implementation of the DOM, or is
only System.Xml (XML 1.0 and 2.0 only AFAIK) avaiable?
- Any ideas if .NET 2.0 will have?
Is it possible to "load" the DTD specification for HTML 4.01 / XHTML
using the System.Xml namespace or... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Xsd.exe tool issue
Posted by John at 1/28/2005 1:23:04 PM
I have a xml file that I want to take it as xsd.exe's input to create schema
file. When I do xsd sample.xml, I got error,
Error: There was an error processing 'sample.xml'.
- The same table (element) cannot be the child table in two nested
relations.
However, I read WSC xml specification,... more >>
XML Guru Needed!
Posted by Steve Covert at 1/28/2005 11:31:48 AM
In converting a VB6 app using MSXML2 to a VB.NET app using System.xml, I'm
looking a cross-reference. What would the equivalent .NET XML command be to
'transformNodeToObject?' Thanks!
... more >>
Still Problems Serializing Arrays
Posted by Wayne Wengert at 1/28/2005 7:41:06 AM
I am still stuck trying to create a Class to use for exporting and importing
array data to/from XML. The format of the XML that I want to import/export
is shown below as is the Class and the code I am using to create a sample
XML file. I am trying to dimension the ArrayOfJudgeEntity to have two s... more >>
XmlDocument question
Posted by Brecht Yperman at 1/28/2005 5:03:10 AM
Hi,
I'd like to implement the following feature, but I don't know how:
When I read in a document with 'empty' elements, i'd like them to be
'compressed'.
e.g.:
....
doc.LoadXml("<item><name></name></item>");
doc.Save(textWriter);
....
returns "<item><name></name></item>"
Is there a ... more >>
Insert Doctype Node Dynamically
Posted by Chris Fink at 1/27/2005 3:37:22 PM
I am receiving xml documents from a customer without a reference to a
doctype. I know what the Doctype DTD should be need to insert the
declaration as follows
<?xml version="1.0" encoding="UTF-8"?>
<!-- start of add validation tag -->
<!DOCTYPE D1XML SYSTEM "http://url/myDTD.DTD">
<!-- end ... more >>
SOAP message to XML String
Posted by niftyhawk NO[at]SPAM gmail.com at 1/27/2005 12:32:33 PM
Hi All,
I have a web service hosted on my server. When the web service is
invoked a SOAP request is generated on my server. I would like to store
the SOAP message as XML String, so I can perform various validations on
each of the XML Tags. How do I acquire this in C# ?
Thanks,
-Nifty
... more >>
Porting from VC++ 6
Posted by Robin Charisse at 1/27/2005 11:43:03 AM
Hi,
I have a VC++6 project that uses msxml to parse XML documents. I have been
asked to port this to a .NET project but from the research I've done so far
it looks as though the only way to do this is to rewrite the project from
scratch in C#. Time is at a premium and given that I have no p... more >>
XML Conversion
Posted by Steve Covert at 1/27/2005 9:44:01 AM
I am converting a VB6 app which used MSXML2 to a VB.NET app. Is there a
cross-reference listing somewhere which maps MSXML2 methods to .NET?
Thanks!
SC
... more >>
Create Node List XML dotnet
Posted by csgraham74 NO[at]SPAM hotmail.com at 1/27/2005 8:58:39 AM
I am trying to find the values for the product description in the
below xml by using a node list. In most cases there may be multiple
values for <ProductDescription>. It just aint working - any ideas
greatly appreciated.
<Purchase>
<ProductCode>FR</ProductCode>
<NoOfProducts>1</NoOf... more >>
using xmlspy generated code
Posted by nasiem_msameh NO[at]SPAM hotmail.co.uk at 1/27/2005 8:04:52 AM
HI
XMLSPY enterprise edition have the ability to produce csharp code and
classes depending on provided XML file and XSD Schema. does anyone
have examples on how to use them.
Thanks... more >>
Conversion from XMLText to XMLElement
Posted by Anirudh at 1/26/2005 11:32:09 PM
Hi,
i wanted to know if there is any way to convert an object to
XMlText to XMLElement. Thanks in advance.
... more >>
send soap message
Posted by mark kurten at 1/26/2005 7:03:02 PM
i have a requirement to send a soap message to a web service.
i'm familiar with the soap toolkit using vb.
i need to generate a xml document which i think i can do, but i don't know
how to send it to this service.
i've accessed other web services in .net and usually there are functions ... more >>
Invalid charachters in a XML Doc
Posted by Glen at 1/26/2005 4:56:56 PM
I'm new to XML, so this is a newbie question. I'm reading in XML docs via a
VB.NET application and extracting node data and I find that one of my blocks
or lines has a copyright character in it. I'm using the .NET XMLTextReader
class and the Reader won't parse this character at all; just throws a... more >>
XSLT and HTML
Posted by Mike P at 1/26/2005 4:34:31 AM
I am quite new to XML and XSLT, and I know you can apply XSLT to XML to
display data in an XML file according to the XSLT file, but is it
possible to apply an XSLT file to page/s of HTML, so that you aren't
just limited to your XML data, but can transform a whole web page?
Any assistance wou... more >>
Newbie: How do you test for Attribute existence in C#/VB.NET?
Posted by Larry Woods at 1/26/2005 3:47:52 AM
How do I test for the existence of a nodal attribute?
The following snippet terminates with an error "Object reference not set to
an instance of an object."
Snippet:
For Each oChild In oNode.ChildNodes
If Not (oChild.Attributes.ItemOf("key") Is Nothing) Then
....................... more >>
DOCTYPE DTD and Entity
Posted by branko.geci NO[at]SPAM ht-dot-hr.no-spam.invalid at 1/25/2005 5:54:41 PM
I have problem with Entity definition.
____________________________________________
my file "test.xml"
----
<?xml version="1.0" ?>
<!DOCTYPE message [
<!ENTITY % PE "TEST1" >
<!ENTITY Ep "%PE;" >
]>
<message>&Ep;</message>
----
IE6 Error mesage ????
'Parameter entities cannot be used ... more >>
System.Xml.XPath.XPathException
Posted by laks at 1/25/2005 4:02:07 PM
Hi
I have the following xsl stmt.
<xsl:for-each select="JOB_POSTINGS/JOB_POSTING
[(
(CITY='Atlanta' and STATE='GA')
)]\">
<xsl:sort select="JOB_TITLE" order="ascending"/>
This works fine when I use it.
But when using multiple values in the where clause as below
<xsl:for-each select="J... more >>
Reference to undeclared parameter entity
Posted by STech at 1/25/2005 3:03:02 PM
I have an instance of an XmlDocument. I am using the Load method to load
some xml data but get the error message "Reference to undeclared parameter
entity". Here is the xml data
<data>
<items>
<item>This is a test
</item>
<item>Hello World
</item>
</items>
</data>
If I remove the ... more >>
How move from XmlTextWriter to XmlDocument?
Posted by Gustaf Liljegren at 1/25/2005 1:47:58 AM
I think I must use MemoryStream, but whenever I search for examples of
MemoryStream, I get lots byte-per-byte reading, buffers and so on. It's
hard to understand and seem overkill for my case anyway. All I want is
moving a finished document from XmlTextWriter into an XmlDocument. Can
anyone ... more >>
Web service on two tables
Posted by garyrob at 1/24/2005 7:01:06 PM
Please could anyone show me how to create a web service which accesses and
updates information in two tables. I have seen examples in MSDN based on one
table but these fail when using the DataAdapter Config Wizard tries to join
two tables.
Many thanks
... more >>
GUI Development tools for XSLT
Posted by Richard L Rosenheim at 1/24/2005 6:43:18 PM
Does anyone know of any GUI tools for developing XSLT? Support for XSLT 2.0
would be nice.
The only thing I know of XFactor, and I'm just wondering if there's anything
else.
TIA,
Richard Rosenheim
... more >>
SignedXML throws error
Posted by Nikhil at 1/24/2005 1:57:06 PM
When I try to used the CheckSignature Method of SignedXML I get the following
error.
"Unknown transform has been encountered. at
System.Security.Cryptography.Xml.Reference.LoadXml(XmlElement value)\r\n at
System.Security.Cryptography.Xml.SignedInfo.LoadXml(XmlElement value)\r\n
at ... more >>
NEWBIE - How to Replace XML Node Attribute
Posted by Dave at 1/24/2005 10:17:06 AM
I have an XML file:
<configuration>
<Section Name="Settings">
<Key Name="Setting1" Value="101"></Key>
<Key Name="Setting2" Value="202"></Key>
<Key Name="Setting3" Value="300"></Key>
<Key Name="Setting4" Value="404"></Key>
</Section>
</configuration>
... more >>
Serialize 2 nodes
Posted by CLEAR-RCIC at 1/24/2005 5:59:07 AM
Hi,
I have a class that I am trying to serialize. To simplify, I've changed the
names to Baseball, Teams and Players. Here is what the XML should look like:
<BaseBall>
<Teams>
<Team>
<Name />
<City />
</Team>
</Teams>
<Players>
... more >>
Deserializing an array
Posted by Wayne Wengert at 1/24/2005 4:25:25 AM
Using VB.NET I want to read in an XML file that has an array of objects and
then step through the resulting array in code. I build a class to define the
structure and I am running code to read in the data but I can't figure out
where the data is in the resulting array. Most of the relevant code i... more >>
Inheriting from XSDObjectGen classes and XmlSerialize
Posted by Peter Bates at 1/23/2005 4:05:04 PM
Hi,
I'm just getting used to XSDObjectGen and i have the following question.
Can i use a class inherited from a class generated by XSDObjectGen with
XmlSerialize?
Specifically, I have many xml files arriving from a PC inventory scanner we
use.
I wish to deserialize them and then process... more >>
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 >>
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 >>
|