Results 1 to 4 of 4

Thread: What is Namespace in XML

  1. #1
    Join Date
    Nov 2009
    Posts
    758

    What is Namespace in XML

    Hi,
    I am having problem in my characters in XML. It is not displaying the characters properly. Some text are shown up in the form of symbols. I had tried to set the font settings but still it is not showing correct fonts. And second thing I need details about namespace in XML. What is it and for what purpose it can be implemented. The characters issue is serious here. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is Namespace in XML

    Namespaces allow XML to be a metalanguage, distinguishing between these XML vocabularies. An XML namespace has the same role as its counterpart in Java or C + +, one to avoid name collisions. Each vocabulary XML has a namespace URI identified by a unique instance of the XSLT is identified by the URI. The namespace is implemented by placing a prefix before each element and attribute, the prefix is associated with the URI of the namespace.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: What is Namespace in XML

    Before you can use a namespace prefix and its partner must be declared as an attribute generally placed in the root element, and prefixed with the special prefix xmlns. The attribute xmlns: xsl tells the XML parser that all elements and attributes prefixed with xsl and are son of <xsl:stylesheet>. If you create your own XML vocabulary, it is strongly advised to assign a URI that defines its namespace, and to attach a prefix that you use in your documents.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is Namespace in XML

    It is likely that the value of the encoding attribute in the XML prolog of your document, which is intended to tell the XML parser what encoding is used there does not match the actual encoding, one that was used to create the document. This often occurs, for documents containing text in a language, by a display problem with accented characters when displayed in an XML editor, or by errors during parsing of the document. It is also important to note that when in the case where the encoding attribute is not populated, the XML parser considers default document encoding is UTF-8. It is highly recommended to always specify which encoding is used.

Similar Threads

  1. What are Name Resolution Rules for Namespace in PHP?
    By Bigga Lexx in forum Software Development
    Replies: 4
    Last Post: 21-02-2010, 06:20 AM
  2. Don't know about Namespace in programming
    By Prashobh Mallu in forum Software Development
    Replies: 4
    Last Post: 06-02-2010, 11:06 AM
  3. What is the difference between a Class Library and a Namespace
    By Joyjeet in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 02:55 PM
  4. Namespace Server no longer available
    By Walby in forum Networking & Security
    Replies: 3
    Last Post: 09-04-2009, 02:36 PM
  5. Prefix not Bound to a namespace Error with XML parser
    By Nihar Khan in forum Software Development
    Replies: 3
    Last Post: 02-03-2009, 02:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,206,008.81071 seconds with 16 queries