xml

reading twitter's rss search feed with simple xml

Having some trouble selecting some nodes in the rss feed for twitter's search the rss url is here http://search.twitter.com/search.rss?q=twitfile each item looks like this <item> <title>RT @TwittBoy: TwitFile - Comparte tus archivos en Twitter (hasta 200Mb) http://bit.ly/xYNsM&lt;/title&gt; <link>http://twitter.com/MarielaCelita...

How to best save XML files

I have a bunch of classes that each read in their values from an XML file using TinyXML. I've done this so everything is in memory, and my user is using the app and making changes. If the user presses Save, I need to iterate through my objects and call the Save() function which writes out the XML file. Should I rebuild the XML file pr...

How can I use an XML file to select dyanmic templates for an ASP.net Repeater?

I am developing an application that has a repeater that will use dynamic templates for each row based on the underlying DataItem (in this case a product). What I would like to do is have some sort of XML file that will store which templates are to be used with which templates, and then use a default template if there is not one specifie...

XPath (C#) throw an exception: Namespace Manager or XsltContext needed

Hello folks: I ask a question about using XPath function there But I meet a problem about this exception: [System.Xml.XPath.XPathException] = {"Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function."} The xml is as follows: <x-config> <!--user location--> <x-list> <Cou...

XML parsing in objective-c

Hi all, I have a xml source and now i would like to present in my tableview. Source code for xml: <NewsML> <Catalog Href="http://www.afp.com/dtd/AFPCatalog.xml"/&gt; <NewsEnvelope> <DateAndTime>20091123T171818Z</DateAndTime> </NewsEnvelope> <NewsItem> <Identification> <NewsIdentifier> <ProviderId>afp.com</Provid...

How to open a url's returned content in an eclipse editor?

I'm debugging some xml returned from a URL and am using Eclipse's editor and XML validation to find problems. Currently that involves saving the XML returned from the URL and opening it in Eclipse, which is really tedious. Is there a way to more directly load the contents of a URL into an editor window in Eclipse? ...

How do I verify the same element appears multiple times in an XSD

Hi, I have an XML document which is to have the following tags: <step id="navigation"> ... </step id="background"> <step id="content"> ... </step> How do I make sure steps with ids of content, background, navigation, etc. appear in my document only once? Right now I have <xs:element name="step" maxOccurs="1"> <xs:c...

Importing excel data to xml with one column having different values?

Hi, I am trying to convert my data to XML using Excel. However for one of the column: lcd_size, I have multiple value for it. How do I get it to display in the following way below? ...

Weird behaviour of a deserialized class

I've got a huge XML file that's being deserialized by XmlSerializer in an XSD-generated class structure. Everything used to work just fine, but now a weird thing started happening. Sometimes (50% of runs) a field of a certain object of a class that's deep in the class tree just changes to a certain value of the same field of a different ...

XmlWriter.WriteRaw indentation

Hey I have a similar question like http://stackoverflow.com/questions/858630/xml-indenting-when-injecting-an-xml-string-into-an-xmlwriter. I also use XmlWriter.WriteRaw to output an XML fragment into an xml node. This document fragment does not follow the idention which would be nice. The answer given on the post above does not work fo...

[XML+XSL+GOOGLE] website to be indexed in google?

Hi, I am not sure what or if I am doing something wrong at the website http://www.jode.com.br it uses XML and XSL transformation on the browser and after a week it still does not appear in google. it is normally using google-analytics, I can see the visits etc, but in google i got nothing I put meta tag in the xsl and in the xml j...

How would you build this xml in c#

I need to generate this simple looking XML, looking for a clean way to generate it. <order> <user>2343></user> <creditcardtype>2333></creditcarttype> <country>USA</country> <orderDetails> <amount>23434</amount> <shipping>32</shipping> </orderDetails> </order> ...

Put xml node's full path in attribute file and read the node's value from main xsl file in xsl fo

I have been using fop 0.95 to generate pdf files from xml data. I have three files involved in the process: test.xml, test.xsl and attributes.xsl. Naturally I have xml data in xml file. Here test.xml is the main xsl file which imports attribute sets from attributes.xsl file. For example, I have following entries in the attributes.xsl fil...

Nokogiri::XML::Reader doesn't seem to recognize 'content' or 'text' methods.

Hi there, I've got a really simple xml doc (extracted from an html table), and a really simple Nokogiri script, but for some reason I can't get the text out of the xml nodes. I can get attributes, but not the text/content. Anyone have any idea what could be wrong with the following? Here's the xml: <?xml version="1.0" encoding="UTF-8"?...

C# TreeView only shows Tags, but no values

Hi there, i got a problem with a TreeView and a XmlDataSource! The Problem is that the TreeView only shows the node-names without values! The Xml-File which is the XmlDataSource: My code: konferenz.Save("d:/datafortreeview.xml"); XmlDataSource xds = new XmlDataSource(); xds.DataFile = "d:/datafortreeview.xml"; TreeA...

write result of for xml raw query to file vb.net

I have a for xml raw select query that returns a xml string in server2005 and i would like to write that string to a file using vb.net. ...

Java seems to be truncating long string result from MS-SQL query

So I've got a query in a JSP class that retrieves, basically, the entire contents of a table as a string using MS SQL's "FOR XML AUTO" feature. I.e., select * from userdata for xml auto. The problem is that the result is being truncated at around 2033 characters. There's no unusual character at that point or anything; the break occurs...

reading from XMl file in java

I have a simple XML file <requirements> <requirement> <name> SwitchON</name> <id>1</id> <text>The Light shall turn on when the Switch is on.</text> </requirement> <requirement> <name>SwitchOFF</name> <id>2</id> <text>The Light shall turn off when the Switch is off.</text> ...

What's the best way / tool to get excel data into an Atom 1.0 formatted feed?

I have some data in excel format that I want to get into an Atom 1.0 xml file. Is there one tool out there that is easier to do this in than others? Excel can save in XML format so the other question is if it's easier to convert that to Atom? ...

xml element name with colon

I'm working against a 3rd party xml api. They have defined a required xml structure similar to the following. <ns1:E xmlns:ns1="schema"> <ns1:B> <ns2:S> <ns2:V> <ns2:Bl /> </ns2:V> </ns2:S> </ns1:B> </ns1:E> There is a SQL table with the information that I need to put into this xml format. I have a LINQ to SQL adapter to ge...