xml

Problem in XML content..?

Okay. Here's the code. XML Parsing Error: not well-formed <item_to_page_title><![CDATA[Breaking news, real-time scores and daily analysis from Sports Illustrated SI.com]]></item_to_page_title> The error tracking line thing points to the []-like char as the problem. I've set the page to UTF-8 and still it doesn't work. No, I can't j...

Convince Firefox to parse HTML embedded in XML (after XSL is applied)

I have some XML files of this form: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="biomirror.xsl"?> <Thread> <Title> Some thread title </Title> <Posts> <Post> <Author> Me </Author> <Body> This is the post body, which <b>may</b> have embedded XHTML, in...

Convert XML to Object using reflection

Hi guys, If you like problems to resolve, here a big one :D First, It isn't about serialization, ok? Well, my situation... I am writting a function that I will pass as parameter a Xml (XmlDocument) and an object (Object) as reference. It will return to me a object (object that was referenced) filled with the values from the Xml (XmlDo...

Simple XML parsing on PHP

Guys i have a xml file who contain this info: <?xml version="1.0" encoding="utf-8"?> <ES> <clima code="0" value="Tornado" /> <clima code="1" value="Tormenta tropical" /> <clima code="2" value="Huracan" /> <clima code="3" value="Tormentas severas" /> <clima code="4" value="Tormentas eléctricas" /> <clima code="5" ...

XSD.exe warning-error

I have some xsd's given to me and i want to generate C# classes to create xml documents based on these classes. I have problem generating classes though from those xsd! I get schema validation warning: Type'http://ww...../types:ExampleNameType' is not declared, or is not a simple type. Ok they gave me some xsd's declaring the types and ...

php amazon xml order processing

I'm trying to automate my Amazon order processing. Currently I'm using Amazon Merchant Transport to get the XML file for an order, but eventually, I'll want to get the xml files with a web-service directly to my seller central account. Partial array with Amazon order info - Array ( ... [37] => Array ( [tag...

How to generate an XML list of certain fields from my database in Ruby on Rails?

I need to supply data from my Ruby on Rails database to a jquery grid plugin. At the moment, I'm doing it like this: @notes = current_user.notes.all respond_to do |format| format.xml { render :xml => @notes } end But I only want to display certain fields in the grid, so I need to change the code to only send specified fields from t...

Android app stopping unexpectedly when built...XML layout file problem?

Hi there I've built the bare bones of my app so far in Eclipse using an adapted version of the LunarLander app provided by Android Developers. I've adjusted bits and pieces and have no errors at all though when I run it in the emulator it keeps saying "the application has stopped unexpectedly" and i have to Force Close. Is it possible ...

First child from XML using jQuery

<Row ss:AutoFitHeight="0"> <Cell> <Data ss:Type="Number">1</Data> </Cell> <Cell> <Data ss:Type="Number">2</Data> </Cell> <Cell> <Data ss:Type="Number">3</Data> </Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell> <Data ss:Type="Number">1</Data> </Cell> <Cell> ...

Define PHP-Function in XSL and calling it. Possible? How?

Like the title tells: Is it possible to write a PHP-Function in a XSL-Document and call it afterwards? I have no case, where I wanna do that. Its just a thing it came into my mind while learning XSL. In XSL you can compose something like: <xsl:processing-instruction name="php"> ...some php... </xsl> The PHP code will be run in yo...

Network service security: network message size must be known?

The server/client application communicate with each other using XML formatted data, using a TCP connection. This is awesome, since I don't have to worry to serialize/deserialize complex data. To allow the XML data receiving, I prepend the XML document length (in bytes) to the data sent over the network socket; in this way the receiving...

Extract XML info from feed ?

I try to extract specific data from an xml feed that comes from youtube. XML link: http://gdata.youtube.com/feeds/api/videos/WFPnl8aEPgo?alt=rss I've been able to extract info like: Title, Description using this query string: Dim Title As String = videoInfoNavigator.SelectSingleNode("/item[1]/title").Value However, I'm not ab...

NSXMLDocument: missing nodes

I'm trying to parse some placemarks on a Google Earth .kml file. I'm creating the document, and going through the placemarks, and I'm able to access all placemark names, but I can't access their descriptions: for (NSXMLNode *placemark in nodes) { NSArray *elements = [placemark nodesForXPath: @"name" error:&err]; NSXMLNod...

XPath (c#) Selecting nodes, then further selecting nodes based on the first query

Hello, I have the following XML <question> <questiontext>How old are you?</questiontext> <options> <option oldScore="0" Score="20">17-25</option> <option oldScore="8" Score="12">26-30</option> <option oldScore="20" Score="2">31-50</option> <option oldScore="16" Score="10">51-60</option> <option...

using xsl to generate html for excel needs more formatting

I'd like to set the background color for some tags. Neither CSS background-color or attribute bgcolor seems to work. Is there a mso- CSS that will give me background color? Perl, XSL only, No Microsoft products. It should work for OS X and Windows, with current versions of Excel. xml: <d>Y</d> html: <td class="Status Y" bgcolor="yell...

What Content-Type value should I send for my XML sitemap?

I thought I should send "text/xml", but then I read that I should send "application/xml". Does it matter? Can someone explain the difference? ...

How to set Tab style to light theme w colored text?

I'm trying to set the tab style to a light theme. Giving me white tabs. I've tried several ways but I can't get the guys to change color! Can I assign the theme in Manifest, TabHost or Tab Widget? style.xml <style name="SBstyle" parent="@android:style/Theme.Light"> <item name="android:windowNoTitle">true</item> <item name="and...

Building a graph of the structure of an XML document

I'd like to build a graph showing which tags are used as children of which other tags in a given XML document. I've written this function to get the unique set of child tags for a given tag in an lxml.etree tree: def iter_unique_child_tags(root, tag): """Iterates through unique child tags for all instances of tag. Iteration st...

How to write properly formatted xml

I'm currently writing xml to xml doc in java but it's not properly formatted, its formatted like this : <book id="bk102"> <author>Ralls, Kim</author> <title>Midnight Rain</title> <genre>Fantasy</genre> <price>5.95</price> <publish_date>2000-12-16</publish_date> <description>A former architect battles corporate zombies, an evil sorceres...

Searching an XML and getting a subset of the nodes as an XML

Given a search term, how to search the attributes of nodes in an XML and return the XML which contains only those nodes that match the term along with their parents all the way tracing to the root node. Here is an example of the input XML: <root> <node name = "Amaths"> <node name = "Bangles"/> </node> <node name = "C"> ...