This simple example mentions how the data from the xml file can be read and displayed in a textbox in the html file. It illustrates the concept which simplifies understanding the basics.
The structure of file.xml is:-
This code lies in file.php:-
$xdoc = new DOMDocument( ‘1.0’, ‘UTF-8’ );
$candidate = $xdoc->getElementsByTagName(‘root’)->item(0);
$newElement = $xdoc ->createElement(‘root’);
$txtNode = $xdoc ->createTextNode ($root);
$newElement -> appendChild($txtNode);
$candidate -> appendChild($newElement);
$msg = $candidate->nodeValue;
This code lies in file.html
It will display the data in $msg variable in the textbox names msgval.
I had many issues to dealing with while solving this problem i i though about sharing this. The code below illustates a simple logis to create a XML file if it is not present and create a root node. And looking at this node you can create chile nodes.
The code is as follows:-
$uvar = “HELLO”;
$doc = new DOMDocument(‘1.0’, ‘UTF-8’);
$ele = $doc->createElement( ‘root’ );
$ele->nodeValue = $uvar;
$doc->appendChild( $ele );
$test = $doc->save(“file.xml”)
This will create a file.xml with the following contents:-
I had a given a exam on Information System Security few days ago as a part of my Engineering exams. It included topics about indexing, searching, page rank, popularity based ranking, Term Frequency – Inverse Document Frequency which are used to calculate values which determine the relevant page of your search query and display the list of relevant information. Though about sharing this with all of you as i found it interesting courtesy webpronews.
This might be interesting to know for users who use bing for their search on the web compared to that of widely used Google. Now BING introduces a new feature which will show you which of your Facebook friends have liked search results as they will appear in your searches and works towards proving you with more relevant links concerned with your search query. It will make more usage of the Facebook data. If a query shows which is liked by one for your friends it will show up as ‘Liked within Bing’. With this bing will be delivering social site results. The like feature on Facebook is popular feature which spreds the information very fast across your Facebook network like a wild fire. This could provide with you with more relevant information on a personalized level giving Bing and edge over Google.
Procedure for deletion of record
This is the procedure to which we are passing the parameter called in.
Write this procedure in oracle.
create or replace procedure del(n in number)
delete from stud where rno=n;
Write this code in VB. You can write this at onclick event of command button for example.
Set com = New ADODB.Command
com.ActiveConnection = con
com.CommandType = adCmdStoredProc
com.CommandText = “del(” & Text1.Text & “)”