ExtendedProperties does not persist to XML

  • Thread starter Thread starter Giles
  • Start date Start date
G

Giles

I am using the following code to try and save some extra
info with a dataset to an XML. CreateDSfromSQL() =
creates and fills a dataset. The XML file written
contains all the information from the dataset, EXCEPT the
ExtendedProperties info added here.:

Dim DS As DataSet = CreateDSfromSQL()

DS.ExtendedProperties.Add("password", "Hello")

DS.WriteXml("c:\ASPData\TestXml.xml")
DS.Dispose()

Does anywone know why this info is not saved to the XML
file??

Thanks,

Giles.
 
I believe that the Extended properties are a part of the Schema, What happens if you do a WriteXMLSchema? Are they in the resultant XSD File?


Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect


--------------------
 
Thanks, - That is indeed where the extendedProperties go.

This therefore does not do what I was hopeing it would. I
would like to add Atributes to root node (dataset) in the
xml data that is created by the DS.WriteXml command.
(without post processing the output)

Do you know if there is a way to do this please?

Cheers,

Giles.
-----Original Message-----
I believe that the Extended properties are a part of the
Schema, What happens if you do a WriteXMLSchema? Are they
in the resultant XSD File?
 
Without Post processing the XML Output there no way that I know of. That is the way it was designed to work.


Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect


--------------------
 
Back
Top