Submitted Questions

  • XML Attributes Elements

    What are XML attributes and elements? Explain with an example?

    Manasa

    • Oct 13th, 2011

    Code
    1. <person sex="female">
    2.   <firstname>Anna</firstname>
    3.   <lastname>Smith</lastname>
    4. </person>
    5.  
    6. <person>
    7.   <sex>female</sex>
    8.   <firstname>Anna</firstname>
    9.   <lastname>Smith</lastname>
    10. </person>
    11.  
    In the first example sex is an attribute. In the last, sex is an element. Both examples provide the same information.

    MR

    • Jul 13th, 2011

    Consider the following XML code snippet: is the element, and first-name is the attribute.

    Code
    1. <name first-name="Raj">Kumar</name>
    2.  

  • Notepad "Save As" Functionality

    What are the different scenarios that can be identified for testing a simple notepad save as functionality? The Save as does navigate to the file name and file path. Given these two fields what are the various scenario that can be applied for testing?