[xml] How can I get namespaces of schematypes ?

Title: How can I get namespaces of schematypes ?

Hi !

I`m using xmllib 2.6.13 to parse xsd files. How to get the namespace of type t:mybase of this sample schema:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema targetNamespace="urn:bsp" xmlns:t="urn:bsp"

elementFormDefault="qualified" attributeFormDefault="unqualified"

xmlns:xs="http://www.w3.org/2001/XMLSchema" >

        <xs:element name="baselem" type="t:mybase"/>

        <xs:complexType name="mybase">

                <xs:sequence id="baseseq">

                        <xs:element name="base1" type="xs:string"/>

                        <xs:element name="base2" type="xs:string"/>




I tried to get it from a pointer xmlSchemaTypePtr ptype but couldn`t find it.

ptype->name=mybase, but there is no namespace field the namespace should be urn:bsp.

Can anyone help me ?

Thanks, mike

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]