XMLSchema. Assign multiple schemas

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mattias

    #1

    XMLSchema. Assign multiple schemas

    How do I assign several XSDs to a XML document?
    /Mattias


  • Martin Honnen

    #2
    Re: XMLSchema. Assign multiple schemas



    Mattias wrote:
    [color=blue]
    > How do I assign several XSDs to a XML document?[/color]

    You usually have one XSD per namespace and you associate XSDs with
    namespaces with the schemaLocation attribute
    <root-element
    xmlns="someURI"
    xmlns:prefix="s omeotherURI"
    xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xsl:schemaLocat ion="someURI http://server/whatever.xsd
    someotherURI http://server/whatelse.xsd"

    See

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...