Tuesday 9 November 2010

THINGS I FOUND OUT WHILE TRYING TO DO ACTIVITY 2 OF THE PRACTICAL COURSEWORK

1. Namespaces can be declared in the Elements where they are used or in the XML root element. Name conflicts in XML can easily be avoided using a name prefix. when trying to mix XML documents from different XML application there might be conflicts if the developer does not use the right prefix for the namespace.
A namespace is defined by the xmlns attributes in the start tag of an element. namespace declaration syntax is (xmlns:prefix="URI"). colons ":" are usedc to declare namespaces.

2. an XML Element is everything from (including) the element start tag to (including) the elements end tag. Elements can contain other elements, text or attributes. an instance of an attribute is
XML element names cannot contain spaces. XML elements are Extensible and that is one of the good characteristics of XML because it can be extended without breaking Applications.

No comments:

Post a Comment