Subject: Anyone can help me with this XML file?
Posted By: inza Post Date: 1/26/2006 9:40:39 AM
I need to generate the following XML file.
Using C# .NET, make a class file and use parameters to
manipulate. Can anyone help me?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ServiceChangeRequest SYSTEM "InmarsatSubscriberRequest.dtd">
<ServiceChangeRequest Type="SuspendSubscriber" TransactionId="1234567890" InternalTransactionId="12345678901234567890">
    <CurrentState>
        <ServiceDescription ServiceTag="PackageService">
            <ParameterSet>
                <ParameterDesc ParameterTag="IMSI" ParameterValue="123424499111110"/>
                <ParameterDesc ParameterTag="MSISDN" ParameterValue="448934333"/>
                <ParameterDesc ParameterTag="NationalNumber" ParameterValue="3172990"/>
                <ParameterDesc ParameterTag="DpId" ParameterValue="10"/>
                <ParameterDesc ParameterTag="Date" ParameterValue="21112003_123000"/>
            </ParameterSet>
        </ServiceDescription>
        <ServiceDescription ServiceTag="Telephony">
            <ParameterSet>
                <ParameterDesc ParameterTag="MSISDN" ParameterValue="448934333"/>
                <ParameterDesc ParameterTag="NationalNumber" ParameterValue="3172990"/>
            </ParameterSet>
        </ServiceDescription>
        <ServiceDescription ServiceTag="CLIP">
            <ParameterSet>
                <ParameterDesc ParameterTag="State" ParameterValue="1"/>
                <ParameterDesc ParameterTag="SOCLIP" ParameterValue="0"/>
            </ParameterSet>
        </ServiceDescription>
    </CurrentState>
    <StateDelta>
        <ServiceDescription ServiceTag="PackageService" Id="695">
            <ParameterSet>
                <ParameterDesc ParameterTag="IMSI" ParameterValue="123424499111110"/>
                <ParameterDesc ParameterTag="MSISDN" ParameterValue="448934333"/>
                <ParameterDesc ParameterTag="NationalNumber" ParameterValue="3172990"/>
                <ParameterDesc ParameterTag="DpId" ParameterValue="10"/>
                <ParameterDesc ParameterTag="Date" ParameterValue="21112003_123000"/>
            </ParameterSet>
        </ServiceDescription>
    </StateDelta>
</ServiceChangeRequest>




Reply By: joefawcett Reply Date: 1/28/2006 5:50:30 AM
Well you have two main options, use an XmlDocument to build using the DOM or use an XmlTextWriter. If you have no initial code I suggest you serch msdn.com for examples.

If you are still stuck let us know.

--

Joe (Microsoft MVP - XML)

Go to topic 39266

Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378
Return to index page 377
Return to index page 376
Return to index page 375