xml

How to center drawableTop and text vertically on the Button in Android?

I have the Button defined as follows: <Button android:drawableTop="@drawable/ico" android:gravity="center" android:id="@+id/StartButton2x2" android:text="@string/Widget2x2StartBtnLabel" android:layout_width="0dip" android:layout_height="fill_parent" android:layout_weight="1" android:background="@drawable/widgetbtn_bg" /> The...

DeltaXML Diff like library for .Net?

We are currently using DeltaXML in our .Net application to analyse two versions of .xml files regarding their differences, but since DeltaXML is a java application/library, we're looking for a more homogeneous way to accomplish that task. Does anyone know a .Net diff library similiar to DeltaXML? ...

Search relevance from XML docs (XQuery?) vs MySQL

Hello there, I have a website where documents are saved in xml documents, all with the same structure. I need a search engine where I am able to choose documents with the highest relevance according to the key words given by a searching user. I thought it could (?) be a good idea to have one using XQuery rather than having the informa...

How can i call an XSL template within a hyperlink in the XSL stylesheet

I am making my own XSL stylesheet which will perform different views on the same XML document Because the XML document is so large, i would like some links at the top of the outputted page to call each template that will be used to display the data. At the moment I can create links that use anchors to a place in the document but it wo...

Count Total Number of XmlNodes in C#

Hey, I'm trying to find a way to get the total number of child nodes from an XmlNode recursively. That it is to say I want to count all the children, grand children etc. I think its something like node.SelectNodes(<fill in here>).Count but I don't know what the XPath is. Thanks ...

Appending an existing XML file

I have an existing XML file that I would like to append without changing the format. Existing File looks like this: <Clients> <User username="farstucker"> <UserID>1</UserID> <DOB /> <FirstName>Steve</FirstName> <LastName>Lawrence</LastName> <Location>NYC</Location> </User> </Clients> How can I add another user...

How to import a resource when using Castle Windsor

Hi, I'd like to hold my components in a separate xml file for production, development etc etc. Can this be done with Castle Windsor? When using spring.net, i can use <springDestinations> <objects xmlns="http://www.springframework.net"&gt; <import resource="file://~/Config/blablabla.xml"/> </objects> </springDe...

Linq-to-XML not getting content of a node that contains html tags

I have an XML file that I'm trying to parse with Linq-to-XML. One of the nodes contains a bit of HTML, that I cannot retrieve. The XML resembles: <?xml version="1.0" encoding="ISO-8859-1"?> <root> <image><img src="/Images/m1cznk4a6fh7.jpg" /></image> <contentType>Banner</contentType> </root> The code is: XDocument document = XDocum...

schema matching

i am interested in schema matching, i have build two xml schemas,and know i want to compare and nmatch these schemas, there is many tools that can perform matching process, but i need a tool that is a vailable on the internet and free. can anyone help me? ...

remove xml nodes from xml document csharp

Hi, I have a XMLDocument like: <Folder name="test"> <Folder name="test2"> <File>TestFile</File> </Folder> </Folder> I want only the folder´s, not the files. So, how to delete / manipulate the XML Document in c# to delete / remove ALL elements in the document? Thanks! ...

A reasonable way to add attributes to an xml root element in C#.

The function "WriteStartElement" does not return anything. I find this a little bizzare. So up until now I have been doing it like this. XmlDocument xmlDoc = new XmlDocument(); XmlTextWriter xmlWriter = new XmlTextWriter(m_targetFilePath, System.Text.Encoding.UTF8); xmlWriter.Formatting = Formatting.Indented; xmlWriter.WriteProcessingI...

I am wondering how the Plural-Field generic is to be rendered in the REST OpenSocial 1.0 API specification?

In the OpenSocial Data specificaiton 1.0 for a Person object (social profile data) it includes the use of a generic called Plural-Field. The spec can be found at: http://opensocial-resources.googlecode.com/svn/spec/1.0/Social-Data.xml#Person In the 1.0 data specification there is no XSD and no examples showing the use of this generic P...

XML Serialization

I am trying to serialize an ASMX web service result, but I get the following error. There is an error in XML document. ---> System.InvalidOperationException: <ArrayOfT_SATQuestionInfo xmlns='http://tempuri.org/'&gt; was not expected Any idea on how to fix this so it will 'expect' the namespace? ...

Shopping Portal based on XML Data - XSLT or PHP?

For my bachelor thesis I want to implement a shopping (price comparison) portal prototype based on XML Data. The main requirement is to get a very clear and customizable HTML template, which should be hosted by the customer on his own webserver. I'm not very sure if XSLT meets this requirements, as it generates a lot of xsl-related cod...

What processor is javax.xml.transform Using?

I've implented a simple webapp that transforms XML based on an XSTL stylesheet. It works fine on all the Windows servers I've deployed it on (to Tomcat), but on all Linux systems, I get a compile error on the XSLT. As best I can tell, it's because Java 1.6 isn't using the same processor behind javax.xml.transform. On the one Linux sys...

Building XML with PHP - Performance in mind..

When building XML in PHP, is it quicker to build a string, then echo out the string or to use the XML functions that php gives you? Currently I'm doing the following: UPDATED to better code snippet: $searchParam = mysql_real_escape_string($_POST['s']); $search = new Search($searchParam); if($search->retResult()>0){ $xmlRes = $sea...

How does this script work for the ImageShack.us API?

I'm looking into using the ImageShack.us API for uploading images from my website. I found this tutorial for using it with the XML return http://elliottback.com/wp/using-the-imageshack-xml-api/, but I'm not sure about what to do with it. Where do I enter my API key for this script? Furthermore, he shows the use of two PHP files - should ...

OleDB provider for XML Spreadsheet 2003?

Hi. I'm unable to open XML spreadsheets (2003) using either the JET driver or the new Microsoft.ACE.OLEDB.12.0 provider. I've tried both Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 with and without the "Xml" qualifier in the Extented Properties parameter. They both throw OleDbException (0x80004005): External table is not ...

XMLReader mysteriously fails when parsing document

I have a php script that takes in some XML data and parses it, displaying various bits of information I pull out of it. This has been working fine for over 6 months, until recently it now fails mysteriously on a certain tag. The XML is generated from an outside source(a conferencing bridge), so I have no control over how it is built. I ...

Escape apostrophe in aspx file

<asp:Button ID="myButton" runat="server" OnClientClick='confirm("How do you escape this apos'trophe?")' /> ...