all groups > dotnet xml > august 2006
Filter by week: 1 2 3 4 5
Net 2.0 client calling Axis WS -- send document problem
Posted by David R at 8/31/2006 11:40:02 AM
I am calling an Axis web service from a Net 2.0 client. To be helpful, the
developers on the Axis side sent a test client that they created, with
snippets below. What I am trying to do is add a document to a workplan
object, and return the object. I can return the object okay, but do not se... more >>
Merging XML documents
Posted by Garikayi Mukombachoto at 8/31/2006 12:00:00 AM
Hi
I would really appreciate any assistanance with the following situation.
Lets say i have 2+ documents A,B,...n that i need to merge together, such
that the resulting documents contains totals or sum of the common elements.
For example:
Doc A
<employees>
<emp ID="1" Items="20... more >>
Help applying XML?
Posted by Ben R. at 8/30/2006 12:28:02 PM
Hi,
I'm writing a .NET winforms app that serves as an email client. Users can
store message templates. This is done via an XML document for loading and
saving the templates. When the template is loaded, it's displayed in the
message textbox. Currently, this is the end of the XML phase. Now ... more >>
Embedd XML string within another XMl Document
Posted by Joe at 8/30/2006 8:41:35 AM
Hi
I am trying to build a XML db and within this I want to store an XML string
as 1 element
as "Info" below
If I build up a XMLDocument with data - how can I transform it to a string
containing < > so I can
put it into my main XML document
Thanks
<?xml version="1.0" standa... more >>
Generated proxy class cannot be compiled
Posted by Yato at 8/30/2006 7:28:01 AM
I have WSDL which uses structure where one field is named "System". When I
create proxy class for it (either by adding as Web reference in VS2005 or by
using wsdl.exe tool) I am getting compilation errors all around the class.
Particularly on attribute lines before property definitions
[System... more >>
Intellisense generation using C# and XSD
Posted by grimgroups NO[at]SPAM gmail.com at 8/29/2006 6:49:27 PM
I have a website which requires user input of xml data. The xml data
is currently entered by hand in a multi-line textbox. The xml is
fairly complex and I have an XSD file to validate it when the user
submits the form. I'm using Atlas elsewhere in my website and I'd like
to use it to add inte... more >>
Dynamically generate form from XML & XSD?
Posted by Scott Zabolotzky at 8/29/2006 5:09:20 PM
I'm sure somebody has to have done this already but I can't find
any good references.
If I have an XML file with an associated XSD what is the best way
to dynamically generate a web form with proper controls for the
various elements in the XML file?
I found an article that describes how to... more >>
What do FTP servers do when file send fails durring a file upload? Are partial files ever written? does ftp protocol cover this?
Posted by Daniel at 8/29/2006 4:12:26 PM
What do FTP servers do when file send fails durring a file upload? Are
partial files ever written? does ftp protocol cover this?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Creating an XML document based on XPath statements
Posted by Yossi at 8/29/2006 11:57:51 AM
Nice tool!
I am looking for something that will do the reverse. I have a whole bunch
of XPath statements and I need to use them to generate and populate an XML
document. I have mapping file that maps my data to a specific XPath. For
example:
Field# XPath
1 /LOAN/_A... more >>
How to read contents of html table with .net?
Posted by Jim S at 8/29/2006 7:06:01 AM
I have a need to read the contents of an html table on a remote web page into
a variable. I guess this is called screen scraping but not sure. I'm not
sure where to start or what the best practices are to accomplish this. For
instance; I have a healthcare app that need to check a gov't we p... more >>
XML reading issue
Posted by Neelesh rawal at 8/28/2006 11:54:02 PM
I have some XML file like that:
<data>
<WebInfo>
<Folder></Folder>
</WebInfo>
<album>
<info></info>
</album>
</data>
if i am matching the 'album' template in a xsl means
<xsl:template match="album">
then how can access the values of upper nodes like 'webinfo'.
and
if... more >>
Schema Question
Posted by randy at 8/28/2006 9:03:11 PM
Hi,
I am fairly new to XML schemas and why to use them. I am integrating with
another application via xml. My questions are schemas only good to validate
the XML documents or can I use the schema to help me parse the xml document?
Thanks
... more >>
XML -> DataSet truncating
Posted by Daniel Wilson at 8/28/2006 3:46:36 PM
We have a stored procedure that is giving us an XML representation (using
FOR XML Explicit) of a sales order. Sometimes that evaluats to quite a long
string. Unfortunately, this XML string is being truncated to 2034
characters before we can do anything with it.
Here's our code:
Private Sub L... more >>
Controlling class definitions generated from xsd.exe
Posted by robc at 8/28/2006 10:54:02 AM
Hi,
I am using the xsd.exe tool (in .NET 2.0) to generate C# classes from a set
of schemas. Some of the XML types that I have defined are used by more than
one schema. For maintenance purposes, I have placed these “common†types
into their own schema and have imported them into the ot... more >>
Update XML config file with treeview nodes
Posted by Christian_R=FChl at 8/28/2006 5:13:13 AM
hey! what i wanna do sounds very simple at first, but it turned out to
be a real bone crusher...
i want to check if a treeView node is checked and if a correspondent
node in my xml config file exists just to sort of synchronize them by
changing the xml nodes attribute(s).
somehow i always c... more >>
XML Tree Structure
Posted by glenn at 8/28/2006 4:26:02 AM
Hi Folks,
I would like to take a XML document and write its data into a tree structure
for a custom tree control. The document has two fields with one called task
(a text field) and the other called tree_level (an integer field). Consider
the document to be valid and well-formed. The tre... more >>
XML reading issue....
Posted by Lloyd Dupont at 8/28/2006 12:00:00 AM
I have some XML file like that:
===
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>affiliateId</key>
<string>AFL9124395098</string>
................... more >>
FREE .NET EBOOKS , DOTNET TUTORIALS, CODE SNIPPETS - www.DotNetGuide.net
Posted by Alex Bent at 8/26/2006 8:42:49 AM
Visit this site u will find good .Net ebooks, .Net source code, .net
tutorials and lots more for vb.net, c#.net, asp.net and other dotnet stuff.
URL: www.DotNetGuide.net... more >>
Apparent documentation contradiction for XmlNode.SelectSingleNode(
Posted by SailBoffin at 8/26/2006 8:06:01 AM
I just noticed something confusing the MSDN documentation for the
XmlNode.SelectSingleNode() function here
http://msdn2.microsoft.com/en-us/library/fb63z0tw.aspx
It says, under the "Return Value" section that "The XmlNode should not be
expected to be connected "live" to the XML document."... more >>
Two XPath expressions in one?
Posted by Kevin Burton at 8/26/2006 5:36:01 AM
I have determined that the following XPath expression:
//Message/OrderReport/Item/Quantity
gives me all of the "Quantity" nodes and
//Message/OrderReport/Item/ItemPrice/Component[Type = ""Principal""]/Amount
gives me all of the "Amount" or unit price nodes.
Is what I want is to combin... more >>
XML between two XmlNodes
Posted by Jan Kucera at 8/25/2006 8:05:26 PM
Hi,
I have two elements in XmlNode objects belonging to one XmlDocument. How
can I get the xml markup between these two?
I mean if the document looks like
<parent>
<child1 />
<child2 />
<child3>
<sub3child />
</child3>
<child4 />
</parent>
So when the first XmlNode will be... more >>
XML data has childattributes ?
Posted by Tony Girgenti at 8/25/2006 3:45:34 PM
Hello.
I have attached the XML data in question at the end of this post.
I don't understand what is between <TripData> and </TripData>. When i
talked to the publisher of the XML document, he says: "you will have to use
childattributes to access the attributes of the <TripData> element".
... more >>
XPath Request
Posted by SD at 8/25/2006 3:11:14 PM
Hi,
How can i get all the nodes with attribute Name = "Publisher" or
Name="Administrator" using XPath query and C# for this xml doc?
<GetRoleCollectionFromUser
xmlns=\"http://schemas.microsoft.com/sharepoint/soap/directory/\">
<Roles>
<Role ID=\"1073741826\" Name=\"Reader\" Descr... more >>
SignedXml gives false negatives when using namespaces in signed xm
Posted by Peter Ravnholt at 8/25/2006 7:05:01 AM
Hello all,
It seems that digitally signing XML documents using the SignedXml class has
a bug - or at least a behavior I cannot explain.
The problem occurs when I sign XML documents containing namespace prefixes
and namespace references and then validate it. The validation always fails
(r... more >>
getting the value from text file to xml
Posted by Jerry John at 8/25/2006 2:03:01 AM
I am working in ASP.NET with C#. I have a text file which contains datas
with delimiters. For example:-
MSH|^~\$|DISCHARGE|CLAY COUNTY MEMORIAL|||200502110939|
I also have an XML file created with predefined tags. Some of the tags
contain child element. I need to pass the data from the te... more >>
XmlValidatingReader Ignores xs:int definition
Posted by nshala NO[at]SPAM gmx.de at 8/25/2006 1:28:05 AM
Hallo,
I wrote a complex XSD-Schema for validating complex XML files. By
validating xs:int elements XmlValidatingReader does not validate it
correctly. My XSD looks like this:
....
<xs:complexType name="Frage">
<xs:all>
<xs:element name="Wann" type="xs:string" minOccurs="0"
msprop:nul... more >>
DataSet WriteXML generates 'NewDataSet'
Posted by bav at 8/24/2006 6:46:43 PM
Hi;
I would like to produce this kind of XML output using VB.NET 2003
DataSet.ReadXMLSchema, and add some row contents, and finally
DataSet.WriteXML
<test>
<header>
<name>...</name>
<description>...</description>
</header>
<subject>
<lkfdsjldsjfl ..ds.f
</subject>
</test>
... more >>
XMLDataDocument <-> DataSet -- out of sequence
Posted by Daniel Wilson at 8/24/2006 3:47:29 PM
I am trying to read data from MS SQL Server and turn it into an XML message
to send to a remote server, as follows.
sfSchemaFileDiag.FilterIndex = 2
If sfSchemaFileDiag.ShowDialog = DialogResult.OK Then
DataSet1.WriteXml(sfSchemaFileDiag.FileName)
End If
The resulting XML file is... more >>
How to parse an XML file - Beginner...
Posted by DelphiLover at 8/24/2006 2:25:48 PM
Hi.
This should be a walk in the park for almost anyone...
I'm a skilled win32 programmer, trying to learn asp.net 2.0
I've tried making a XML file parsing it to draw a GUI (web application)
I have a small example:
<?xml version="1.0" encoding="utf-8" ?>
<Persons>
<Person ID="ET40">
... more >>
Comparing 2 xml docs
Posted by Rob at 8/24/2006 8:57:54 AM
Is there an easy way to compare 2 xml documents in order to see if they are
identical ?
... more >>
Bad extra quotes in generated href
Posted by amdarling NO[at]SPAM gmail.com at 8/24/2006 8:44:57 AM
I'm getting some strange behavior when trying to generate a link and
haven't seen this question posed before. I'm getting search results in
groups of 50 and trying to create pagination links, also in groups of
50. So what I'm trying to achieve would be...
<< ==link to first result page
< ==... more >>
XPath Editor (Updated!)
Posted by ziggyware NO[at]SPAM gmail.com at 8/23/2006 7:52:01 PM
Hi All,
I have updated my XPath Generator software: XPath Studio .NET.
( http://www.ziggyware.com/downloads.php?cat_id=2 )
Easily select nodes from an xml file to generate XPath statements
Insert node values to narrow down XPath results
Insert by node value ornode existance
Mult... more >>
How to set an string element's value to a CDATA block?
Posted by soccerdad at 8/23/2006 3:38:02 PM
I've got a class hierarchy generated from a .xsd schema file using the
XSD.EXE tool. One of the elements will have its "inner text" set to a CDATA
block. The XSD.EXE tool exposed a "Value" property on that element to allow
setting that inner text. After I create the object hierarchy and specif... more >>
XSLT look-up based on attribute
Posted by Optimus Prime at 8/23/2006 10:20:18 AM
Hello,
I need to perform a reltively simple operation but am having trouble
figuring out how to to it.
Basically I have two XML files. The first is a look-up of names based
on ids. The second has specific data that uses the ids of the first as
an attribute. I would like to transform the ... more >>
.net 2 and C# - how to show results of xslt as web page?
Posted by imissphp at 8/23/2006 8:02:02 AM
I am using Visual Studio 2005 .NET 2.0. and C#.
Has anybody transformed xml using xsl and shown the results as a web page?
It should be a simple task.... but I can't find a way through the maze of
deprecated or incompatible classes in .NET
I have a dataset object (which has a GetXml() method ... more >>
From Database to XML
Posted by Dikkuuhh at 8/23/2006 12:08:48 AM
I have a simple database with address information about a member...
I must get that information in a xml document on the server, and then
read it again, without saving it locally....
This is what database is like:
Member - Name - Street - Number - Zipcode - City - Land
Can somebody help... more >>
Read some XML tags
Posted by Stupid48 at 8/22/2006 5:49:29 PM
I'm rather new to working with XML in .NET and have been doing all the
reading I can handle. Perhaps, it's the format of the XML that is
confusing me but....
<event type="system" time="14:23:15" vcrTime="00:00:00"
digitalTime="00:00:01">
<text><![CDATA[Start Cap:14h23m14s.asf on 2006-03-06]... more >>
Text attribute is an array.
Posted by Kevin Burton at 8/22/2006 4:45:02 PM
I have an XSD that is converted from a DTD that I am trying to clean up.
There is a section in the XSD that looks like:
<xs:element name="partnerID">
<xs:complexType mixed="true">
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="roleType" type="xs:string"/>
</xs:... more >>
what is the best way to do this (replacing xmlnode value)
Posted by dotnetnoob at 8/22/2006 2:38:02 PM
i need to copy several xml files and use it as xml element and insert them
into a xml file. i use DOM support in .Net and from the pervious help i was
able to copy and insert them into the xml file that i want but i need to
change some xml node value before i insert. what is the best way to do... more >>
Error using ReadXmlSchema on a xsd file.
Posted by Jerry C at 8/22/2006 1:29:02 PM
I am using some sample code from gotdotnet to Create DataSet mappings from a
xsd schema. I am geting this error. code and error below. I might mention
there is also a publictypelibrary file with this file I may have to use it in
some way. I am very new at XML so some examples or articles would... more >>
Help with XslCompiledTransform
Posted by Steve at 8/22/2006 7:30:12 AM
I am using XslCompiledTransform to transform XML into Excel 2003
SpreadsheetML. In order to get the resulting XML file to open in
Excel, we need the following two lines at the top of the file:
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
I can get the <?mso-application ..... more >>
Cannot find root element in XML file
Posted by TT (Tom Tempelaere) at 8/22/2006 4:39:01 AM
Hi all,
I created an XSD to define the structure of an XML file for my project. I
made an XML file linked to the XSD using XmlSpy. The problem is that if I
read the file using .NET XmlDocument and then query for the root element, the
result is always null (1). However if I strip the root el... more >>
SetAttribute xlink:href
Posted by jvanulden at 8/21/2006 11:12:01 PM
Hello all,
I am having difficulty figuring out how to create an XmlElement and giving
it an attribute that requires a namespace. Here is what I have so far which
throws an exception because you can't have a : in an attribute name???
XmlElement eOnlineResource = m_context.CreateElement("On... more >>
Importing existing XSD schema file into Visual Studio 2005
Posted by donnie.hale NO[at]SPAM gmail.com at 8/21/2006 8:01:35 PM
Question: What's the "canonical" way to import an existing XSD schema
file
into VS2005 in such a way that I can use standard C# object / property
techniques to create content of that schema type and ultimately
generate an
XML file based on that schema?
Background: I've been given an XSD file... more >>
Tired and dumb. XML & the DOM
Posted by nickjaffe NO[at]SPAM gmail.com at 8/21/2006 1:40:57 PM
Hi all,
I've spent literally hours trying to figure this one out. I'm
re-developing an app from vb6 to vb.net, and I cannot get my XML code
working. I've just started using .NET. I'm tired, highly annoyed and
this is my problem (I know it is very easy for someone who has done
this before):
... more >>
Creating a xml from scratch in C#
Posted by Kim at 8/21/2006 1:25:54 AM
Im making a config file to a C# program in XML. I have save and load
functions, but these require a base XML file with its structure to
exsist (Im new to XML, so this was the way I it to work).
Now I want to extend that, so if the base XML file doesnt exsist a
function will make the structure. H... more >>
System.Xml.XmlDocument with (x)html entities
Posted by peuramaki NO[at]SPAM gmail.com at 8/20/2006 12:19:14 PM
Hello all,
I'm having a bit of a problem with System.Xml.XmlDocument. The scenario
is as follows:
I receive a dataset containing some data fetched from database. I can
retrieve a string containing the data with Dataset.GetXml method.
Inside the xml document, in a datatable field, I have an ... more >>
XML Schema with same named Tables?
Posted by David++ at 8/20/2006 5:54:02 AM
Dear List,
Is it possible to have a schema with tables of the same name? I need to
build an XML document based on the following schema -
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Recordlist"
targetNamespace="http://tempuri.org/Recordlist.xsd"
elementFormDefault="qualified" ... more >>
Getting an IXPathNavigator's Document
Posted by Keith Patrick at 8/19/2006 9:11:01 PM
I'm trying to do the functional equivalent of IsNodeDocument(IXPathNavigable
myNode, IXPathNavigable potentialRoot), but I can't seem to get any
comparisons that will work. If I use MoveToRoot(), I lose the state of
myNode, but SelectAncestors(XPathNodeType.Root, true/false) won't work on an ... more >>
Replace All XML Data
Posted by Derek Hart at 8/18/2006 5:34:52 PM
For testing purposes, I need some code that will loop through all attributes
and elements in an XML file, and replace the data with the element or
attribute name? Does anybody have code that will do this, looping
generically through every node? VB.Net code would be appreciated so I can
see ... more >>
|