[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

How to create XML Attributes

Mallikarjun Gudidevuni

12/10/2005 8:16:00 AM

Hi All,
<Payment>
<BillTo code="110486"></BillTo>
<PaymentTerm code="NET30">NET 30 IBM CC</PaymentTerm>
</Payment>
As shown above i have to create attribute node. Can any one give the code to
create attributes. It will be a grate help for me. Thanks in advance.
--
Mallik Gudidevuni
2 Answers

Max Belugin

12/10/2005 1:44:00 PM

0

10.12.05 ? 11:16 Mallikarjun Gudidevuni"" ? O?I?I ?EOOIA ?EOAI(A):

> Hi All,
> <Payment>
> <BillTo code="110486"></BillTo>
> <PaymentTerm code="NET30">NET 30 IBM CC</PaymentTerm>
> </Payment>
> As shown above i have to create attribute node. Can any one give the
> code to
> create attributes. It will be a grate help for me. Thanks in advance.

XMLElement element=xmlDoc.getRootNode().firstChild();
element.setAttribute("code", "110486")


--
http://be...

Mallikarjun Gudidevuni

12/13/2005 7:03:00 AM

0

Hi Max Belugin,
Thanks for u r code. It was very much usefull to me.
Sir, i have one more query, how can i set the datatype to a node.
For ex. I have a node <UserID>b2b@synnex.com</UserID>
<Password>synnex</Password
i want to set the datatype of "userid" to Alphanumeric with length to 40.
how can i do this? pls help me.
--
Mallik Gudidevuni


"Max Belugin" wrote:

> 10.12.05 в 11:16 Mallikarjun Gudidevuni"" в своÑ?м писÑ?ме писал(а):
>
> > Hi All,
> > <Payment>
> > <BillTo code="110486"></BillTo>
> > <PaymentTerm code="NET30">NET 30 IBM CC</PaymentTerm>
> > </Payment>
> > As shown above i have to create attribute node. Can any one give the
> > code to
> > create attributes. It will be a grate help for me. Thanks in advance.
>
> XMLElement element=xmlDoc.getRootNode().firstChild();
> element.setAttribute("code", "110486")
>
>
> --
> http://be...
>