deserialize an attribute
Mon, 28 Apr 2008 11:33:25 -0700 (PDT)
Hi,
I have an xml document that looks like this:
<Order>
...
<StatusCd Desc="Hold">H</StatusCd>
...
</Order>
And I would like to deserialize it so that the "Desc" attribute is
copied to a member variable:
class Order {
//Should contain "hold" after deserialization
public string ...
|
XML Entity problem
Mon, 28 Apr 2008 09:18:38 +0100
Hi,
I am still new to XML and thought I had my solution written, but during the
rollout, we have come up with a problem with actual XML coming in (as
opposed to our test XML).
Some character entities have been transmitted unexpectedly.
' and <
I am loading my XML with XmlDocument, just by
XmlD ...
|
valid xml schema generates "Duplicated declaration" error in DataSet
Fri, 25 Apr 2008 09:43:08 -0700 (PDT)
Hi all,
When reading the following ugly but valid (according to w3c XSV) xsd
into a DataSet I get "Duplicated declaration PossiblesValue" error.
Can anyone tell me why? This is a small part of a large xsd reverse
engineered from an existing xml output from an application so despite
the structure being ...
|
How to remove xmlns:xsd at root tag via XmlSerialization
Thu, 24 Apr 2008 08:09:12 -0700 (PDT)
Hello,
I use Xml serialization to serialize an object into an xml file.
My root tag is defined as following:
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd",
"2.0.50727.42")]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[SerializableAttribute()]
[XmlType("Style")]
public class RPStyl ...
|
ADFS Client
Mon, 21 Apr 2008 09:55:00 -0700
Can anyone please give me ponters on how to write custom app to talk to ADFS?
--
Thanks all in advance (I dont'''' post thank you messages ;>) ...
|
Custom error code when XSD validation fails?
Mon, 21 Apr 2008 05:59:42 -0700 (PDT)
Hi,
Is there any way to tell an XSD Schema that you want custom error
codes for particular validation failures in an XML document?
To show what I mean, here's an example:
XSD excerpt:
<xs:element name = "EmployeeID">
<xs:simpleType>
<xs:restriction base = "xs:string" >
<xs:length va ...
|
XML Serialization - Load From A Database
Sun, 20 Apr 2008 21:20:32 -0500
I'm not sure if this is the appropriate group for this post or not. Please
advise if it is not.
I have an xml structure similar to the following:
<xml>
<object1>
<id/>
<name/>
</object1>
<object2>
<id>
<name>
</object2>
<object3>
<id/>
<name/>
</object3>
</xml>
I created a schema ...
|
|
|
Mapping between Schemata while serializing
Fri, 18 Apr 2008 15:35:42 +0200
Hi,
I'm looking for advice on mapping between different XML Schamata.
The C# (2.0) project I'm currently working on needs to send custom business
entities to multiple webservices, each accepting the same entity but in a
different schema.
As an extra complication the local entities are not serializable, so ...
|
More than one attribute.
Thu, 17 Apr 2008 14:51:01 -0700
you can write
writer.WriteStartElement("data", "http://www.w3.org/1999/XMLSchema-instance");
in your code for,
<data xmlns="http://www.w3.org/1999/XMLSchema-instance">
how do you write,
<data xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../documents/xml/epic.x ...
|
Digitally Signing XML document with muliple signatures.
Thu, 17 Apr 2008 00:30:14 -0400
I have this web application project done in .net 3.5. It has an object
(Contract) that is going to be serialized into an XmlDocument object, signed
by 2 parties and then inserted into the database. There is a SignatureBlock
element that looks like this:
<SignatureBlock>
<ActualCompanyNameHere Name="John Do ...
|