all groups > dotnet xml > september 2004
Filter by week: 1 2 3 4 5
Adding <?mso-application ...> programmatically
Posted by Victor Hadianto at 9/30/2004 5:47:03 PM
Hi,
If I have an XmlDocument DOM how do I insert
<?mso-application progid="ProgId.Here"?> programmatically?
--
Victor Hadianto
http://www.synop.com/Products/SauceReader/
... more >>
XMLDataDocument question-- appending/removing nodes
Posted by Jim Bancroft at 9/30/2004 5:29:18 PM
Hi,
I'm porting a VB 6 app to .Net, and wanted to use an XMLDataDocument to
store information that had previously been kept in XML Recordsets.
Unfortunately, I'm not too familiar yet with .Net's XML Namespace and
was wondering if someone could help with something....in the VB 6
appl... more >>
VB.NET: Get the Attribute and Text out from Xml string
Posted by http://www.visual-basic-data-mining.net/forum at 9/30/2004 2:37:14 AM
Besides using For Each /Next loop to find every individual nodes, which loop
should be use and how to apply if i want only one set of tag...(in blue)
Example:
<Book>
<Title ID ="1">
<Author>Hello</Author>
<Reference web = "www.reference.com" topic = "In thing">
</Title>
<Title ID = "2">
... more >>
Problems replacing SoapToolkit with .NET WebMethods (Server Side)
Posted by Muntz at 9/29/2004 8:03:02 PM
Hi - we are MSDN Enterprise subscribers, our no-spam address is
munter@computershare.com
We are currently trying to replace a SoapToolkit web-service with a .NET
WebMethod implementation, but can't seem to get the WSDL to line up properly.
I consulted the migration document:
http://msdn... more >>
Novice question about namespaces
Posted by flycast at 9/29/2004 1:05:06 PM
I have heard that using xml for configurations on applications is a good
thing. I have started to work with learning xml and have seen this
"http://tempuri.org" showing up automatically when I create the schema. I
have visited the site and it makes me think that I will have to post a schema
... more >>
coping with empty excel cells in the xml document
Posted by Wendy Spray at 9/29/2004 11:55:57 AM
Hi
I have an xml document that has been created from an excel spreadsheet. In
the s/s there are some empty cells however these are not captured in the xml
file. All that is added is for the cell after where the empty cell should
be, it has an extra attribute: "ss:Index="6", where it is the 6th... more >>
Database Independent aplication using XML
Posted by Hari Shankar at 9/29/2004 10:04:15 AM
Dear all
I have to develop a database independent application in c# 2003. It means
the underlying database should be anything like ACCESS, Oracle or SQL and my
application should not get affected if i change between databases. i also
have a requirement of storing 10,000 user records in my dat... more >>
xsl template startMode in system.xml.xsl.xslTransform
Posted by Steve at 9/29/2004 8:47:06 AM
Is there any way of specifying the startMode when using the xslTransform class?
We are updating code which used msxml to the system.xml classes but can find
no way to specify the startMode.
We use this so that we can specify different templates to be used by the
same xml node.
Know tha... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML Serialization
Posted by Drakier Dominaeus at 9/28/2004 7:34:52 PM
Hello all...
My problem is this.. I have an XML that has been formatted and given to me
already. My goal is to attempt to serialize the XML into an object using a
regular class and XMLSerializer if possible. I don't want to stroll too far
outside the realm of "normal". My main problem is th... more >>
Postback & Xml Control ViewState
Posted by BluDog at 9/28/2004 11:42:46 AM
Hi
I have an Xml control that reflects a tree structure from a serialized
object that is generated in the Page_Load event:
If Not IsPostBack Then
Dim ms As New IO.MemoryStream
Dim ser As New
System.Xml.Serialization.XmlSerializer(Content.Site.GetType)
ser.Seriali... more >>
Read node text.
Posted by MA at 9/28/2004 11:19:18 AM
Hi all!
I have a function that reads a nodes 'InnerText'. But when the node has
childs 'InnerText' includes that childs text to. Is there a way to select
the value from the node but not from the child?
my xml document structure looks like this:
<Root>
<Depth1>
<Depth2 with... more >>
How to get XML data out of an XML file
Posted by flycast at 9/28/2004 11:11:02 AM
I am trying to retrieve the Parameters first or second (0, 1 ,2) node from
the following XML file:
<?xml version="1.0" encoding="utf-8" ?>
<Robot xmlns="http://tempuri.org/RobotDefaults.xsd">
<Parameters>
<Name>Decker</Name>
</Parameters>
<Parameters>
<Name>A</Name>
</Parameters>
<Param... more >>
Problem with xsd codegen after installing .net framework srvice pa
Posted by Ceri Williams at 9/28/2004 9:03:05 AM
I followed the excellent MSDN article "Code Generation in the .NET Framework
Using XML Schema" [1] to build a substitute for the limited xsd.exe. My code
works fine under .NET framework 1.1, but after installing .net framework
service pack 1, my code breaks.
Below are trivial example files ... more >>
XmlWriter.WriteAttributeString()
Posted by SenthilSS at 9/28/2004 2:55:04 AM
The WriteAttributeString() method(s) of System.Xml.XmlWriter Class is
embedding the Value parameter within double quotes. Is it possible to change
this behaviour such that the Value is instead put within Single Quotes
(Apostrophes)?
--
Regards
Senthil SS.... more >>
latency of web service and serialization cost
Posted by Petr Votocek at 9/27/2004 11:24:39 PM
Hello, I would like to measure latency of webservice... I call the method
and the time is difference between start and end value of
Enviroment.Tickcount. Is it right progress??? Do you have any ideas?
Something higher precision of time? Any links?
Thanks all!
Petr
... more >>
Working app suddenly breaking. Changes to System.Xml.dll?
Posted by Andrew Vardeman at 9/27/2004 2:16:37 PM
Hi all.
Recent Windows updates seem to have broken our application. It used to
run fine but now fails with XmlExceptions when loading a document.
We've narrowed the problem to the following:
We create an XmlTextReader by passing an instance of our own subclass of
FileStream. Our subcla... more >>
Read complex XML into a dataset or XMLDeSerializer
Posted by Shailendra Batham at 9/27/2004 11:25:36 AM
hey xml gurus
I have a xml which is as follows, so my question is how can I read this
XML is VB.Net or C#. I want to loop for every survey ID and insider
every survey I want to loop for each user ID and get their values.
<?xml version="1.0" encoding="utf-8"?>
<UserData>
<Survey ID="S1">
... more >>
Bulk add prefix to XmlDocument
Posted by Victor Hadianto at 9/27/2004 2:03:02 AM
Hi All,
I have an XML document that looks like this:
<book>
<title>Foo</title>
<description>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Body this is the body</p>
</div>
</description>
</book>
Now I need to append this document into another XmlDocument object. T... more >>
XML Schema
Posted by shakuf at 9/27/2004 12:31:01 AM
hi
i would like to define a type with restrictions, i used the following schema
but i get an error
<xs:element name="Latitude">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="LatitudeType">
<xs:attribute name="Units" type="LatLonUnitsType" use="required" />
<... more >>
XML Edit Control
Posted by Lee Keable at 9/26/2004 10:22:10 AM
I am looking for a textbox like control that formats and colors xml as
you type it, just like the one in the visual studio IDE. Is it
possible to create an instance of the control used by the IDE? if not
does anyone know of a good third party control?... more >>
Hpw to serialize boolean to 0/1 into XML?
Posted by Rita at 9/25/2004 9:01:02 AM
I can deserialize my Xml that contains 0/1 to bool, but when I again
serialize it, value is true/false. Is there some way to force boolean value
to be serialized as 0 and 1, not true or false?
Thanks.
... more >>
Return Xpath Expression vor Serializable Object
Posted by Johann_Höchtl at 9/24/2004 3:35:03 PM
Hello,
is ist possible to return the xpath expression for an instance of a
serializable object?
I receive an XML which may contain values for elements, which are not
valid (no, the schema is not strict enough) and i would like to log
wrong values and in order to find those elements later... more >>
Newbie: Read/Write xml
Posted by Adriano at 9/24/2004 3:33:56 PM
hello,
I have the following XML file (config.xml):
********
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<dbSettings>
<dbhost>SQLSERVER</dbhost>
<dbuser>user</dbuser>
<dbpass>pass</dbpass>
<dbname>Northwind</dbname>
... more >>
validate xml?
Posted by bo_dong NO[at]SPAM yahoo.com at 9/24/2004 2:31:06 PM
I can create this xml document, but can't read it from file into
XmlDocument object. It complains about the first charactor in node
name...
<123>567</123>
Is there a way to turn off validation during XmlDocument.Load?... more >>
How to create web page with spreadsheet like functionality?
Posted by Tom at 9/24/2004 11:12:44 AM
Hello,
I'm looking for a tool that would allow me to create a web page with the
spreadsheet like functionality. Basically, I want to be able to type in a
number in the cell and have all totals being calculated automatically
without having a page refreshed (or a trip to the server). That would ... more >>
XmlTextWriter without a file
Posted by Magnus at 9/24/2004 10:49:47 AM
can anyone help me on how to create and manipulate a xmttextwriter without
having to craete a physical file.
I have an application that should return data in xml. But I do not want to
create a file and then delete it.
/Magnus
... more >>
xml schema import help
Posted by Iain A. Mcleod at 9/23/2004 8:11:16 PM
Hi
I'm stuck with the following schema validation problem in VS.NET 2003:
I have two types of xml document and related schema:
project and projectCollection.
A projectcollection is just a set of projects.
Therefore, I wish to include the project customType in the projectCollection
namespace.... more >>
Xpath / XPathExpression equivalent of SQL's "Top" function
Posted by ree32 NO[at]SPAM hotmail.com at 9/23/2004 7:15:57 PM
Is there one?
Also in either xpath or XPathExpression whats the best way to get the
full xpath of a node.
As i am using xpath query of (//books/.......)
So I would like to see what is before the /book tag?... more >>
soapformatter vs xmlserializer
Posted by Jarda at 9/23/2004 6:22:49 PM
Hi all, i'm looking for some performance comparison some charts. I have read
the xmlserializer is better, more flexible and faster (analyzing data types
in constructor), but there are some limitation (i.e. public members).
SoapFormatter is better to serialize arbitrary data.
I have done some tes... more >>
How to access web service from client-side Jscript?
Posted by David at 9/23/2004 12:57:01 PM
I understand that MS has dropped support of the webservice HTML component.
So, what is the new "supported" way of accessing a web service from
client-side Jscript?
DT
... more >>
how to transform xml according to c# vars
Posted by axis at 9/23/2004 12:12:54 PM
My menuing system uses xml/xslt to create the menus on my site. C# variable
values dictate what menu items in the xml get translated by the xslt into
the menu, and which are hidden. Say, if the user is logged in as non-admin,
don't render the admin links.
Currently, I have an extra attribute i... more >>
How to covert c# class to xml schema?
Posted by Cindy Liu at 9/23/2004 12:01:04 PM
Hi Everyone,
In .Net we have XmlSerializer to convert c# class to xml, or vice versa. Do
we have any APIs to convert c# class to XSD?
Thanks in advance,
Cindy... more >>
Beginner XML question
Posted by db at 9/23/2004 10:31:04 AM
Hello,
I have a simple XML file which I want to parse through in .NET using C#. Do
I have to parse line by line , or is there a way to marshall the tree into an
object type? Can someone refer me to an online document describing how I
would do either?
Thanks
D... more >>
xsd:any with nested xml
Posted by yanivya NO[at]SPAM cellcom.co.il at 9/23/2004 7:03:55 AM
pls help me!
I have a nested xml:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<myType>
<FName />
<pop />
</myType>
</root>
with this xsd:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema id="test1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="root">
... more >>
Unknown method
Posted by Predrag Tomasevic at 9/23/2004 4:15:01 AM
I'm trying to use selectNodes from javascript and my Xpath expression is for
some, to me unknow reason, failing... I'm usinh this:
xml.selectNodes("//xml/rs:data/z:row[contains(@title, 'ehe')]")
There are nodes that fulfill condition expressed in XPath - there are nodes
with attribute titl... more >>
XmlNode.ChildNodes Bug????
Posted by schiller NO[at]SPAM inode-dot-at.no-spam.invalid at 9/23/2004 4:03:42 AM
Hi,
I just tried to replace a single XmlNode with several ChildNodes.
When doing this with the following code i found out that if you get
the ChildNodes with 'ChildNodes' - property the nodes get removed. Is
this possibly a Framework Bug??
foreach( XmlNode node in oldNode.ChildNodes )
{... more >>
Dont want to write xsl transformation(html) to a file
Posted by Edwin Loubser at 9/23/2004 3:09:01 AM
Hi,
My problem is that I dont want to output the transformed xml to a file! I
convert a Dataset to xml and then apply the transformation using xsl.
Dim xmlDoc As XmlDataDocument = New XmlDataDocument(ds)
Dim xslTran As XslTransform = New XslTransform
Dim writer As XmlTextWriter = New XmlT... more >>
Create XML Document given an XSD
Posted by Victor Hadianto at 9/22/2004 11:31:04 PM
Hi,
Does .Net framework provide a way to create an XML Document based on an XSD?
I know that there may be an issue with the data inside it, but it doesn't
have to be a valid XML document to start with and then the user can fill in
the blanks.
Regards,
---
Victor Hadianto
http://www.... more >>
Xml serialization/deserialization
Posted by Snowman at 9/22/2004 3:08:35 PM
Suppose I have a RootObject which holds a collection of other objects.
The other objects have a property (Parent) which refers back to the "parent"
collection (b.t.w. my collection is based on CollectionBase), in similar
fashion as the object models of MS Office.
I want to serialize this obj... more >>
XML by J#
Posted by Raza at 9/22/2004 1:13:44 AM
Can J# compiler generate XML file as C# compiler does.
Thanks... more >>
Removing a bunch of nodes
Posted by Victor Hadianto at 9/21/2004 11:05:03 PM
Hi All,
What is the best way to remove a collection of nodes? For example the
following XML:
<topic>
<title>Foo</title>
<title>Bar</title>
<description>Foo bar</description>
</topic>
At the moment if I want to remove all the title nodes I do the following
XPath //topic/t... more >>
encoding xml genned by the getxml method of a dataset
Posted by marfi95 NO[at]SPAM yahoo.com at 9/21/2004 7:59:55 PM
I have a basic question about xml encoding and predefined characters
in xml. I know that characters such as "<" get encoded to < My
question is when does this actually happen? I'm using the getxml()
method of a dataset to build my xml, but before I send it to the
server, I prepend an enco... more >>
XMLTextReader - root element is missing
Posted by cheryl NO[at]SPAM cherylgilbert.com at 9/21/2004 2:41:58 PM
I'm sending xml to a web service by building a string dynamically.
When my web service tries to validate the xml with a schema, I'm
getting the error "the root element is missing". If I use an xml file
saved to disk, I don't get an error.
Does anyone know what the problem could be?
- Cher... more >>
Writing the Xml Declaration Using XmlDocument
Posted by Dan at 9/21/2004 7:35:38 AM
Is there a better way to include the XML declaration than the following?
XmlDeclaration dec
=m_XMLDocument.CreateXmlDeclaration("1.0",string.Empty, "yes");
m_XMLDocument.InsertBefore((XmlNode)dec,
(XmlNode)m_XMLDocument.DocumentElement);
XmlTextWriter wri... more >>
XPath query problem.
Posted by Johan Smidje at 9/21/2004 5:01:03 AM
Hi.
I'm trying to locate one node in the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<ROUTINES>
<ROUTINE name="TA14">
<METHOD name="1">
<DEBET>
<SUBROUTINE name="1401"></SUBROUTINE>
<SUBROUTINE name="1402"></SUBROUTINE>
<SUBROUTINE name="1408"></SUBROUTINE>
... more >>
XmlValidatingReader gives errors from inline schema
Posted by apa57 NO[at]SPAM hotmail.com at 9/21/2004 3:59:47 AM
Hi there,
I do have a dataset which I use to write a XML file with inline
schema. A second
application should use a XmlvalidatingReader to read the xml file
again.
Now I get errors like: The
'http://tempuri.org/LicenceFile.xsd:LicenceData' element is not
declared.
I'm a bit surprised s... more >>
customize xml created from dataset
Posted by Andrew at 9/20/2004 11:14:11 AM
hi,
i've successfully write my xml from a dataset schema ....
thanks for support ...
now i need to set properly this parameters ...
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE anagrafica-prestazioni (View Source for full doctype...)>
how can i add this line considering i'm wr... more >>
Converting a string date field/node in an XML document to Date type in a dataset
Posted by ree32 NO[at]SPAM hotmail.com at 9/19/2004 10:08:36 PM
I am having problems with Date Strings when using VS.net method of
converting an XML document to a dataset.
I need the the date nodes to be of date type. As I am loading the
Dataset to a datagrid, and I using the sort facility to sort by date.
Currently the dates are being treated as strings.... more >>
Help, Transferring XML data under SSL
Posted by jimb at 9/19/2004 3:07:04 PM
I need some advice on how to securely transfer data between two servers.
Here is the situation. We have two sql servers that hold student data.
I have full access to my sql server, but only write access to the main
sql server on campus. I hope to use XML and SSL to transfer student
data ... more >>
Assembling a link to another document
Posted by Luke Vogel at 9/18/2004 10:44:11 AM
Hi all ...
More help needed please.
I'm trying to construct an anchor link to another document for my
shopping cart web app.
something like:
<a href="ShoppingBasket.aspx?isbn=<isbndata> ><img src="basket.gif"></a>
where the <isbndata> is extracted from the xml file
In my xsl file I've... more >>
|