namespace

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

    namespace

    the follows defined -
    xmlns:xsd
    xmlns:sql

    namespace, does that means we are only using XSD tags + SQL tags?
    Other tags are invalid?

    Will XML editor like XMLSpy actually goes to the URL and get the tag
    list of each namespace??

    Since when I use the XML editor, it automatically give me hint for the
    tags / attribute to type.

    Does the tag list stores in the schema located on the web??

    =============== =

    <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
    xmlns:sql="urn: schemas-microsoft-com:mapping-schema">

    <xsd:element name="station" sql:relation="s tations" >
    <xsd:complexTyp e>

    <xsd:sequence >
    <xsd:element name="callSign" type="xsd:strin g" />
    <xsd:element name="name" type="xsd:strin g" />
    <xsd:element name="affiliate " type="xsd:strin g" />
    </xsd:sequence>
    <xsd:attribut e name="id" type="xsd:integ er" />
    </xsd:complexType >
    </xsd:element>

    <xsd:element name="map" sql:relation="l ineups" >
    <xsd:complexTyp e>
    <xsd:attribut e name="station" type="xsd:integ er" />
    <xsd:attribut e name="channel" type="xsd:integ er" />
    <xsd:attribut e name="from" type="xsd:strin g"
    sql:field="from date" />
    </xsd:complexType >
    </xsd:element>

    </xsd:schema>
  • Peter Flynn

    #2
    Re: namespace

    Carmen Sei wrote:
    the follows defined -
    xmlns:xsd
    xmlns:sql
    >
    namespace, does that means we are only using XSD tags + SQL tags?
    Other tags are invalid?
    No, namespaces are just labels.
    Will XML editor like XMLSpy actually goes to the URL and get the tag
    list of each namespace??
    No. That would have been useful but impracticable.
    Since when I use the XML editor, it automatically give me hint for the
    tags / attribute to type.
    Yes, that's what an XML editor is for.
    Does the tag list stores in the schema located on the web??
    Yes. That's what a Schema is for.

    ///Peter
    --
    XML FAQ: http://xml.silmaril.ie/

    Comment

    Working...