xml

wpf - ListBox - bind SelectedItem to an xml attribute?

I have a listbox on a usercontrol which is populated by a xml file. <Machines xmlns=""> <Machine Name="Prod1" IP="192.168.1.200" isDefault="true" InstanceName="sql08" /> <Machine Name="Prod2" IP="192.168.1.101" /> <Machine Name="Test1" IP="192.168.1.103" /> <Machine Name="Test2" IP="192.168.1.104" /> </Machines> I would like t...

Writing XML data from URL to Object in SSIS Script Task

I have this URL where there is XML data. I have to extract that data from URL and dump it into DW table. I am using SSIS Script Task for that. This is how the data looks like: -<currency> <csymbol>AED</csymbol> <cname>United Arab Emirates Dirhams</cname> <crate>3.6732001305</crate> <cinverse>0.2722421770</cinverse> </currency> −...

How to make the SAX Parser wait for a file to finish downloading before it is parsed?

I am having a problem where my XML files are slow to load and don't finish downloading before they start to be parsed which throws an xml not well formatted exception from my parser showing that the file downloaded incompletely. The complete error from logcat is "ERROR/Error(323): errororg.apache.harmony.xml.ExpatParser$ParseException: ...

Scala: Create structure (XML) from Lists of Lists

I have a structure from java, a List < List < String > > containing elements like: [[ "Node0", "Node00", "Leaf0"], [ "Node0", "Node00", "Leaf1"], [ "Node1", "Leaf2"], [ "Node0", "Leaf3"], [ "Node2", "Node20", "Node200", "Leaf4"]] What I want to do is to create a XML structure (using Scala) in the most simple way, ending in somethi...

How to get data from server and update the database with it ?

I am implementing an android application and i can't figure out how to solve this problem : When user clicks to the update button , i want to connect to the my server and check if there is any update on the data , if there is , i want to get data from server and update the database.Should i use xml structure to check and get updates from...

LINQtoXML nested collections and values?

I have some XML: <Request> <EmailAddress>string</EmailAddress> <Item> <name>FirstName</name> <value>John</value> </Item> <Item> <name>LastName</name> <value>Doe</value> </Item> </Request> My object: public class TheObject{ publ...

Read XML Spread Sheet 2003 by column in C#

Hi, I need to read a XML Spread Sheet 2003 in a project and I have a problem with columns. This example show you have king of template my data are : Name Of | FirstName | SecondName | ... | ... Monday | 1 | 2 | 3 | 2 Tuesday | 0 | 1 | 1 | ? Wednesday | 2 | ? | ? | ? ...

How to limit line length for email XSLT

Hello, I'm trying to create a report in an email and email daemons chop lines if they're over ~ 2040 characters long. I'm using XSLT to build the email report and I need to break up these lines but I still need the link to work. <xsl:variable name="encoded_url"> <xsl:value-of select="saxon:string-to-base64Binary(concat(PROTOCOL,'://',...

Eclipse content assist and completion.

When typing xml in eclipse, content assist will add the closing tag of my xml. I type eclipse adds . As soon as I type a character in the body between the opening and ending tag, eclipse instantly puts an outline around the last character of the closing tag. It seems obvious that after you've completed typing the body, there ought to...

Save array as xml

array( name => text, surname => text, country => text, date => text ) 1) How can I save this array to file as xml file? 2) How to read this file then as array? ...

UIImageView and XML Parsed Data

Hello people that are way smarter than me, I got two xml elements, one is title and the other URL of image. I am trying to show both the UILabel and UIImageView. My problem is the image not showing up. Here is what I have done so far... If I pass _track.consultant_pic into an UILabel I can see the string (http://mysite.com/ted.jpg) in...

Android Menu XML : Error Parsing XML:unbound prefix (not xmlns:android ???)

<?xml version="1.0" encoding="UTF-8"?> <menu xmlns:android="https://schemas.android.com/apk/res/android"&gt; <item android:id="@+id/options" andoid:icon="@drawable/icon" android:title="@string/main_options" /> </menu> i keep getting the "Error Parsing XML: unbound prefix" This usually happens when the xmlns:android is missing, bu...

get RSS where there is none

Sorry for the long title and perhaps confusing half good now as we come. I'm asking advice or guidance on how I can get an RSS feed from a page that does not have RSS enabled by default. But that is not the problem itself. The problem is when on that page I am asked to enter a username and password. Well so otherwise would be the thing....

which is faster for running SQL on small tabular data (250 records), XML or SQL server?

I'm working on a small standalone .NET app needs to refer to some tabular data and its only just selects and at most these tables have 250 records. Previously developers have used a SQL server database. Would i get a performance advantage if i simply convert the table data to XML and read from that? Also is there any kind of performanc...

ASP.NET 4 Form inside a webform page..

I am new to programming but attempting to learn. Im running visual studio 2010 with an asp.net webform project using C#. I am trying to implement paypals buy now buttons on one of the pages and the code that is generated is in form tags also. No matter which button it is, the first button on the page never works and there is a solid blue...

XPath query for exact match

Hi, I'd like to search an xml doc (or rather Element with sub elements) for a string. It needs to be an exact match. Here's a sample of the xml <Car> <Make value="German\Opel"/> <Make value="German\Benz"/> <Make value="Japanese\Nissan"/> </Car> ...

Store XML to Mysql

I need to store XML(Rss feed) to mysql. How to store with out duplicate ? How to check them please help me for this. Thank you. ...

unix script to count the number of characters between particular xml tags

Hi I am trying to create a script that will count the number of characters between xml tags and idealy group by these values before returning the variations: eg <CONTEXT_1>aaaa<CONTEXT_1> <CONTEXT_2>bb<CONTEXT_2> <CONTEXT_2>dfgh<CONTEXT_2> <CONTEXT_6>bb<CONTEXT_6> <CONTEXT_1>bbbb<CONTEXT_1> the result of this would be <CONTEXT_1> 4...

Singlethreaded application shows race condition like behaviour

I have a big (~40mb) collection of XML data, split in many files which are not well formed, so i merge them, add a root node and load all the xml in a XmlDocument. Its basically a list of 3 different types which can be nested in a few different ways. This example should show most of the cases: <Root> <A> <A> <A></A> <A...

edmx file to an XML document

Can I connect an edmx to an xml document instead of a sql database.If so how can this be done? ...