• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Using Core HTML Properties > The localName, namespaceURI, and prefix...

The localName, namespaceURI, and prefix Properties

You use the localName, namespaceURI, and prefix properties mostly with XML documents—or XML embedded in HTML documents—that uses namespaces. We won’t have that much use for namespaces in this book, but, briefly, you can declare and use a namespace in XML like this:

<doc xmlns:ns="http://www.ns.com”> 
    <ns:myElement>Here is some data</ns:myElement> 
</doc> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint