O
Om Shankar
Guest
Hello,
I created class from the xml. And now i want to create same xml tag or file after filling the data with attribute.
attribute like:- Namespace = "XML-Signature Syntax and Processing" ,
Object Id="1306840642",
meta xmlns="meta-data",
xmlns="signing-local-time" local-time="23-09-2020 17:31:50",
I need this type xml.
<LeaveApplication xmlns:xsd="XML Schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id>8</Id>
<CreateTime xsi:nil="true"/>
<LastUpdateTime xsi:nil="true"/>
<DeletionTime xsi:nil="true"/>
<ApplicantId>1</ApplicantId>
<Name>Vishnu</Name>
<Designation>Sci</Designation>
<LeaveStart>2020-06-10T00:00:00</LeaveStart>
<LeaveEnd>2020-09-10T00:00:00</LeaveEnd>
<LeaveType>Annual</LeaveType>
<PurposeOfLeave>dfsffffffffffffffffffffffffffffff</PurposeOfLeave>
<AddressDuringLeave>fdddddddddddddddddd</AddressDuringLeave>
<PhoneNoDuringLeave>995647899</PhoneNoDuringLeave>
<ApplicationStatus>Processing</ApplicationStatus>
<LastSignedId xsi:nil="true"/>
<Signature xmlns="XML-Signature Syntax and Processing">
<SignedInfo>
<CanonicalizationMethod Algorithm="Canonical XML"/>
<SignatureMethod Algorithm="xmldsig-more namespace"/>
<Reference Id="MjMtMDktMjAyMCAxMjowMTo1MA==" URI="">
<Transforms>
<Transform Algorithm="XML-Signature Syntax and Processing"/>
<Transform Algorithm="Canonical XML"/>
</Transforms>
<DigestMethod Algorithm="XML Encryption Syntax and Processing"/>
<DigestValue>Cq0HhYZ+AH4pKhlwPGDUTLE5fegxfWdcA+Lkl8p6UuM=</DigestValue>
</Reference>
</SignedInfo>
Continue reading...
I created class from the xml. And now i want to create same xml tag or file after filling the data with attribute.
attribute like:- Namespace = "XML-Signature Syntax and Processing" ,
Object Id="1306840642",
meta xmlns="meta-data",
xmlns="signing-local-time" local-time="23-09-2020 17:31:50",
I need this type xml.
<LeaveApplication xmlns:xsd="XML Schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id>8</Id>
<CreateTime xsi:nil="true"/>
<LastUpdateTime xsi:nil="true"/>
<DeletionTime xsi:nil="true"/>
<ApplicantId>1</ApplicantId>
<Name>Vishnu</Name>
<Designation>Sci</Designation>
<LeaveStart>2020-06-10T00:00:00</LeaveStart>
<LeaveEnd>2020-09-10T00:00:00</LeaveEnd>
<LeaveType>Annual</LeaveType>
<PurposeOfLeave>dfsffffffffffffffffffffffffffffff</PurposeOfLeave>
<AddressDuringLeave>fdddddddddddddddddd</AddressDuringLeave>
<PhoneNoDuringLeave>995647899</PhoneNoDuringLeave>
<ApplicationStatus>Processing</ApplicationStatus>
<LastSignedId xsi:nil="true"/>
<Signature xmlns="XML-Signature Syntax and Processing">
<SignedInfo>
<CanonicalizationMethod Algorithm="Canonical XML"/>
<SignatureMethod Algorithm="xmldsig-more namespace"/>
<Reference Id="MjMtMDktMjAyMCAxMjowMTo1MA==" URI="">
<Transforms>
<Transform Algorithm="XML-Signature Syntax and Processing"/>
<Transform Algorithm="Canonical XML"/>
</Transforms>
<DigestMethod Algorithm="XML Encryption Syntax and Processing"/>
<DigestValue>Cq0HhYZ+AH4pKhlwPGDUTLE5fegxfWdcA+Lkl8p6UuM=</DigestValue>
</Reference>
</SignedInfo>
Continue reading...