COMP2098 Chapter Notes -Ampersand, Asp.Net, Xml
Document Summary
Part of xml"s popularity is a result of its simplicity. When creating your own xml document, you need to remember only a few rules: Content is placed between the start and end tags. If you include a start tag, you must also include a corresponding end tag. The only other option is to combine the two by creating an empty element, which includes a forward slash at the end and has no content (like ). This is similar to the syntax for asp. net controls. and hard returns to properly align your information. special characters, such as the angle brackets (< >) and the ampersand (&), as content. Instead, you"ll have to use the entity equivalents (such as < and > for angle brackets, and & for the ampersand). These equivalents will be automatically converted to the original characters when you read them into your program with the appropriate . net classes. elements.