|
|
|
3
ChronoFish
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
- Enjoy
1
Method to read xml node in C#
1
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.
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
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
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
1
Quick way to construct XML string.
-14
Transform XML File with XSL Stylesheet







