Results 1 to 2 of 2

Thread: showing stored information of xml at web

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Question showing stored information of xml at web

    hi friends ,
    can anyone tell me ? . why it says Missing "charset" attribute for "text/xml" document ?
    as well as No DOCTYPE found! Checking XML syntax only . following is my xml file contain .
    Code:
    <PARTS>
    <?xml version="1.0" encoding="UTF-8"  Content-Type="text/xml" standalone="no" ?>
    <?xml-stylesheet type "text/css"  href="parts.css"?>
    <TITLE> Computer Parts </TITLE>
    <PART>
    <PARTNAME> Microprocessor </PARTNAME>
    <MANUFACTERER> HP </MANUFACTERER>
    <MODEL> HP pavilion g6 Notebook PC </MODEL>
    <COST> 2500 SR </COST>
    </PART>
    </PARTS>
    and following is the parts.css file contain .
    Code:
    PARTS   {display:block}
    TITLE  {display:block; font-family:arial; color:#008000; font-weight:600; font-size:large;  margin-top:12pt; text-align: center}
    PART { display:block }
    PARTNAME  {display:block; font-family:arial; color:#008000; font-weight:600; font-size: medium ;  margin-top:12pt; text-align: center}
    MANUFACTERER {display:block; font-family:arial; color:#008000; font-weight:600;  font-size: small ; margin-top:12pt; text-align: center}
    MODEL {display:block; font-family:arial; color:#008000; font-weight; font-size: small; margin-top:12pt; text-align: center}
    COST {display:block; font-family:arial; color:#008000; font-weight:600; font-size: small; margin-top:12pt; text-align: center}

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: showing stored information of xml at web

    Try
    Code:
    <?xml version="1.0" encoding="UTF-8"  Content-Type="text/xml" standalone="no" ?>
    <?xml-stylesheet type "text/css"  href="parts.css"?>
    <PARTS>
    <TITLE> Computer Parts </TITLE>
    <PART>
    <PARTNAME> Microprocessor </PARTNAME>
    <MANUFACTERER> HP </MANUFACTERER>
    <MODEL> HP pavilion g6 Notebook PC </MODEL>
    <COST> 2500 SR </COST>
    </PART>
    </PARTS>
    You want the xml declarations to be outside of the file's actual XML content.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width