xml

C++\Win32 API - Load controls at run-time from xml

Is there a library that can load controls (buttons, text boxes, etc.) from an xml file? Kind of like in WPF. ...

Generate XML-formatted table schema from SQL Server 2005?

Hi everyone, I was wondering how I might take a table schema in SQL Server and generate an XML document from it. The ideal would be if I passed in my database name (“SalesOrders”) and an XML doc comes back reading something like: <table=”SalesOrders”> <columns> <name=”SalesOrderID”/> <datatype=”int”/> <allowNulls=”...

how to call XML based web service through a blackberry eclipse JDE

Hi 2 All... I want to know how to call XML based web service from blackberry eclipse......is there any code or any other libraries i should use....i am using ksoap libraries...but still unable to make a contact with server.. ...

Parsing xml data in an order using xquery

I have a xml file like this <?xml version="1.0" encoding="UTF-8"?> <gallery > <gallerydata> <galleryname> Home </galleryname> <createdat> 14/8/2010 4:53 pm </createdat> </gallerydata> <gallerydata> <galleryname> School </galleryname> <createdat> 13/8/2010 5:19 pm </createda...

Howto let the SAX parser determine the encoding from the xml declaration?

Hi, I'm trying to parse xml files from different sources (over which I have little control). Most of the them are encoded in UTF-8 and don't cause any problems using the following snippet: SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); FeedHandler handler = new FeedHandler(); Input...

Is there another way to extract data dump from Planet.osm?

Hi! I need a data dump from planet.osm fiel for the NCR region in the Philippines. I'll be using it for an OpenStreetMap project. Is there a way that I can extract a small part of the planet.osm without downloading the whole file? I mean, the planet.osm file is 11GB in size, and I'll be only needing a fraction of it. Thank you in advance...

How to write a single LINQ to XML query to iterate through all the child elements & all the attributes of the child elements ?

I am developing asp.net mobile application. I am using XML as a database. I am querying on the XML to access the required elements & attributes by using LINQ to XML in .net. I have the follwing part in my XML file. <VALVES> <VALVE NAME="PWV"> <DISPLAY-NAME> Production Master Valve </DISPLAY-NAME> <COMMANDS...

Exporting Entire Contents of an Access DB to Individual XML Files

I have many tables that I needed to frequently export from an MDB file to XML, and I hated going through the built-in wizard for each and every table multiple times. So, I made a macro and thought I'd post it on here. This is a community wiki post, so please add suggestions and other solutions! This will export each table into its own...

Exporting content from Joomla as XML for Flash use.

Hi, I was wondering if anyone know how I could output content from Joomla as XML which I can then use in Flash? I would like to be able to use Joomla as the backend CMS and a Flash frontend which pulls and article's content from the CMS and outputs it as XML. Something like this: http://www.goforgold.org.za/scripts/News.php Many...

How to dynamically generate XML file from MySQL database using PHP

Hi, I am searching for a PHP function that dynamically generates an XML file with data from a MySQL database. It should also update the database if the XML file is changed. ...

How can I parse a namespace using the SAX parser?

Hello, Using a twitter search URL ie. http://search.twitter.com/search.rss?q=android returns CSS that has an item that looks like: <item> <title>@UberTwiter still waiting for @ubertwitter android app!!!</title> <link>http://twitter.com/meals69/statuses/21158076391&lt;/link&gt; <description>still waiting for an app!...

Problem with Simple_HTML_DOM cutting of in PHP

I am trying to use simple_html_dom to extract some data from a website. Unfortunately somehow in the middle of the data to be analyzed it cuts off a part which means the data that I want to extract is or is not part of the string that I can analyze. This is my code: <?php include_once('../../simple_html_dom.php'); function mouser(...

read an xml file into database

Hey I want to store the contents of an xml file in the database. Is there an easy way to do it? Can i write some script that can do the task for me? The schema of the XML file looks like this: <schedule start="20100727120000 +0530" stop="20100727160000 +0530" ch_id="0210.CHNAME.in"> <title>Title_info</title> <date>20100727</d...

How to - Comments in layout xml

I would to enter in some comments into the layout XML files, how would I do that? thanks, Dean ...

How to split a HTML document using nokogiri?

Right now, splitting the HTML document to small pieces like this: (regular expression simplified - skipping header tag content and closing tag) document.at('body').inner_html.split(/<\s*h[2-6][^>]*>/i).collect do |fragment| Nokogiri::HTML(fragment) end Is there more easy way to perform that splitting? The document is very simple, j...

How to output xml namespace with Grails REST webservices

Its a Grails app and we'd like to be able to add XML namespaces to the xml produced for REST clients. Most of the xml is output using "render foo as XML" with the deep converter. So the output needs to be something like: <foo xmlns:myns='http://mycompany.com/myproduct/ver'&gt; ... </foo> ...

How to: Dynamically move google gauge?

Watch the CPU and Memory gauges for a second here: http://code.google.com/apis/visualization/documentation/gallery/gauge.html#Loading they move dynamically. My question - the example code shown below there does not move the gauges like that (or at least when I tried it in my own project.) Does anyone know how to get it moving dyna...

populating a drop down menu with xml file

I have the following code which is loading an xml file to populate a dropdown menu. Right now the value equals the option text but I would like to have the value equal to some number which comes from the same xml file. Can someone tell me how to format the xml file to do this and what code to add to make the value appear in the html code...

What's the point of XML?

What problems was XML invented to solve? From what I can tell, it seems like it specifies a uniform syntax for things that may have vastly different semantics. Unlike, for example, an HTML file, a Java source file, or a .docx document, one cannot write a program to extract any kind of high-level meaning from an XML file without lots of...

Parsing through XML Nodes - Creating an XML Based Scripting Engine

I'm trying to create a 'scripting' engine for my program. As the scripting needs to be cross-platform compatible (it is in VB for now and needs to ported to XNA later). I have sample data posted below. Anyway, within a script you can add graphical objects, play sounds, or perform other actions. Graphical objects have a time, duration,...