> I haven't found anything how to omit the document
> declaration
I posted this last night, but I guess it didn't make it through...
Use the overload of XmlSerializer.Serialize that takes an XmlWriter.
Justin Rudd
http://www.pinetree-tech.com/
http://www.pinetree-tech.com/weblo
> Did you sepcify all the schema files on the
> command line:
No I did not. And yes that works. Thanks Christoph!
Of course, I'm still annoyed that it didn't obey the schemaLocation of the import
element. But I'm happy because I can move on!
Justin
You can read messages from the Advanced D
> AFAIK, XSD.exe doesn't use XmlSchema.Read or
> XmlSchema.Compile. It uses DataSet.ReadXmlSchema
> or the XmlSerializer, using only the target
> namespace.
I believe it would use DataSet.ReadXmlSchema if I were generating DataSets. But I
would suspect that it uses XmlSchema when I pass in the
Being the modular programmer that I am, I have broken up all my XML Schema files into
multiple files so that I don't repeat the same information in two places. So I use
the element and schemaLocation attribute to bring in all the other stuff that
I need.
Now when I load the schema myself (Xm
bstract
ADO.NET but I can special case things like data readers returning from SQL SPs.
Parameter based ref cursors for Oracle, etc.
4 out of 5 times, I usually only need CustomerDBBase.
Justin Rudd
http://www.pinetree-tech.com/
http://radio.weblogs.com/0107260/
You can read messages fro
result sets returned from stored procedures. SQL Server just
lets them fly out of the SP. Oracle requires you use refcursor parameters. How do I
get around this?? SPs never return anything except normal data types. If I need a
result set, I use a VIEW. Works pretty well for me.
Justin Rud
a common exception
(DataException for now). In addition to that, I also have a Mock ADO.NET
implementation for unit testing purposes.
Justin Rudd
http://www.pinetree-tech.com/
http://radio.weblogs.com/0107260/
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe
[code snipped]
Why would you do all that work when you can just do this...
public class Std {
public Int32 MyVal;
public String MyString;
}
public class MyObject {
public Std Std;
}
Type[]types = new Type[]{typeof(MyObject)};
XmlSerializer[] s = XmlSerializer.FromTypes(types);
Plus th
>In other words, how customizable is the XML
>serialization?
I've used XML serialization a lot. And I haven't run across an XML format I couldn't
serialize to or deserialize from.
So a couple of things -
1.) Can you write an XML Schema for the XML you have? It doesn't have to go into the
pr
> No, he is right :-)
>
> According to my docu:
Which is good. Because the NetSamples.Common.Net classes I mentioned use the IP
Helper library.
Justin
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.co
> But they do :-)
No they don't. The sample code does come with a class that uses WMI. But the one I
was talking about is in the NetSamples.Common.Net namespace. The one you are thinking
about is in the NetSamples.Common.Management namespace.
Justin
You can read messages from the DOTNET ar
>Well, the original question was getting all the
>IP addresses a computer posesses.
>
>IMHO I am back to reading the registry
>information for the TCP Stack :-(
This may have already been mentioned, but what about the Network classes from
Microsoft's P2P framework on www.gotdotnet.com[1]?
They
> Seems I remember that the SQL Server engine started
> using fibers (in v7 as I recall) and got a huge
> boost from it. I'll have to see if I can dig that
> info up again...
Dunno about version 7, but when you install SQL 2000, it will ask whether you want to
use fibers or threads.
Justin
You
>Notice: if I replace the items added to the
>arraylist (sub load) with strings instead of
>objects, the serialization works. Why does
>serialization work with an arraylist of strings and
>not objects?
The XML Serializer knows what a string is. It does not know what your objects are.
Especial
Hi Drew,
> Lots of people do this, it's a well-known testing
> pattern referred to as Mock Objects[1].
I'm very familiar with Mock Objects (http://abstractadonet.sourceforge.net/mock.html).
My question was really a request for comments. I was wondering HOW people are
approaching the problem.
ration file.
Now when I test, I can simply plug a dummy implementation in.
I was wondering, how many people do this? What are some other ways that you are
accomplishing the same thing?
Thanks!
Justin Rudd
http://www.pinetree-tech.com/
You can read messages from the DOTNET archive, un
> I figured there had to be more than one pricing plan, that's why I was
> staying out of the conversation. =) So what does everything think now that
> the full details are available? I'm just curious because this seems to me
to
> be a fairly standard way we'll see web services priced out in the f
17 matches
Mail list logo