<Param>
<Channel>
<SN>1</SN> 
</Channel>
<Subtitle>
<Type>1</Type>  
<IsShow>2</IsShow>
<Position>
<H>3</H>
<V>3</V>
</Position>
</Subtitle>
<Subtitle>
<Type>2</Type>
<IsShow>4</IsShow>
<Position>
<H>5</H>
<V>6</V>
</Position>
<Text>7</Text>
</Subtitle>
<Subtitle>
<Type>2</Type>
<IsShow>8</IsShow>
<Position>
<H>9</H>
<V>10</V>
</Position>
<Text>11</Text>
</Subtitle>
</Param>

解决方案 »

  1.   

    CString::Find 
    int Find( TCHAR ch ) const;int Find( LPCTSTR lpszSub ) const;int Find( TCHAR ch, int nStart ) const;int Find( LPCTSTR pstr, int nStart ) const;Return ValueThe zero-based index of the first character in this CString object that matches the requested substring or characters; -1 if the substring or character is not found.ParameterschA single character to search for.lpszSubA substring to search for.nStartThe index of the character in the string to begin the search with, or 0 to start from the beginning. The character at nStart is excluded from the search if nStart is not equal to 0.pstrA pointer to a string to search for.ResSearches this string for the first match of a substring. The function is overloaded to accept both single characters (similar to the run-time function strchr) and strings (similar to strstr).Example// First example demonstrating 
    // CString::Find ( TCHAR ch )
    CString s( "abcdef" );
    ASSERT( s.Find( 'c' ) == 2 );
    ASSERT( s.Find( "de" ) == 3 );// Second example demonstrating 
    // CString::Find( TCHAR ch, int nStart )
    CString str("The stars are aligned");
    int n = str.Find('e', 5);
    ASSERT(n == 12);CString Overview |  Class Members |  Hierarchy ChartSee Also   CString::ReverseFind, CString::FindOneOf
      

  2.   

    TinyXML等XML类库都可以支持。
    基本上就是遍历节点,然后比较名称,获取它的值