阅读背景:

如何访问节点列表中的节点,有时只出现c#xml

来源:互联网 
    <OrderFeed>
<Order id="1">
    <BillingInformation>
        <Name>Bruce Ganek</Name>
        <Address>99 Main Street</Address>
        <City>Cranston</City>
        <State>RI</State>
        <ZipCode>02910</ZipCode>
    </BillingInformation>
    <ShippingInformation>
        <Name>Governor Chafee</Name>
        <Address>82 Smith St # 115</Address>
        <City>Providence</City>
        <State>RI</State>
        <ZipCode>02903-1121</ZipCode>
    </ShippingInformation>
    <Items>
        <Item>
            <PartNo>JETSWEATER</PartNo>
            <Description>N.Y. Jets Sweatshirt</Description>
            <UnitPrice>10.50</UnitPrice>
            <Quantity>2</Quantity>
            <TotalCost>21.00</TotalCost>
            <CustomerOptions>
                <Size>M</Size>
                <Color>Green</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSWEATER</PartNo>
            <Description>N.Y. Jets Sweatshirt</Description>
            <UnitPrice>7.50</UnitPrice>
            <Quantity>3</Quantity>
            <TotalCost>22.50</TotalCost>

            <CustomerOptions>
                <Size>S</Size>
                <Color>White</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSFLASHLIGHT</PartNo>
            <Description>N.Y. Jets Flashlight</Description>
            <UnitPrice>5.00</UnitPrice>
            <Quantity>1</Quantity>
            <TotalCost>5.00</TotalCost>

            <CustomerOptions/>

        </Item>

    </Items>
</Order>
<Order id="2">
    <BillingInformation>
        <Name>Walt Disney</Name>
        <Address>DisneyWorld Hotel</Address>
        <City>Orlando</City>
        <State>FL</State>
        <ZipCode>32801</ZipCode>
    </BillingInformation>
    <ShippingInformation>
        <Name>Walt Disney</Name>
        <Address>DisneyWorld Hotel</Address>
        <City>Orlando</City>
        <State>FL</State>
        <ZipCode>32801</ZipCode>
    </ShippingInformation>
    <Items>
        <Item>
            <PartNo>JETSWEATER</PartNo>
            <Description>N.Y. Jets Sweatshirt</Description>
            <UnitPrice>10.50</UnitPrice>
            <Quantity>2</Quantity>
            <TotalCost>21.00</TotalCost>
            <CustomerOptions>
                <Size>M</Size>
                <Color>Green</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSWEATER</PartNo>
            <Description>N.Y. Jets Sweatshirt</Description>
            <UnitPrice>7.50</UnitPrice>
            <Quantity>3</Quantity>
            <TotalCost>22.50</TotalCost>

            <CustomerOptions>
                <Size>S</Size>
                <Color>White</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSFLAG</PartNo>
            <Description>N.Y. Jets Flag for display</Description>
            <UnitPrice>5.00</UnitPrice>
            <Quantity>1</Quantity>
            <TotalCost>5.00</TotalCost>

            <CustomerOptions/>

        </Item>

    </Items>
</Order>
<Order id="3">
    <BillingInformation>
        <Name>Tom Brady</Name>
        <Address>One Patriot Place</Address>
        <City>Foxboro</City>
        <State>MA</State>
        <ZipCode>02035</ZipCode>
    </BillingInformation>
    <ShippingInformation>
        <Name>Tom Brady</Name>
        <Address>2121 George Halas Drive</Address>
        <City>Canton</City>
        <State>OH</State>
        <ZipCode>44708</ZipCode>
    </ShippingInformation>
    <Items>
        <Item>
            <PartNo>JETPANTS</PartNo>
            <Description>N.Y. Jets Sweatpants</Description>
            <UnitPrice>10.50</UnitPrice>
            <Quantity>3</Quantity>
            <TotalCost>31.50</TotalCost>
            <CustomerOptions>
                <Size>M</Size>
                <Color>Green</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSWEATER</PartNo>
            <Description>N.Y. Jets Sweatshirt</Description>
            <UnitPrice>7.50</UnitPrice>
            <Quantity>1</Quantity>
            <TotalCost>7.50</TotalCost>

            <CustomerOptions>
                <Size>S</Size>
                <Color>White</Color>
            </CustomerOptions>
        </Item>
        <Item>
            <PartNo>JETSFLAG</PartNo>
            <Description>N.Y. Jets Flag for display</Description>
            <UnitPrice>5.00</UnitPrice>
            <Quantity>1</Quantity>
            <TotalCost>5.00</TotalCost>

            <CustomerOptions/>

        </Item>

    </Items>
</Order>
</OrderFeed>
    <OrderFeed>
<Order id="1">
    <BillingInfo



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: