■ XML 속성 값으로 NULL 사용하기

----------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>

<ArrayOfPerson

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <Person>

        <FirstName>Franz</FirstName>

        <MiddleName />

        <LastName>Schubert</LastName>

        <BirthDate>1797-01-07</BirthDate>

        <DeathDate>1828-11-19</DeathDate>

    </Person>

    <Person>

        <FirstName>Johannes</FirstName>

        <MiddleName />

        <LastName>Brahms</LastName>

        <BirthDate>1833-05-07</BirthDate>

        <DeathDate>1897-04-03</DeathDate>

    </Person>

    <Person>

        <FirstName>John</FirstName>

        <MiddleName />

        <LastName>Adams</LastName>

        <BirthDate>1947-02-15</BirthDate>

        <DeathDate xsi:nil="true" />

    </Person>

</ArrayOfPerson>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker

댓글을 달아 주세요