How do I use prefixes to refer to element type and attribute names in an xml namespace?



How do I use prefixes to refer to element type and attribute names in an xml namespace?..

Answer / Varun Kumar Gupta

Prefixes are used to uniquely identify a specific XML namespace. You can assign a unique prefix to each namespace and then use this prefix along with the colon symbol (:) when referring to elements or attributes within that namespace. For example, "xmlns:prefix="URI"" declares a namespace with prefix 'prefix' and URI 'URI', and you would use 'prefix:elementName' to refer to an element in that namespace.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

How are web feeds read?

1 Answers  


What is the difference between CDATA and PCDATA?

1 Answers  


Why would you use xml?

1 Answers  


What are the ways to create a tree view control using XML, XSL & JavaScript?

1 Answers  


Define the three parts of xsl?

1 Answers  


What is DOM and how does it relate to XML?

3 Answers  


Is wsdl and xsd same?

1 Answers  


Why is xml such an important development?

1 Answers  


Where should I use xml?

1 Answers  


What is excel xml map?

1 Answers  


What are the steps required to render all the xml documents to html on server?

1 Answers  


What is an rss subscriber?

1 Answers  


Categories