B
BLUE
<GTM.Data:GRTMData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:GTM.Data="http://www.pippo.com/GTMData"
xsi:schemaLocation="http://www.pippo.com/GRTMData GTMDataSchema.xsd">
w.WriteStartElement("GTM.Data","GRTMData","");
w.WriteAttributeString("xmlns","xsi",
null,"http://www.w3.org/2001/XMLSchema-instance");
w.WriteAttributeString("xmlns","GTM.Data",null,"http://www.pippo.com/GRTMData");
w.WriteAttributeString("xsi","schemaLocation",null,"http://www.pippo.com/GTMData
GTMDataSchema.xsd");
Exception: "Cannot use a prefix with an empty namespace".
Why?
Thanks,
Luigi.
xmlns:GTM.Data="http://www.pippo.com/GTMData"
xsi:schemaLocation="http://www.pippo.com/GRTMData GTMDataSchema.xsd">
w.WriteStartElement("GTM.Data","GRTMData","");
w.WriteAttributeString("xmlns","xsi",
null,"http://www.w3.org/2001/XMLSchema-instance");
w.WriteAttributeString("xmlns","GTM.Data",null,"http://www.pippo.com/GRTMData");
w.WriteAttributeString("xsi","schemaLocation",null,"http://www.pippo.com/GTMData
GTMDataSchema.xsd");
Exception: "Cannot use a prefix with an empty namespace".
Why?
Thanks,
Luigi.