|
zxc89 wrote: whenever a software is upgraded to another version
zxc89 wrote: and not by Installer Project!
What mechanism are you using to upgrade the software if not an installer?
led mike
|
|
|
|
|
I'm assuming zxc89 means that when the app starts on the user's machine it would contact a web server to look for a newer version of the app then download the updated version including the updated XML files... this is what I need to do in my app as well so I'd also like to know what the options are for doing this.
If this is not what you mean zxc89 then you need to tell us what you mean!
Mike
|
|
|
|
|
nzmike wrote: I'd also like to know what the options are for doing this.
Far too many to list. With each one twisting and turning the issues involved into a jigsaw puzzle. Most likely the simplest and safest (robust) approach would be to use Bits. You can get started by reading this article[^].
led mike
|
|
|
|
|
Hello,
What is the best way to get an XmlDocument from an XmlNode?
I have a document that I run an XPath query against that returns an XmlNode. I want to create an XmlDocument from the XmlNode (using the XmlNode as the root node of my new document).
I could create a new XmlDocument, then parse the XmlNode adding each node to the document, but I want to know if there's a better way to do this before I proceed.
It seems like this would be a common problem.
Any suggestions?
Thanks!
Ian
|
|
|
|
|
Maybe you can use the XmlDocument.LoadXml method and pass in the result of XmlNode.OuterXml .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Great idea. Thanks for the help!
|
|
|
|
|
Use XmlDocument.ImportNode.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
How to read data from xml file and writing data in a Xml file and to use this in implementing in windows application using C#.net.that means how can I write data into Xml file from a FORM and read data from xml file and use that data in windows FORM.
Thanx
Rashmita Devi
|
|
|
|
|
In other words, how to use XML from C#. Take a look at System.Xml namespace, and come back with more specific question.
You can start here[^].
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
MSDN says XmlSchemaObjectTable has a 'Item' property but when I try to use it the compiler informs me that XmlSchemaObjectTable DOES NOT have an 'Item' property. Looking at the metadata shows that the property doesn't exist. There are also several methods mentioned by MSDN that are not showing up when I look at the metadata for XmlSchemaObjectTable.
I know it's not entirely unusual to find mistakes in MSDN documentation, but the strange thing is that I cannot find a single reference to the 'Item' property being obsolete or deprecated or just plain incorrect.
Does anyone have any information on this property or insight into the XmlSchemaObjectTable class? The thrust of what I'm trying to do is parse an Xml Schema to construct dynamic properties in a PropertyGrid. The properties are described as xsd:attribute elements in the schema.
Any takers?
Thanks a bunch!
Ian
|
|
|
|
|
If you're using C# the Item property maps to an indexer, so the syntax looks like accessing an array element.
XmlSchema schema = new XmlSchema();
XmlSchemaObjectTable objectTable = schema.Attributes;
XmlSchemaObject obj = objectTable[new XmlQualifiedName()];
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thanks for your reply. I'll give this a shot!
|
|
|
|
|
hi,
I am developing RSS for online shopping website using XML .
I want to display different banners of different shops using XSL.
I'm getting same image that is of first shop for all the shops i want to get image related to every shop.Please guide.
The part of xml code is as follows:
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
-
-
- <title>
<A>RSS for Shop</a>
-
-
-
RSS FOR SHOP
-
- <xsl:for-each select="NewDataSet/Table">
- <xsl:choose>
- <xsl:when test="ShopID[. = 3]">
-
- -
<xsl:text>SHOP TITLE:
-
-
<xsl:apply-templates select="ShopTitle">
-
-
<xsl:text>Product NAME:
-
-
<xsl:apply-templates select="ProductName">
-
-
<xsl:text>Product Description:
-
<xsl:apply-templates select="Description">
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Please edit your post and check "Ignore HTML tags in this message (good for code snippets)"...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hello,
I have developed a Web service and a PDA application. The Web service and SQL database are on the same server.
The client will use the PDA application and access the web service to get data on customers.
The web service, PDA application, and SQL server have all be developed and are working using the localhost, local network. By adding the web reference.
My problem is when I want to add the web reference from the Internet. This is because the clients will be on the road or at a clients office. And will need access to their data.
I have added the web reference in the normal way. Right click | Add reference. From the Internet I can access the server and add the web reference. However, the problem is that wsdl file is never included.
Some tests i have done.
Test 1
Accessing the web service when adding the web reference from the local computer, or local network. The following files are included: reference.map, service.disco, service.wsdl.
Test 2
Access the web service from the Internet when adding the web reference.
The following files are included: reference.map, service.disco. THERE IS NO service.wsdl.
Test 3
If I access the web service directly from a browser, I can see the list of web methods and descriptions.
Test 4
If i acess the web service from the Internet when adding the web reference like the following: http://MyServer/service.asmx?wsdl. The only file that is included is the service.wsdl.
I have created another simple web service that just displays the hello world. This has the same problem as above, but maybe you can use it for testing my web service.
http://cf01.no-ip.com:8000/webservice1/service.asmx
However, the above link works, but sometimes is offline.
If you can give me any advice or help with this problem I would be most grateful,
Thanks in advance,
Steve
|
|
|
|
|
|
Is it possible to restrict the enumeration of an attribute in dependecy of another attribute of the element?
For example <car manufacturer="x" model="y"> where the model enumeration is dependent of the manufacturer?
|
|
|
|
|
I have an XML file that contains lot of records.
For performance reasons, i wanted to read the file using filestream and streamreader. Also, it should read from the last. I need to retrive latest records.
How to move to previous line??
Thanks in advance
Praveen Raghuvanshi
Software Engineer
|
|
|
|
|
Can you count how many lines that you had read by using an integer count?
i love IT
|
|
|
|
|
I am creating an XML string using serialization and it is formed in UTF-16. I want to make it to UTF-8 . What are the possibilities and how can I do it.
Since this is a very urgent issue I don't have time to do R&D. I would appreciate if somebody could give a quick solution.
|
|
|
|
|
WideCharToMultiByte() will do that.
|
|
|
|
|
Is it possible to use the values from a XML file as the restriction/enumeration in a schema?
The only way I know off is to use XSL to generate a XSD file that only contains the enumeration and then include it into the other XSD file.
For example a customers.xml and a order.xsd as the schmema for orders.xml, where the name should be restricted to those in customers.xml.
|
|
|
|
|
Andre Buenger wrote: The only way I know off is to use XSL to generate a XSD file that only contains the enumeration and then include it into the other XSD file.
Not the only way (e.g. you could put the enumeration into orders.xsd and use DOM to change it according to the content of customers.xml), but I think your approach is better and far more practible, so in my opinion you should go for it.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Ok, this should be simple, but it doesn't seem to be.
XmlDocument object in memory that contains something like:
<content>testing ' and " and ' and "</content>
After I build my document with appropriate nodes, and set the value of the content node (with entities), I need to extract the xml as a string.
So far, every method I've used to extract the xml as a string converts the enties, so ' becomes ' and " becomes ".
The vendor that I'm working with is expecting the entities, not the converted characters.
??
|
|
|
|
|
You will need some how to replace the & character with & amp; This way the XmlDocument object will confuse and will translate the & amp; as & only. You will then have & amp;apos; in the memory, which should become & apos; when you get it.
Hope it helps.
|
|
|
|