Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-11-2009
Member
 
Join Date: Nov 2009
Posts: 754
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.
Reply With Quote
  #2  
Old 21-11-2009
Member
 
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.
Reply With Quote
  #3  
Old 21-11-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #4  
Old 21-11-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 11:32 PM.