EDN Admin
Well-known member
<p align=left><font face=Arial size=2>Hi all,</font>
<p align=left>
<p align=left>I have a .xml file already serialized using XmlSerializer but this file doesnt contain the xsi<img alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif chemaLocation attribute :-(
<p align=left><?xml version="1.0" encoding="ISO-8859-1"?>
<BalanceteContabilGeral
xmlns="<a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis "
xmlns:aux="<a title="http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar "
xmlns:xsi="<a title="http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance "
xmlns:cadc="<a title="http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis "
xmlns:gen="<a title="http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico
<p align=left>...
<p align=left>
<p align=left>I submit .xml file generated to a XmlDocument Object to make some adjustments ..... How can I insert the xsi<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>chemaLocation using the XmlDocument built ?
<p align=left>Below is the expected result.:
<p align=left>
<p align=left><BalanceteContabilGeral
xmlns="<a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis "
xmlns:aux="<a title="http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar "
xmlns:xsi="<a title="http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance "
xmlns:cadc="<a title="http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis "
xmlns:gen="<a title="http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico "
<font color="#339966 xsi<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>chemaLocation="</font><a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis <font color="#339966 http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis</font> <font color="#339966 ../dadoscontabeis/AUDESP_CONTASCONTABEIS_2008_A.XSD"</font>>
...
<p align=left>
<p align=left>Could someone point me a solution ?
<p align=left>Thank you very much
<p align=left>Marcos
View the full article
<p align=left>
<p align=left>I have a .xml file already serialized using XmlSerializer but this file doesnt contain the xsi<img alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif chemaLocation attribute :-(
<p align=left><?xml version="1.0" encoding="ISO-8859-1"?>
<BalanceteContabilGeral
xmlns="<a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis "
xmlns:aux="<a title="http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar "
xmlns:xsi="<a title="http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance "
xmlns:cadc="<a title="http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis "
xmlns:gen="<a title="http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico
<p align=left>...
<p align=left>
<p align=left>I submit .xml file generated to a XmlDocument Object to make some adjustments ..... How can I insert the xsi<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>chemaLocation using the XmlDocument built ?
<p align=left>Below is the expected result.:
<p align=left>
<p align=left><BalanceteContabilGeral
xmlns="<a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis "
xmlns:aux="<a title="http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar http://www.tce.sp.gov.br/audesp/xml/auxiliar "
xmlns:xsi="<a title="http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance "
xmlns:cadc="<a title="http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis http://www.tce.sp.gov.br/audesp/xml/cadastroscontabeis "
xmlns:gen="<a title="http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico http://www.tce.sp.gov.br/audesp/xml/generico "
<font color="#339966 xsi<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>chemaLocation="</font><a title="http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis <font color="#339966 http://www.tce.sp.gov.br/audesp/xml/dadoscontabeis</font> <font color="#339966 ../dadoscontabeis/AUDESP_CONTASCONTABEIS_2008_A.XSD"</font>>
...
<p align=left>
<p align=left>Could someone point me a solution ?
<p align=left>Thank you very much
<p align=left>Marcos
View the full article