Results 1 to 7 of 7

Thread: XML Document Using XML Schema?{rep points included!}

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Resolved XML Document Using XML Schema?{rep points included!}

    This seems very confusing to me so i am hoping that someone might be able to clarify.

    Im reading an old book (June 2000) on XML so i don't know if this is still the way to do things. The book shows the following lines. I understand that the first line is a PI instruction to the XML parser. Now the second is the xml schema instance. Third is the xml doc namespace and the forth is the location of the xml schema doc .xsd. Now why is it needed that a namespace be defined for the schema? I understand namespaces as they relate to xml elements but is it the same for the schema,
    to avoid collisions? Thanks.
    Code:
    <?xml version="1.0"?>
    <addressBook xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
                 xmlns="http://www.oreilly.com/catalog/javaxml"
                 xsi:schemaLocation="http://www.oreilly.com/catalog/javaxml
                                     mySchema.xsd">

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