Shorthand for asynchronous JavaScript and XML there is nothing new here JavaScript and xml are indene ant of each other but put the two language together and you have a new age use of software, you might say what is the point of having xml with JavaScript they are both will suited for the world wide web. The idea behind this different way of programming is that to enhance user experience but there are some drawbacks to AJAX
1.Ajax interfaces are substantially harder to develop properly than static pages.
2.Pages dynamically created using successive Ajax requests do not automatically register themselves with the browser's history engine more example can be found @
"Why use Ajax?". InterAKT. 2005-11-10. http://www.interaktonline.com
Wednesday, 9 December 2009
Wednesday, 25 November 2009
Week 9 Xpath
Today was a lesson about Xpath, It seem it is getting more complicated. Xpath is created to search XML document. Why would I want to use XML to create searchable information? I need to read more about this topic because I have spent last 2 year learning about database. Now I have to learn a new way of searching document using Xpath, am sure it has its advantage but I remain to be convinced. I know now there are different kind of mark-up language hence the name extensible, what am wondering now is how many other extensible language are in existence or is extensibility of XML is never ending.
Wednesday, 18 November 2009
Week 8 URL URI
A URI identifies a resource either by location or name. More often than not, most of us use URIs that defines a location to a resource. However, a URI does not have to specify the location of a specific representation
A URL is a URI but a URI is not a URL. A URL is a specialization of URI that defines the network location of a specific representation for a given resource.
When merging two XML File same word might have same meaning so one way to show the different and stop conflict between tags is to use Name space.
A URL is a URI but a URI is not a URL. A URL is a specialization of URI that defines the network location of a specific representation for a given resource.
When merging two XML File same word might have same meaning so one way to show the different and stop conflict between tags is to use Name space.
Week 8
Legal_Document
{
background-color: #ffffff;
font-size: 20pt;
}
Title
{
display: block;
margin-bottom: 0pt;
}
Case
{
display:none;
color: #FF0000;
font-size: 20pt;
margin-left: 0;
}
Background
{
display:none;
color: #0000FF;
font-size: 20pt;
}
Judgement ,T
{
display:block;
color: #000000;
margin-left:0pt;
}
{
background-color: #ffffff;
font-size: 20pt;
}
Title
{
display: block;
margin-bottom: 0pt;
}
Case
{
display:none;
color: #FF0000;
font-size: 20pt;
margin-left: 0;
}
Background
{
display:none;
color: #0000FF;
font-size: 20pt;
}
Judgement ,T
{
display:block;
color: #000000;
margin-left:0pt;
}
Wednesday, 4 November 2009
week 6
1.
DTD define legal Elements, attributes, nesting and all other layout structure for XML document, which the xml have to follow to be a validated xml document. If xml implement DTD and does not follow the structure it will not be validate even if it is well formed.
2. If XML document contains Arabic characters, the declaration of XML must start with
Because UTF-8 support Arabic characters
3. Yes it is possible to use binary in XML document. As with all elements the Xml tag which holds the binary data has to be informed the type of data which is been passed to parser and all ambiguous characters must be removed from the binary code to eliminate confusion such as “<”. It is not always a good idea to have a binary code within XML document speciality if the binary code is big. The other way around this is to have external binary graphic file which you can be access by using Binary DATA as objects.
Example how to access binary fine with XML
< picture >
<picture id="ViaValdres2">
<caption>valley </caption >
<full-image width="1280" height="960"> ViaValdres2.jpg </full-image>
<image width="740" height="555"> ViaValdres2p.jpg</image>
<small-image width="240" height="180"> ViaValdres2t.jpg< /small-image>
</picture>
Longer Questions
1 a
Because the word “with” is not a Russian phrase and the document is design to translate English phrase to Russian not the other way around.
B
< ? XML version=”1.0”?
< —This XML document hold English phrase and its Russian equivalent-->
<!DOCTYPE Phrasebook [
<! ELEMENT Phrasebook (Section)>
<! ELEMENT Section (Section-Title, Phrase-Group)>
<! ELEMENT Section-Title(#PCDATA)>] >
DTD define legal Elements, attributes, nesting and all other layout structure for XML document, which the xml have to follow to be a validated xml document. If xml implement DTD and does not follow the structure it will not be validate even if it is well formed.
2. If XML document contains Arabic characters, the declaration of XML must start with
Because UTF-8 support Arabic characters
3. Yes it is possible to use binary in XML document. As with all elements the Xml tag which holds the binary data has to be informed the type of data which is been passed to parser and all ambiguous characters must be removed from the binary code to eliminate confusion such as “<”. It is not always a good idea to have a binary code within XML document speciality if the binary code is big. The other way around this is to have external binary graphic file which you can be access by using Binary DATA as objects.
Example how to access binary fine with XML
< picture >
<picture id="ViaValdres2">
<caption>valley </caption >
<full-image width="1280" height="960"> ViaValdres2.jpg </full-image>
<image width="740" height="555"> ViaValdres2p.jpg</image>
<small-image width="240" height="180"> ViaValdres2t.jpg< /small-image>
</picture>
Longer Questions
1 a
Because the word “with” is not a Russian phrase and the document is design to translate English phrase to Russian not the other way around.
B
< ? XML version=”1.0”?
< —This XML document hold English phrase and its Russian equivalent-->
<!DOCTYPE Phrasebook [
<! ELEMENT Phrasebook (Section)>
<! ELEMENT Section (Section-Title, Phrase-Group)>
<! ELEMENT Section-Title(#PCDATA)>] >
Wednesday, 28 October 2009
rethink
Today lesson was very interesting it was all about character how they came about and why. One of the interesting thing was ASIIC have used 7 bit to create 128 characters because in 1960 computer power where not as powerful as today. But as computers increase processing power so does the creation of more characters. For example Unicode have used, even maybe pushed the limit beyond necessary in creating a system which can hold over 4 billion character, In my understanding on this planet you would not find so many character unless we start interacting with other (A.I).
Unicode, they are very good in keeping historical information and making new character available from different culture for computation but I can’t see any programming advantage in digitalising dead language.
Q1 This is not a well-formed XML document becasue it does not follow the syntax.which is...
XML documents must have a root element
XML elements must have a closing tag
XML tags are case sensitive
XML elements must be properly nested
XML attribute values must be quoted
Q2
XML with correct syntax is "Well Formed" XML.
XML validated against a DTD is "Valid" XML.
Q3
It is always a good idea to write a comment not only in XML but in all other programming language. comment help other users to understand the document with out going through the entiry document line by line. one of the great benfite of comment it saves time for the next programmer, which is trying to you XML docuement created by other programmers.
< !DOCTYPE BOOK [
< !ELEMENT DOCUMENT(BOOK*) >
< !ELEMENT BOOK(Title,Author,Publisher,PageVerso,Copyright,ISBN,Chapter,Dedication*) >
< !ELEMENT Title (#PCDATA) >
< !ELEMENTAuthor (FName,LName) >
< !ELEMENT FName (#PCDATA) >
< !ELEMENT LNAME(#PCDATA) >
< !ELEMENT Publisher (Pname,Paddress) >
< !ELEMENT Pname (#PCDATA) >
< !ELEMENT Paddress (#PCDATA) >
< !ELEMENT PageVerso (#PCDATA) >
< !ELEMENT Copyright (#PCDATA) >
< !ELEMENT ISBN (#PCDATA) >
< !ELEMENT Chapter (Cno,Ctitle,Section) >
< !ELEMENT Cno (#PCDATA) >
< !ELEMENT Title (#PCDATA) >
< !ELEMENT Section (Sno,Stitle,Bodytext) >
< !ELEMENT Sno (#PCDATA) >
< !ELEMENT Stitle (#PCDATA) >
< !ELEMENT Bodytext (#PCDATA) >
] >
Q2
XML with correct syntax is "Well Formed" XML.
XML validated against a DTD is "Valid" XML.
Q3
It is always a good idea to write a comment not only in XML but in all other programming language. comment help other users to understand the document with out going through the entiry document line by line. one of the great benfite of comment it saves time for the next programmer, which is trying to you XML docuement created by other programmers.
SECOND PART
< !DOCTYPE BOOK [
< !ELEMENT DOCUMENT(BOOK*) >
< !ELEMENT BOOK(Title,Author,Publisher,PageVerso,Copyright,ISBN,Chapter,Dedication*) >
< !ELEMENT Title (#PCDATA) >
< !ELEMENTAuthor (FName,LName) >
< !ELEMENT FName (#PCDATA) >
< !ELEMENT LNAME(#PCDATA) >
< !ELEMENT Publisher (Pname,Paddress) >
< !ELEMENT Pname (#PCDATA) >
< !ELEMENT Paddress (#PCDATA) >
< !ELEMENT PageVerso (#PCDATA) >
< !ELEMENT Copyright (#PCDATA) >
< !ELEMENT ISBN (#PCDATA) >
< !ELEMENT Chapter (Cno,Ctitle,Section) >
< !ELEMENT Cno (#PCDATA) >
< !ELEMENT Title (#PCDATA) >
< !ELEMENT Section (Sno,Stitle,Bodytext) >
< !ELEMENT Sno (#PCDATA) >
< !ELEMENT Stitle (#PCDATA) >
< !ELEMENT Bodytext (#PCDATA) >
] >
Wednesday, 21 October 2009
Week 4
1.What does XML and CSS stand for?
Xml stand for Extensible Markup Language.
css stand for Cascading Style Sheets.
2.Is this XML line well-formed? say why?
<b><i>This text is bold and italic</b></i>
This is not well formed XML because the start and the end tags are not the same if you in see the above code the (b) is the outside tag,it should have also been the outer tag too at the end of the code.
3.Is the XML document well-formed?say why.
<?xml> version ="1.0"?>
<greeting>
hello world
</greeting>
<greeting>
hello mars too!
</greeting>
Yes this is well-formed XML the outer and inner tag are in the correct order. but is missing root tagoth tag are the same this might have other implication down the line why you try to implement the css to this code.unless you want both greeting to have the same style.
Part 2
<?xml version="1.0";>
<class_info;>
<course;> Advanced Web Technologies <course>
<Building;> Hatchcroft </Building>
<Room;>H104 <Room;>
<Start Time;> 9:30 </Start Time>
<End Time ;>12:30 < /End Time>
< Time Start="9:30" end="11:30" >
</class_info>
This code is desing using XML but blog will not allow me to show the code.
2
The bookstore tag do not close
<book category= "children'>
has two different end quotation mark
number between TAG
comment inside TAG
3
<! DOCTYPE memo
[
<!ELEMENT memo(to,from,heading,body,securityclass?)>
<!ELEMENT Securityclass (#PCDATA)>
<!ELEMENT memo serialnumber CDDATA REQUIRED>
]>
Xml stand for Extensible Markup Language.
css stand for Cascading Style Sheets.
2.Is this XML line well-formed? say why?
<b><i>This text is bold and italic</b></i>
This is not well formed XML because the start and the end tags are not the same if you in see the above code the (b) is the outside tag,it should have also been the outer tag too at the end of the code.
3.Is the XML document well-formed?say why.
<?xml> version ="1.0"?>
<greeting>
hello world
</greeting>
<greeting>
hello mars too!
</greeting>
Yes this is well-formed XML the outer and inner tag are in the correct order. but is missing root tagoth tag are the same this might have other implication down the line why you try to implement the css to this code.unless you want both greeting to have the same style.
Part 2
<?xml version="1.0";>
<class_info;>
<course;> Advanced Web Technologies <course>
<Building;> Hatchcroft </Building>
<Room;>H104 <Room;>
<Start Time;> 9:30 </Start Time>
<End Time ;>12:30 < /End Time>
< Time Start="9:30" end="11:30" >
</class_info>
This code is desing using XML but blog will not allow me to show the code.
2
The bookstore tag do not close
<book category= "children'>
has two different end quotation mark
number between TAG
comment inside TAG
3
<! DOCTYPE memo
[
<!ELEMENT memo(to,from,heading,body,securityclass?)>
<!ELEMENT Securityclass (#PCDATA)>
<!ELEMENT memo serialnumber CDDATA REQUIRED>
]>
Wednesday, 30 September 2009
What is HTML
HTML, which stands for Hyper Text Mark-up Language, is mark-up language for creating web pages. It has many semantics rule which allows it to display information on browser. All HTML document start with HTML tag and end with HTML tag. Within those tags other tags are included. Here are some of the basic build blocks of HTML document. , Title BODY all tag with exception to /br must, START END . HTML also support image and object to be embedded to a website allowing to be more dynamic and creative. Interactive forms can be created using HTML document. Tools such Ajax, java script asp.net can be embedded in HTML document to carry out more complex task over the NET using a browser.
Subscribe to:
Comments (Atom)