Menu

How to add an additional attribute into a tag?

2012-11-15
2012-11-15
  • Sravana Kumar K

    Sravana Kumar K - 2012-11-15

    Hi,

    Currently, I am using this library for encoding my XML files against schema.
    When I encoding, my option header is :

    <header><common><schemaId>S123</schemaId></common></header>
    

    In my option header, I want add one attribute into header tag, as below:

    <header xmlns="http://w3c.org"><common><schemaId>S123</schemaId></common></header>
    

    Can anybody reply me how to add additional attribute to an tag?

    Thanks,
    SK

     
  • Sravana Kumar K

    Sravana Kumar K - 2012-11-15

    Hi Rumen,

    By mistake I posted this here. Sorry for the inconvenience.

    Regards,
    SK

     

Anonymous
Anonymous

Add attachments
Cancel