Navigation Home / Tags / XML

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 Next »
1
Date Submitted Mon. Nov. 23rd, 2009 11:58 PM
Revision 1
Beginner nilambar
Tags Class | databse | Table | XML
Comments 0 comments
This is a simple class for generating XML from MySql databse table.

Usage
include("Xml.class.php");//include class file
$mx=new Xml;//create new Xml object
$mx->dbtoXml("localhost","root","","dbname","tblname");//give hostname, user, password, database name and table name
echo $mx->showXml();//showXml returns Xml
2
Date Submitted Fri. May. 15th, 2009 9:14 AM
Revision 1
Beginner ChronoFish
Tags Array | parser | PHP | XML | XML2Array | XMLToArray
Comments 1 comments
Here is a my latest refinement of an XML2Array function. It creates an associative array where tags are the keys. When tags have attributes, it becomes part of the key (optionally). The values of the resultant array is itself an array of values OR another XML2Aarray array.

- Enjoy
1
Date Submitted Mon. Mar. 16th, 2009 6:32 AM
Revision 1
Scripter mycodeofshailendra
Tags Binding | Raw | XML
Comments 0 comments
Xml has become a very ubiquitous and is an integral part of .Net and the System.Data namespace. The problem lies in that not many people know how to take advantage of some of the features. When we are using a database, we naturally use the Systen.Data namespace, but with Xml documents as data there are hundreds of solutions for displaying Xml data out there for .Net.

I myself prefer to use the DataSet object and the DataGrid control just as I would if the data was coming from SQL Server. The common misconception, even to those who know that you can do this, is that you need a schema to accomplish it. There is a very simple way to bind raw Xml data to a datagrid without a schema. The Xml data must be simple though, mapping to rows easily.
1
Date Submitted Mon. Mar. 16th, 2009 6:08 AM
Revision 1
Scripter mycodeofshailendra
Tags attributes | Data | node | XML
Comments 0 comments
Method to read xml node in C#
5
Date Submitted Mon. Aug. 13th, 2007 12:04 AM
Revision 1
Beginner bcoe
Tags Java | RSS | SAX | XML
Comments 0 comments
From a tutorial on building an RSS SAX parser on my website:

full article can be found here
8
Date Submitted Thu. Mar. 8th, 2007 11:37 PM
Revision 1
Scripter Fordiman
Tags ajax | browser-independent | JavaScript | Library | XML
Comments 0 comments
libNog is a 9k library to provide somewhat easier browser-independence. It is not yet complete, and will be continuously revised. It grew from this snippet, and is still growing as I find things I use often.
Presently, libNog features:

A way to browser-independently get an XMLHttpRequest object.
A set of simple methods for GET, POST, HEAD, and to include other Scripts.
Simple methods for className control
A completely abstracted form of getElement*
Browser-independent methods for attaching and detaching event handlers
An event-normalization routine
A simple one-command 'Stop the Event' routine
And the big one: A simplified Class object by which classes can be built in JavaScript.

The above link will point you to the API documentation and history of libNog, as well as where to download the library.
6
Date Submitted Fri. Dec. 29th, 2006 8:26 AM
Revision 1
Beginner strandedfisherman
Tags info | information | tube | XML | You | youtube
Comments 3 comments
This gets the information off youtube when you add a youtube link.

please change the dev_id to your own my is:BnvzCjJ_Bzw

http://www.youtube.com/my_profile_dev

put a link in eg. http://www.youtube.com/watch?v=xOJnKgsWPGw
7
Date Submitted Sat. Nov. 18th, 2006 5:40 AM
Revision 1
Scripter Pio
Tags Serialization | VB.NET | XML
Comments 0 comments
I use something similar to this in an application named Shock 3. It provides you with your own Custom settings that can handle your own Custom types as well.
18
Date Submitted Tue. Nov. 7th, 2006 9:04 PM
Revision 1
Scripter Fordiman
Tags ajax | JavaScript | XML
Comments 1 comments
This is a brief revision to my previous snippet. It is still what it was: a small, simple system for using XMLHttpRequest without using globals.

I'll put the API spec in the code this time, so as not to clutter the front page further.

Changes:

Changed name to HTTPRequest (far more accurate)
Added HEAD requests
Shortened code by making a GenericRequest function
Used a better method for getting an XMLHttpRequest object (checks multiple MS versions and implements the latest one)
16
Date Submitted Tue. Nov. 7th, 2006 12:41 PM
Revision 1
Scripter Fordiman
Tags ajax | http | JavaScript | XML
Comments 0 comments
This is a simple script to provide basic cross-platform XML request functionality in Javascript. It's meant to be the core component in any AJAX style framework. It is not an instantiable object, but instead is a namespaced microlibrary.

Calling is easy:
XMLRequest.GET(uri, query, callback, fallback)
uri: The location you're after
query: an associative array of form data to provide via the URL
callback: callback function of the form myCallbackFunction(objXMLHttpRequest), which is called upon successful (response = 200 OK) retrieval of the XML data
fallback: myFallbackFunction(objXMLHttpRequest), which is called upon failed (response != 200 OK) retrieval of the XML data.

XMLRequest.POST(uri, query, form, callback, fallback)
Similar, but does the query using the POST method. 'query' is the URL-appended data, still in associative array form, and 'form' is the same for the POST data.
« Previous 1 2 Next »