Guest_imported
New member
- Jan 1, 1970
- 0
hi!
how can i declare namespace in the XDR-SCHEMA. for example:
i have this xml document:
___________________________________________________________
<?xml version="1.0"?>
<products xmlns="x-schema:#myscm" xmlns:mall=" xmlnsrod="<Schema name="myscm" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="products" content="eltOnly">
<element type="mall:info"/>
<element type="product"/>
</ElementType>
<ElementType name="product" content="eltOnly">
<element type="name"/>
<element type="prod:info"/>
</ElementType>
<ElementType name="name" content="textOnly"/>
<ElementType name="prod:info" content="textOnly"/>
<ElementType name="mall:info" content="textOnly"/>
</Schema>
<mall:info>mall products</mall:info>
<product>
<name>washer machine</name>
<prod:info>bal blabla bla</prod:info>
</product>
<product>
<name>vax</name>
<prod:info>sssuuuuuuuuppppppeeeernnn</prod:info>
</product>
<product>
<name>homni bos</name>
<prod:info>koko perfum</prod:info>
</product>
<product>
<name>momolada</name>
<prod:info>hala ice cream</prod:info>
</product>
</products>
__________________________________________________________
but in any time i run this on my browser there is an error say:
_____________________________________________________
"A namespace was found but not supported at current location. Error processing resource 'file:///C:/Inetpub/ Line 13, Position 51
<ElementType name="prod:info" content="textOnly"/>
"
______________________________________________________-
i had try to declare the namespaces in the schema like this:
______________________________________________________-
<?xml version="1.0"?>
<products xmlns="x-schema:#myscm" xmlns:mall=" xmlnsrod="<Schema name="myscm" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="products" content="eltOnly">
<element type="mall:info" xmlns:mall=" <element type="product"/>
</ElementType>
<ElementType name="product" content="eltOnly">
<element type="name"/>
<element type="prod:info" xmlnsrod="</ElementType>
<ElementType name="name" content="textOnly"/>
<ElementType name="prod:info" content="textOnly" xmlnsrod="<ElementType name="mall:info" content="textOnly" xmlns:mall="
</Schema>
<mall:info>mall products</mall:info>
<product>
<name>washer machine</name>
<prod:info>bal blabla bla</prod:info>
</product>
<product>
<name>vax</name>
<prod:info>sssuuuuuuuuppppppeeeernnn</prod:info>
</product>
<product>
<name>homni bos</name>
<prod:info>koko perfum</prod:info>
</product>
<product>
<name>momolada</name>
<prod:info>hala ice cream</prod:info>
</product>
</products>
________________________________________________________
but the error is still there
pleasssss hhhheeeellllpppp!!!
thank you!
how can i declare namespace in the XDR-SCHEMA. for example:
i have this xml document:
___________________________________________________________
<?xml version="1.0"?>
<products xmlns="x-schema:#myscm" xmlns:mall=" xmlnsrod="<Schema name="myscm" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="products" content="eltOnly">
<element type="mall:info"/>
<element type="product"/>
</ElementType>
<ElementType name="product" content="eltOnly">
<element type="name"/>
<element type="prod:info"/>
</ElementType>
<ElementType name="name" content="textOnly"/>
<ElementType name="prod:info" content="textOnly"/>
<ElementType name="mall:info" content="textOnly"/>
</Schema>
<mall:info>mall products</mall:info>
<product>
<name>washer machine</name>
<prod:info>bal blabla bla</prod:info>
</product>
<product>
<name>vax</name>
<prod:info>sssuuuuuuuuppppppeeeernnn</prod:info>
</product>
<product>
<name>homni bos</name>
<prod:info>koko perfum</prod:info>
</product>
<product>
<name>momolada</name>
<prod:info>hala ice cream</prod:info>
</product>
</products>
__________________________________________________________
but in any time i run this on my browser there is an error say:
_____________________________________________________
"A namespace was found but not supported at current location. Error processing resource 'file:///C:/Inetpub/ Line 13, Position 51
<ElementType name="prod:info" content="textOnly"/>
"
______________________________________________________-
i had try to declare the namespaces in the schema like this:
______________________________________________________-
<?xml version="1.0"?>
<products xmlns="x-schema:#myscm" xmlns:mall=" xmlnsrod="<Schema name="myscm" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="products" content="eltOnly">
<element type="mall:info" xmlns:mall=" <element type="product"/>
</ElementType>
<ElementType name="product" content="eltOnly">
<element type="name"/>
<element type="prod:info" xmlnsrod="</ElementType>
<ElementType name="name" content="textOnly"/>
<ElementType name="prod:info" content="textOnly" xmlnsrod="<ElementType name="mall:info" content="textOnly" xmlns:mall="
</Schema>
<mall:info>mall products</mall:info>
<product>
<name>washer machine</name>
<prod:info>bal blabla bla</prod:info>
</product>
<product>
<name>vax</name>
<prod:info>sssuuuuuuuuppppppeeeernnn</prod:info>
</product>
<product>
<name>homni bos</name>
<prod:info>koko perfum</prod:info>
</product>
<product>
<name>momolada</name>
<prod:info>hala ice cream</prod:info>
</product>
</products>
________________________________________________________
but the error is still there
pleasssss hhhheeeellllpppp!!!
thank you!