Hi
i am trying some things in XML for webservices but got stuck with the xml
Creation.
This is the First Sample
C# Code
XmlDocument oInvDocument = new XmlDocument();
oNode=
oInvDocument.Cr eateNode(XmlNod eType.Element," InventoryUpdate Batch","");
oInvDocument.Ap pendChild(oNode );
output >>>>
<iu:InventoryUp dateBatch
xmlns:iu="http://www.abc.com/integrations/schema/InventoryUpdate "
xmlns:th="http://www.abc.com/integrations/schema/TransactionHead er"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="http://www.abc.com/integrations/schema/InventoryUpdate
C:\Temp\ws\xsd\ InventoryUpdate .xsd">
<InventoryUpdat e>
<TransactionHea der>
............... ...........
1.how to add multiple NameSpace to the XML, the code above will add only
the Element, i don;t know to add the ns?
2. Let us say i have a DataSet which is named "InventoryUpdat eBatch" and
has table InventoryUpdate and TransactionHead er when i saveas xml i get the
xml but i want
with namespace ? and also some of the element let us say should come with
": " <th:Client_IDso me thing like this, if i say the table name to be
th:client_Id i get the xml as
<th_x00A_Client _ID>.
any ideas please ?
Thanks
bhu