xml

Saving change history to XML field in SQL Server 2008

I have worked on several applications that saved XML data into a database. To date all of them simply overwrote the current XML contents with the new XML contents. I would like to save the changes to the XML to the database but not overwrite what is currently in the DB. Short of just creating new rows for changes and leaving the old...

Using SVG to create separate images files

I've previously processed XSLT to output single HTML files that were supposed to be viewed in a browser. Now I was hoping if someone could outline would it be possible to use XML data and XSLT to create separate image files auto magically? ...

Is storing config variables in an XML file on a PHP site under the site root too risky?

I've noticed that Magento stores MySQL connection details in an XML file which isn't secured above the docroot. This seems.... well dangerous. XML seems like a handy way to store config data, except for one thing, typing in http://www.domain.com.au/library/config.xml will show the world your private details! I went ahead and used an XM...

Where are the schemas for XML files on an Android project?

Where are the schemas (DTD or XML schema) for the XML files used on Android like AndroidManifest.xml or the layouts? ...

How can I offer a gzipped xml file for download using PHP

I have a PHP script that creates an xml file from the db. I would like to have the script create the xml data and immediately make a .gzip file available for download. Can you please give me some ideas? Thanks! ...

Loading an XML document and displaying it in a tree view

I have to load an Xml document and display in a tree view in a winform. here is a piece of code. Please tell whats the error. private void AddingNodesToTree(ref XmlNode xnode, ref TreeNode tnode) { TreeNode subNode = treeNodes.Add(xnode.Name); subNode.Tag = xnode; foreach (XmlNode subElement in xnode.ChildNodes) { ...

Error in code: Loading of XML document

Hello, this is in reference to a question asked earlier. Here is the complete code and it's giving me an error: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Xml; using System.Text; using System.Windows.Forms; using System.Collections; using System.IO; ...

Free distributable XML Editor / Validator

Hi, I am looking for a FREE XML Editor/ Validator that I can distribute as part of my product. Does anyone familiar with such tool ? Thanks, Munish ...

How to access 'row' and 'column' of nodes when parsing XML

In C#, is there a way to work out an XmlNode's position in the original XML 'text', when the document is loaded from a file or string? I want to be able to report problems with an XML document that I am processing. e.g: "Error in foo.xml - value of attribute 'pet' must be a species of fluffy mammal, at line 27, column 13 [snippet of o...

JibX: how to output the fields from a particular class into different parts of the XML

I've managed to get what I want when mapping with inheritance like this: ThisClassShouldntExist freeFlowMsg errorMsg BaseForm extends ThisClassShouldntExist function subFunction SpecificForm extends BaseForm address My binding.xml: <binding> <mapping class="com.struts.form.ThisClassShouldntExist" abstract="true"> <...

The most efficient way to parse Xml

The .Net framework now has (at least) four different methods of reading an Xml string. I've used each of XmlDocument, XmlReader, XPath and XElement, but which is the most efficient to use when coding or during execution? Is each designed for a different task, what are the pros and cons? Update: Using a XmlReader appears to be the quic...

replace a set of characters with another set of chars (in pair): "&", "&amp;" "<", "<" etc. in regex

I have to encode the 5 XML reserved chars (& < > " and ') properly as follows: "&", "&amp;" "<", "&lt;" ">", "&gt;" "\"", "&quot;" "\'", "&apos;" I can do them one by one, but is it possible in regexp something like ("[&|<|>|\"|\']", "&|<"); ... etc so that it will not be executed in 5 operations one after another but alltogether s...

Syntax-highlighting for PXSL?

To mitigate some of the headache of working with XML I've been experimenting with PXSL, an abbreviated syntax for any XML document with advanced macro capabilities. However, since it's so new, I haven't been able to find any text editors that know how to parse it for syntax highlighting. Do you know of any editors or plug-ins that would...

Numeric precision issue in Excel 2007 when saving as XML

I am encountering a strange issue when saving documents in XML Spreadsheet 2003 format using Excel 2007. It seems to randomly change numeric values such as "0.58" to "0.57999999999999996". What's really odd is that you CANNOT see this issue when you are in Excel. You can only see this when viewing the XML data directly from a text edi...

How do I find an XML element by attribute using LINQ to XML?

I'm learning LINQ to XML and need to find the existence of an element with a particular attribute. At the moment I'm using: XElement groupCollectionXml = XElement.Parse(groupCollection.Xml); IEnumerable<XElement> groupFind = from vw in groupCollectionXml.Elements("Group") where (string) vw.Attribute("Name") == groupName sele...

Which PHP RPC (XML or JSON) library have you successfully used?

Which PHP RPC (XML or JSON) library have you successfully used? I have done some research but haven't been able to find one library that stands out from the others. I've found the following: XML-RPC for PHP XML_RPC (PEAR) JSON-RPC PHP And a few others that either don't look very active or mature. ...

Best way to reuse parts of an XML document?

Lets say I have an XML format similar to the following: <Random> <...Some arbitrary amount of nesting here...> <Random2> <Definition> <Name>Ape</Name> <Description>A mammal</Description> </Definition> </Random2> <Random2> <Definition> <Name>Ape</Name> <Description>A mammal...

Entity Framework with XML Files

Can someone point me to a good tutorial explaining the Entity Framework using an XML file instead of a database? I have seen some good tutorials with SQL databases, but I can't make the leap to an XML file. Thanks! ...

Which XML-related technologies I have to learn? (C# centric)

At my work as developer I do a lot of XML writing and parsing using C#. I have read very little about XAML, XSLT and XML schemas at Wikipedia and I don't see if they would make my XML-driven coding easier. Should I study any of these technologies? Which of them? Any other? ...

What is an XML parser? Using Expat

This might seem like a simple question. But I have been looking for an XML parser to use in one of my applications that is running on Linux. I am using Expat and have parsed my XML file by reading one in. However, the output is the same as the input. This is my file I am reading in: <?xml version="1.0" encoding="utf-8"?> <books> ...