Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • question for output for xml

    • 0
    • 0
    • 0
    • 2
    • 0
    • 0
    • 0
    • 683
    Answer it

    hii,

    my question is if we work with html in notepad and save as .html extension . On opening that html file in browser the output is displayed but in XML file when we open the file in browser the same coding done in notepad appears.. why? what is the right way ?

 2 Answer(s)

  • Hi...

    The XML documents do not carry information about how to display the data. If we use xml file without styles the browsers do not know if a tag like <table> describes an HTML table or a wooden table. Without any information about how to display the data, the browsers can just display the XML document as it is.

    If you attach Style (<?xml-stylesheet type="text/css" href="mystyle.css"?>) after xml declaration with that it will show text with style not tag.

    XMl is designed to be readable for both human and machine. It is used to store transport data.

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: