xml

jaxb or equivalent for Coldfusion

I'm very new to this, so go easy on me. From my understanding, JAXB allows the programmer to use Java classes to write XML, and it takes care of creating the proper XML structure by reading XSDs. This way, when the schema changes, the programmer doesn't have to go back and rewrite a bunch of hard-coded XML because JAXB automatically tra...

Parsing annoying Youtube API XML feeds with jQuery

I am learning how to utilise external XML feeds within our Intranet, to better serve our staff and reduce their need to go outside the network for content. I can render the basic information from the feed without a problem. Where I come unstuck is trying to display one of the video thumbnails to use as part of the my chosen layout. Pro...

Python2.6 XML reading

Hey Guys, I want to migrate my system from Active Python 2.4 to Python 2.6.5. However I face some problem in parsing XML files. The I/O is very slow. My sample xml file <config><dicts><dictName>EnvDict</dictName><dictElems><key>AppServerIP</key> <value>localhost</value><key>DBServerIP</key> <value>localhost</value><key>DBServerName...

PHP function to turn arbitrary "description" into valid xml data for podcast feed

I am reading the documentation for creating a podcast feed suitable for iTunes, and the Common Mistakes section says: Using HTML Named Character Entities. <! — illegal xml — > <copyright>&copy; 2005 John Doe</copyright> <! — valid xml — > <copyright>&#xA9; 2005 John Doe</copyright> Unlike HTML, XML supports only five "named c...

asking for a XPath query string

How to parse the "File" node under "File and Folder Items" using Xpath <TreeView> - <Node> Catalog - <Node> Device Items <Node>A1</Node> <Node>A2</Node> </Node> - <Node> File and Folder Items <Node>File</Node> <-- here!!! <Node>Folder</Node> </Node> <Node>CCC</Node> </Node> </TreeView> ...

How to asynchronously receive data into a Rails app from an iPhone app?

Hello everyone, A large part of a project I'm working on now deals with sending certain messages, which can easily and preferably be XML, from an iPhone app to a Ruby On Rails app. The webapp will have to instantly show these messages, so reloading the page isn't really an option. I've been unable to find any info re: creating this sor...

Public XML URLs

Hi, Does anybody know of any public sites on the net that have URLs with a ".xml" extension? Need XML URLs. Thanks. ...

Which free native XML database is most popular?

If I asked about most popular free relational database I'd expect to get MySQL or PostgreSQL or perhaps SQLite. But what about native XML databases? Which is most popular and stable? Did you use one in some of your projects? Which one? Which one would you advise for personal medium sized project? ...

How would I get this odd table from XSLT?

Using this input XML: <?xml version="1.0" encoding="utf-8"?> <Employees> <Employee ID="1"> <FirstName>Klaus</FirstName> <LastName>Salchner</LastName> </Employee> <Employee ID="2"> <FirstName>Peter</FirstName> <LastName>Pan</LastName> </Employee> </Employees> How would you get this output: <Employee...

detect and use html code when parsing an xml rss feed for iphone

i have been using and adapting an open source xml parser called MWFeedParser found here: http://github.com/mwaterfall/MWFeedParser the problem i am having is that it does not load images or hold the original html formatting. As in, no bold, no italics, no links, not even paragraph line breaks. Does anyone think they could help me get...

Need help selecting the second child node and it's children with XPath in C#.

I'm trying to select the second child node off the root and all it's children from XML that looks similar to this: <root> <SET> <element> <element> </SET> <SET> <element> <element> </SET> <root> I'm after all the tags in the second node, any help would be greatly appreciated! I'm using C#. I tri...

LibXML internal and output encodings

I'm trying to write XML files with libxml2 in ISO-8859-1. But from the documentation it seems that for each text node that I create I'll have to convert to UTF-8 which is libxml's internal encoding. Then when calling xmlSaveFormatFileEnc() libxml converts to the target encoding and adds the encoding attribute to the document. Is this a...

Simplexml_load_string($string) returns an empty object but $string contains xml? code below

Hello I retrieve some information using cURL in xml format. .... $xml = curl_exec($ch); $data = simplexml_load_string($xml); print_r($data); //out put - SimpleXMLElement Object ( ) if I try - print_r($xml); and view page source I get <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns7:users xmlns="http://www.examp...

Member Function and a non-object

I have created a simple function for fetching xml: function meteor(){ $request_url = "http://site.com/xml.xml"; $xml = simplexml_load_file($request_url) or die("feed not loading"); return $xml; } But I cant call to this function: $xmls = new meteor(); echo $xmls->Kemo->Area; I have not any output because meteor in not ...

How to read Date from an XML file and Parse it using XSL

The xml file is having the following structure <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="TestFile.xsl"?> <RootElement> <Date FileModified="7/2/2010 12:54:53 PM" /> <Child Name="A"/> <Child Name="B"/> <Child Name="C"/> <Child Name="D"/> <Child Name="E"/> </RootElement> I need to rea...

Manipulating biiig XML documents

Hi, I want to parse a XML file, change some attributes and write the results in a new XML file. The given XML file is very huge (approx. 2 GB). Does anyone have experiences handling such XML files using Ruby and can recommend me a library? Best regards ...

Dynamically setting xml by string concatenation

I'm trying to read xml fields (with actionscript 3), but the problem is that I choose which field to read dynamically. For example, I may need to read test19 or test39 or test12 or anything else. var value:Number = event.result.test19; var value:Number = event.result.test39; var value:Number = event.result.test12; Is there a way to co...

How do I get all sub-nodes of an XML document?

I have an XML document that models this hierarchy of tasks: 1 Customer 1.1 Product A 1.1.1 Task Alpha 1.1.2 Task Beta 1.2 Product B 1.2.1 Task Alpha 1.2.2 Task Gamma 2 Customer 2.1 Product W 2.1.1 Task Delta Unknown number of Customers, Products, and Tasks per product. There can also be an unknown number of subtasks, ...

Associate an XML-Stylesheet with an XML Document with Nokogiri

Is it possible to associate a stylesheet with with Nokogiri, to create this structure? <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="http://www.my-site.com/sitemap.xsl"?&gt; <root> ... </root> ...

Flex API for com.adobe.serializers.xml.XMLSerializationFilter?

I'm running into a problem with a poorly formed response that's causing an xml parsing error. I don't have any control over the response, so I've been trying to subclass the XMLSerializationFilter, and catch the error in my own override deserializeResult. But flex is complaining that I'm not matching the method signature. I can't seem...