Hi. I'm new to XML and will be taking a formal XML class next month and have been doing some pre-emptive studying using the (working) code below. I was hoping you'd be able to clarify something for me:
The first line is the version/character set declaration.
The second line is a "comment" line, I believe. (noting the "!" after the ">" symbol)
My question involves the next line, beginning with "<ProvisioningRequest......".
Since the last line is "</ProvisioningRequest>, shouldn't this be considered the Root Element? If so, then why would "ProductType", "TransactionID", etc be included where it is? Shouldn't the ">" bracket be placed directly after the the line as such: <ProvisioningRequest>, and then have the "ProductType", "TranasactionID", etc info follow this instead of the way it's written below, the ">" bracket (that would correspond with "<ProvisioningRequest....") is after the, Version="1.1"> line.
Could anyone explain this to me or point me in the right direction for the answer?
If I've made no sense what so ever, please don't hesitate to ask for clarification.
TIA!
K
------------------------------
<?xmlversion="1.0" encoding="UTF-8"?>
<!DOCTYPE ProvisioningRequest SYSTEM "ProvisioningRequest.dtd">
<ProvisioningRequest
ProductType="Widget"
TransactionId="CCBS:CAY:test5:169.18.3.255:7200:987654321"
TransactionType="Suspend"
Version="1.1">
<Header>
<Sender id="000012345" name="ABC Company">
<Login>testadmin</Login>
<Password>password</Password>
</Sender>
<TimeStamp>2004-03-26T01:07:57</TimeStamp>
</Header>
<Body>
<ProvisioningEntity name="subscriber">
<ProvisioningDataItem name="MSISDN">
13451234567
</ProvisioningDataItem>
<ProvisioningDataItem name="IMSI">
346140102123456
</ProvisioningDataItem>
</ProvisioningEntity>
</Body>
</ProvisioningRequest>
The first line is the version/character set declaration.
The second line is a "comment" line, I believe. (noting the "!" after the ">" symbol)
My question involves the next line, beginning with "<ProvisioningRequest......".
Since the last line is "</ProvisioningRequest>, shouldn't this be considered the Root Element? If so, then why would "ProductType", "TransactionID", etc be included where it is? Shouldn't the ">" bracket be placed directly after the the line as such: <ProvisioningRequest>, and then have the "ProductType", "TranasactionID", etc info follow this instead of the way it's written below, the ">" bracket (that would correspond with "<ProvisioningRequest....") is after the, Version="1.1"> line.
Could anyone explain this to me or point me in the right direction for the answer?
If I've made no sense what so ever, please don't hesitate to ask for clarification.
TIA!
K
------------------------------
<?xmlversion="1.0" encoding="UTF-8"?>
<!DOCTYPE ProvisioningRequest SYSTEM "ProvisioningRequest.dtd">
<ProvisioningRequest
ProductType="Widget"
TransactionId="CCBS:CAY:test5:169.18.3.255:7200:987654321"
TransactionType="Suspend"
Version="1.1">
<Header>
<Sender id="000012345" name="ABC Company">
<Login>testadmin</Login>
<Password>password</Password>
</Sender>
<TimeStamp>2004-03-26T01:07:57</TimeStamp>
</Header>
<Body>
<ProvisioningEntity name="subscriber">
<ProvisioningDataItem name="MSISDN">
13451234567
</ProvisioningDataItem>
<ProvisioningDataItem name="IMSI">
346140102123456
</ProvisioningDataItem>
</ProvisioningEntity>
</Body>
</ProvisioningRequest>