xml

Vista Gadget - Write to a XML file

Hello, I have built a Vista Gadget. It grabs a local XMl file called "settings.xml". It loads it and I change a few things. then I call the xmldoc.Save("settings.xml") method which works fine of you run it in Internet Explorer... but if you run it in the sidebar it does not write to the xml - only loads from. how do I get it to write to...

XML basic style options

So I'm returning xml from a web service and I get this message in the browser (firefox) This XML file does not appear to have any style information associated with it. The document tree is shown below. Is this a simple fix by just passing a CSS style sheet? or is the a preferred way of styling XML? ...

why is sax parsing faster than dom parsing ? and how does stax work?

somewhat related to: http://stackoverflow.com/questions/3701265/libxml2-from-java yes, this question is rather long-winded - sorry. I kept is as dense as I felt possible. I bolded the questions to make it easier to peek at before reading the whole thing. Why is sax parsing faster than dom parsing? The only thing I can come up with i...

copy an xml file then save it

the source file: http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml I want to save as this file as "eurofxref-daily-yesterday.xml" under the wwwroot directory.. using c#.. how can I do that ? ...

Searching XML from Objective-C

My ipad app draws large amounts of text from an xml file and displays them on individual pages in a UIWebView, with the page determined by the XML element containing the text. What is the best way to enable the user to search the entire text for an input string? Should I have Objective-C search the XML and get back the page data, etc? ...

XML and C# video tutorials

Could some one please let me know , where can I find good video tutorials for XML in the context of C# and ASP.NET? I would also like to have learning resources on XML standards, DTD, XSLT, XSD etc. Everything related to XML. ...

How to use jQuery in Google Sitemaps and is it allowed.

How do I use jQuery in a Google Sitemap and most importantly does it violate the specifications rules or will it be blocked by Google because of the jQuery? ...

List all Persistence Units in persistence.xml

Hi all, I am trying to use XPath to get a list of all the persistence units in persistence.xml and am having trouble. The one that I thought would work was: //persistence/persistence-unit * The latter gives me the persistence child which is at least something, I can then manually iterate through, but that defeats the purpose of XPa...

Unused namespace declaration appears after XSLT

Hello, After scouring the net for answers, coming up with "almost" solutions... I decided to reduce the problem to a very simple case. Consider the following XML snippet: <me:root xmlns:me="http://stackoverflow.com/xml" xmlns="http://www.w3.org/1999/xhtml"&gt; <me:element> <p>Some HTML code here.</p> </me:element> </...

How do i retrive and filter data from XML file Using LINQ?

i am working with windows form application , In that i am retrieve the data from XML and filter needed data from that, I am using for loop it made our application slow ,so i like to go with Linq, i need some tutorial and example for retrive and filter data from XML using Linq. Another question in that ,i am retrive and fliter data from d...

searching xml files uisng Expression tree query in c#

hi I am searching the xml files from the file system using the dollowing query. Everything works fine except the following situation. If i have 2 xml files and one dosen have a specific element and other one has. My condition in the query is if element is empty or null load the xml file[Is empty==true] case "Is Empty": if(xvalue == ...

Can chrome be made to perform an xsl transform on a local file?

I was looking into xslt and started testing with the examples on w3schools. However, when I save the xml and xsl in files and try opening them locally, chrome won't perform the xsl transform. It just shows a blank page. I have added the <?xml-stylesheet type="text/xsl" href="style.xsl"> tag to the xml document, and firefox renders it a...

Error when validating a XML with XSD

I'm trying to validate a XML file with XSD, but I get a "Could not find schema information for the element 'xxx'" for each element and attribute. My C# code is: public ReadeXmlFile(string FilePath) { var settings = new XmlReaderSettings { IgnoreComments = true, ValidationType = ValidationType.Schema, Check...

What is exact xpath for the first childnodes of a node?

I have a XML code like this: <?xml version="1.0" encoding="utf-8" ?> <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid> <Label/> <Label/> <Label/> </Grid> </Window> In code, this is represented...

C# XML Dynamic LINQ

Hi all, I am trying query an xml file with dinamyc linq query. I have followed the scottGu's Blog scottGu's Blog But I have a problem to make the where clause. This is the scenario. <Rates> <Rate id="1" tax="20.5" sex="M" name="Jhon"> <Rate id="2" tax="2.5" sex="F" name="Aline"> </Rate> The idea is to query the xml using a fil...

Django-Python: Generate XML file from model data

I need to write model data (CharFields only) to an XML file to contain the data for a flash file. I am new to this, and the process is a little unclear to me for doing this in django. I am creating an xml file, and then writing the text data to the file (as is done with the csv module, but to xml). A very simplified xml file should re...

Reading and Writing XML in C#

I am using the .NET 4.0 Framework. I need to write some XML to interact with a web service. The parameters passed to the web service will be entered by an end-user. My question is, what is the recommended approach for interacting with XML these days? It seems with every version of the .NET Framework there is a new way to do the same thi...

LibXML doesn't find any nodes for my xpath expression

Hello! I'm using xpath and LibXML in an iPhone app to find some nodes in an xml document. I'm a noob in xpath so probably i am doing something wrong. Here is the xml: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs...

Parsing XML with Jquery

Hi I am new to Jquery and struggling with parsing XML. I have a search box in my form that returns the results of a sql search when the user has entered the first few letters . this string is then searched with a php file and the results are returned in the form of an xml file. The problem is that I need to uniquely identify each name a...

XML Javascript parse problem (specific code question )

Hi, I'm using the following parser to parse xml function parseXML(text) { var doc; if(window.DOMParser) { var parser = new DOMParser(); doc = parser.parseFromString(text, "text/xml"); } else if(window.ActiveXObject) { doc = new ActiveXObject("Microsoft.XMLDOM"); doc.async = "false"; ...