C#读取xml文件指定的值,一级一级往下寻找

手上有一个xml文件,希望能根据提供的xml文件寻找列出指定节点的所有内容,

例如寻找出ELEMENTS下的所有的值uint8,sint32,string,Earea,SRdsSettingInit.........等,
图片说明
就是能实现一级一级往下寻找,

如果存在同一级,列出该同级的所有的值,uint8,sint32,string,Earea,SRdsSettingInit.........等,

也希望能列出我想要的每一级指定的内容的值。
图片说明

xml文件下载地址

7个回答

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Q690372
{
class Program
{
static string getpath(XElement node)
{
string s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0}", "");
while (node.Parent != null)
{
node = node.Parent;
s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0}", "") + "/" + s;
}
return s;
}

    static int getlevel(XElement node)
    {
        int n = 1;
        while (node.Parent != null)
        {
            node = node.Parent;
            n++;
        }
        return n;
    }

    static void Main(string[] args)
    {
        var doc = XDocument.Load(args[0]);
        foreach (var node in doc.Descendants())
        {
            if (getlevel(node) == 6 && node.Descendants().Count() == 0) //获得第六级的叶子节点
                Console.WriteLine(getpath(node) + "=" + node.Value);
        }
    }
}

}

AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=BaseTypes
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=ImplementationDataTypes
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=ApplicationDataTypes
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=CompuMethods
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/SHORT-NAME=Tuner
Press any key to continue . . .

这是第8级

 AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=boolean
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=boolean
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=float32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=float32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=float64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=float64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=UTF_8_String
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=VARIABLE_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=UTF-8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=uint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=VALUE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=VALUE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=string
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRING
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=Earea
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=VALUE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SRdsSettingInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SRadioSettingInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SObtainDataInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SActionState
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SPlayList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=STunerInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SRadioStatu
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=SRdsInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=STRUCTURE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=Vector_sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=VECTOR
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=Vector_string
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=VECTOR
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/SHORT-NAME=Map_sint32_string
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/IMPLEMENTATION-DATA-TYPE/CATEGORY=ASSOCIATIVE_MAP
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/APPLICATION-PRIMITIVE-DATA-TYPE/SHORT-NAME=UTF_8_String
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/APPLICATION-PRIMITIVE-DATA-TYPE/CATEGORY=STRING
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/COMPU-METHOD/SHORT-NAME=Earea
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/COMPU-METHOD/CATEGORY=TEXTTABLE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=SwitchStateEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/string
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=ChangModeEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/string
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=GetFreqEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=ActionStateEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/SActionState
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=PlayListEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/SPlayList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=GetRtDataEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/SObtainDataInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/SHORT-NAME=FavoritesListEvent
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/EVENTS/VARIABLE-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/SPlayList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=switchRadio
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setPlayFrequency
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setRemoteOrLocal
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setStereo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setPTY
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setPI
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setStep
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setTA
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=jumpFreqPoint
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=saveFreqPoint
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=saveFavoriteStation
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=clearFavoritesList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=seekAction
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=scanAction
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=updateAction
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setVolume
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=deleteFavoriteStation
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=changeModeForRadio
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getRadioState
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getModeForRadio
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getCurPlayFrequnecy
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getFrequencyList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getFavoritesList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getVersion
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getTunerInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getRadioStatus
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getRdsInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getPtyInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getPIInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getPSInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getPsList
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getRdsText
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getSettingInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getSettingArea
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getSettingFmBandNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getSettingAmBandNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getBandFreqPonitNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getRdsSwitchStatus
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getSettingVersion
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getHwInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=serviceInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=serviceDestroy
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setVolumeMute
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setAreaInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setFmNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setAmNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setListItemNum
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setRDSInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SHORT-NAME=first
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SYMBOL=com
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SHORT-NAME=second
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SYMBOL=hinge
Press any key to continue . . .
ccc9149
未知昵称 如果我要找到SHORT-NAME=getBandFreqPonitNum的节点,希望通过名字一级一级指下去找
一年多之前 回复
ccc9149
未知昵称 能通过名字一级一级往下找吗?类似这样AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS= AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=getBandFreqPonitNum
一年多之前 回复
ccc9149
未知昵称 之后还会有相关xml文件写入到制定位置的功能,到时候再提问请教您
一年多之前 回复
ccc9149
未知昵称 好的,非常感谢!
一年多之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复ccc9149: 这个只是为了让你看得方便,因为你的xml是有命名空间的。不把它去掉,那么就很长一串。
一年多之前 回复
ccc9149
未知昵称 嗯,这个我知道,就是上面的那个 string s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0", ""); 这个链接是啥意思?
一年多之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复ccc9149: 是从var doc = XDocument.Load(args[0]);这个参数里读取的,这个参数放文件的路径
一年多之前 回复
ccc9149
未知昵称 你这是一个链接读我给你的文件吗?还是?没看懂
一年多之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复ccc9149: 当然能读到,这内容不是读取你的文件难道还是从哪里来的
一年多之前 回复
caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复ccc9149: 你有命名空间嘛,我去掉了你看得清楚一些。留着的话,每个节点前面都加上这么一串
一年多之前 回复
ccc9149
未知昵称 string s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0", ""); 这句话什么意思呢?能读到我给你的xml文档??
一年多之前 回复

不是很清楚你的意思,是寻找所有的叶子节点么?
我写了个例子:

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Q690372
{
    class Program
    {
        static void Main(string[] args)
        {
            var doc = XDocument.Load(args[0]);
            foreach (var node in doc.Descendants())
            {
                if (node.Descendants().Count() == 0)
                    Console.WriteLine(node.Name.ToString().Replace("{http://autosar.org/schema/r4.0}", "") + "=" + node.Value);
            }
        }
    }
}

qq_42328828
qq_42328828 看到代码就头痛。。。
一年多之前 回复
ccc9149
未知昵称 先获取到第六级ImplementationDataTypes的内容,然后只获取第六级ImplementationDataTypes下面的内容?
一年多之前 回复
ccc9149
未知昵称 就是我想实现怎么查找指定层级的内容?
一年多之前 回复

图片说明

 LANGUAGE=EN
L-10=
SHORT-NAME=DataTypes
SHORT-NAME=BaseTypes
SHORT-NAME=boolean
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=8
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=boolean
SHORT-NAME=uint8
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=8
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=uint8
SHORT-NAME=uint16
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=16
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=uint16
SHORT-NAME=uint32
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=32
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=uint32
SHORT-NAME=uint64
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=64
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=uint64
SHORT-NAME=sint8
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=8
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=sint8
SHORT-NAME=sint16
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=16
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=sint16
SHORT-NAME=sint32
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=32
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=sint32
SHORT-NAME=sint64
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=64
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=sint64
SHORT-NAME=float32
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=32
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=float32
SHORT-NAME=float64
CATEGORY=FIXED_LENGTH
BASE-TYPE-SIZE=64
MAX-BASE-TYPE-SIZE=0
BASE-TYPE-ENCODING=NONE
MEM-ALIGNMENT=0
NATIVE-DECLARATION=float64
SHORT-NAME=UTF_8_String
CATEGORY=VARIABLE_LENGTH
BASE-TYPE-ENCODING=UTF-8
SHORT-NAME=ImplementationDataTypes
SHORT-NAME=uint8
CATEGORY=VALUE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sint32
CATEGORY=VALUE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=string
CATEGORY=STRING
SHORT-NAME=Earea
CATEGORY=VALUE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
COMPU-METHOD-REF=/DataTypes/CompuMethods/Earea
SHORT-NAME=SRdsSettingInit
CATEGORY=STRUCTURE
SHORT-NAME=sw_rds_ta
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds_pty
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds_af
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds_eon
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds_reg
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds_ct
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=sw_rds
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=SRadioSettingInit
CATEGORY=STRUCTURE
SHORT-NAME=area
CATEGORY=TYPE_REFERENCE
IMPLEMENTATION-DATA-TYPE-REF=/DataTypes/ImplementationDataTypes/Earea
SHORT-NAME=n_fm
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=n_am
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=len_list
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=stRdsInit
CATEGORY=TYPE_REFERENCE
IMPLEMENTATION-DATA-TYPE-REF=/DataTypes/ImplementationDataTypes/SRdsSettingInit
SHORT-NAME=SObtainDataInfo
CATEGORY=STRUCTURE
SHORT-NAME=szValue
CATEGORY=ARRAY
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
ARRAY-SIZE=36
ARRAY-SIZE-SEMANTICS=FIXED-SIZE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=uArrayItem
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=uMsgId
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=SActionState
CATEGORY=STRUCTURE
SHORT-NAME=szActionName
CATEGORY=ARRAY
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
ARRAY-SIZE=64
ARRAY-SIZE-SEMANTICS=FIXED-SIZE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=szState
CATEGORY=ARRAY
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
ARRAY-SIZE=32
ARRAY-SIZE-SEMANTICS=FIXED-SIZE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=SPlayList
CATEGORY=STRUCTURE
SHORT-NAME=iBand
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=iCurrNum
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=iArray
CATEGORY=ARRAY
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
ARRAY-SIZE=36
ARRAY-SIZE-SEMANTICS=FIXED-SIZE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=STunerInfo
CATEGORY=STRUCTURE
SHORT-NAME=szInfo
CATEGORY=ARRAY
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
ARRAY-SIZE=16
ARRAY-SIZE-SEMANTICS=FIXED-SIZE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint8
SHORT-NAME=iRadioStatus
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=iInitFinish
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=SRadioStatu
CATEGORY=STRUCTURE
SHORT-NAME=flg_seek
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_as
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_scan
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_stereo
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_lacal
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=SRdsInfo
CATEGORY=STRUCTURE
SHORT-NAME=flg_ta
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_pty
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_af
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_eon
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_reg
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=flg_tp
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/uint8
SHORT-NAME=Vector_sint32
CATEGORY=VECTOR
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=Vector_string
CATEGORY=VECTOR
SHORT-NAME=payloadDim1Element
CATEGORY=TYPE_REFERENCE
IMPLEMENTATION-DATA-TYPE-REF=/DataTypes/ImplementationDataTypes/string
SHORT-NAME=Map_sint32_string
CATEGORY=ASSOCIATIVE_MAP
SHORT-NAME=keyElement
CATEGORY=TYPE_REFERENCE
BASE-TYPE-REF=/DataTypes/BaseTypes/sint32
SHORT-NAME=valueElement
CATEGORY=TYPE_REFERENCE
IMPLEMENTATION-DATA-TYPE-REF=/DataTypes/ImplementationDataTypes/string
SHORT-NAME=ApplicationDataTypes
SHORT-NAME=UTF_8_String
CATEGORY=STRING
BASE-TYPE-REF=/DataTypes/BaseTypes/UTF_8_String
SHORT-NAME=CompuMethods
SHORT-NAME=Earea
CATEGORY=TEXTTABLE
LOWER-LIMIT=0
UPPER-LIMIT=0
VT=area_China
LOWER-LIMIT=1
UPPER-LIMIT=1
VT=area_USA
LOWER-LIMIT=2
UPPER-LIMIT=2
VT=area_Europe
LOWER-LIMIT=3
UPPER-LIMIT=3
VT=area_Germany
LOWER-LIMIT=4
UPPER-LIMIT=4
VT=area_Japan
LOWER-LIMIT=5
UPPER-LIMIT=5
VT=area_Russia
LOWER-LIMIT=6
UPPER-LIMIT=6
VT=area_Australia
LOWER-LIMIT=7
UPPER-LIMIT=7
VT=area_add
LOWER-LIMIT=8
UPPER-LIMIT=8
VT=area_n
SHORT-NAME=ServiceInterfaces
SHORT-NAME=Tuner
SHORT-NAME=SwitchStateEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
SHORT-NAME=ChangModeEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
SHORT-NAME=GetFreqEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
SHORT-NAME=ActionStateEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/SActionState
SHORT-NAME=PlayListEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/SPlayList
SHORT-NAME=GetRtDataEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/SObtainDataInfo
SHORT-NAME=FavoritesListEvent
TYPE-TREF=/DataTypes/ImplementationDataTypes/SPlayList
SHORT-NAME=switchRadio
SHORT-NAME=cmd
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=setPlayFrequency
SHORT-NAME=curFreq
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setRemoteOrLocal
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=setStereo
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=setPTY
SHORT-NAME=uPtyValue
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=uPiValue
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=setPI
SHORT-NAME=uPtyValue
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=uPiValue
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=setStep
SHORT-NAME=uStep
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=setTA
SHORT-NAME=uSwitch
TYPE-TREF=/DataTypes/ImplementationDataTypes/uint8
DIRECTION=IN
SHORT-NAME=jumpFreqPoint
SHORT-NAME=index
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=saveFreqPoint
SHORT-NAME=index
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=saveFavoriteStation
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=curStation
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=clearFavoritesList
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=seekAction
SHORT-NAME=cmd
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=scanAction
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=updateAction
SHORT-NAME=cmd
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=setVolume
SHORT-NAME=volume
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=deleteFavoriteStation
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=curStation
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=changeModeForRadio
SHORT-NAME=cmd
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=IN
SHORT-NAME=getRadioState
SHORT-NAME=state
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=getModeForRadio
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=getCurPlayFrequnecy
ARGUMENTS=
SHORT-NAME=getFrequencyList
SHORT-NAME=mode
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=frequencyList
TYPE-TREF=/DataTypes/ImplementationDataTypes/Vector_sint32
DIRECTION=OUT
SHORT-NAME=currentItem
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=OUT
SHORT-NAME=getFavoritesList
SHORT-NAME=favoritesList
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=getVersion
SHORT-NAME=version
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=getTunerInfo
SHORT-NAME=tunerInfo
TYPE-TREF=/DataTypes/ImplementationDataTypes/STunerInfo
DIRECTION=OUT
SHORT-NAME=getRadioStatus
SHORT-NAME=radioStatu
TYPE-TREF=/DataTypes/ImplementationDataTypes/SRadioStatu
DIRECTION=OUT
SHORT-NAME=getRdsInfo
SHORT-NAME=rdsInfo
TYPE-TREF=/DataTypes/ImplementationDataTypes/SRdsInfo
DIRECTION=OUT
SHORT-NAME=getPtyInfo
ARGUMENTS=
SHORT-NAME=getPIInfo
ARGUMENTS=
SHORT-NAME=getPSInfo
ARGUMENTS=
SHORT-NAME=getPsList
SHORT-NAME=psList
TYPE-TREF=/DataTypes/ImplementationDataTypes/Vector_string
DIRECTION=OUT
SHORT-NAME=getRdsText
SHORT-NAME=rdsText
TYPE-TREF=/DataTypes/ImplementationDataTypes/Vector_string
DIRECTION=OUT
SHORT-NAME=getSettingInit
SHORT-NAME=radioSettingInit
TYPE-TREF=/DataTypes/ImplementationDataTypes/SRadioSettingInit
DIRECTION=OUT
SHORT-NAME=getSettingArea
SHORT-NAME=settingArea
TYPE-TREF=/DataTypes/ImplementationDataTypes/Earea
DIRECTION=OUT
SHORT-NAME=getSettingFmBandNum
ARGUMENTS=
SHORT-NAME=getSettingAmBandNum
ARGUMENTS=
SHORT-NAME=getBandFreqPonitNum
ARGUMENTS=
SHORT-NAME=getRdsSwitchStatus
SHORT-NAME=rdsSettingInit
TYPE-TREF=/DataTypes/ImplementationDataTypes/SRdsSettingInit
DIRECTION=OUT
SHORT-NAME=getSettingVersion
SHORT-NAME=settingVersion
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=getHwInfo
SHORT-NAME=hwInfo
TYPE-TREF=/DataTypes/ImplementationDataTypes/string
DIRECTION=OUT
SHORT-NAME=serviceInit
SHORT-NAME=record
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=serviceDestroy
ARGUMENTS=
SHORT-NAME=setVolumeMute
SHORT-NAME=mute
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setAreaInfo
SHORT-NAME=eArea
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setFmNum
SHORT-NAME=num
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setAmNum
SHORT-NAME=num
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setListItemNum
SHORT-NAME=num
TYPE-TREF=/DataTypes/ImplementationDataTypes/sint32
DIRECTION=IN
SHORT-NAME=setRDSInfo
SHORT-NAME=rdsSettingInit
TYPE-TREF=/DataTypes/ImplementationDataTypes/SRdsSettingInit
DIRECTION=IN
SHORT-NAME=first
SYMBOL=com
SHORT-NAME=second
SYMBOL=hinge
Press any key to continue . . .

或者我这样写

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Q690372
{
    class Program
    {
        static string getpath(XElement node)
        {
            string s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0}", "");
            while (node.Parent != null)
            { 
                node = node.Parent;
                s = node.Name.ToString().Replace("{http://autosar.org/schema/r4.0}", "") + "/" + s;
            }
            return s;
        }

        static void Main(string[] args)
        {
            var doc = XDocument.Load(args[0]);
            foreach (var node in doc.Descendants())
            {
                if (node.Descendants().Count() == 0)
                    Console.WriteLine(getpath(node) + "=" + node.Value);
            }
        }
    }
}

AUTOSAR/ADMIN-DATA/LANGUAGE=EN
AUTOSAR/ADMIN-DATA/USED-LANGUAGES/L-10=
AUTOSAR/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=DataTypes
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=BaseTypes
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=boolean
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=boolean
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=uint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=uint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint16
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=sint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=sint64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=float32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=float32
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=float64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=FIXED_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-SIZE=64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MAX-BASE-TYPE-SIZE=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=NONE
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/MEM-ALIGNMENT=0
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/NATIVE-DECLARATION=float64
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/SHORT-NAME=UTF_8_String
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/CATEGORY=VARIABLE_LENGTH
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SW-BASE-TYPE/BASE-TYPE-ENCODING=UTF-8
AUTOSAR/AR-PACKAGES/AR-PACKAGE/AR-PACKAGES/AR-PACKAGE/SHORT-NAME=ImplementationDataTypes
中间省略
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/SHORT-NAME=setRDSInfo
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS/ARGUMENT-DATA-PROTOTYPE/SHORT-NAME=rdsSettingInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS/ARGUMENT-DATA-PROTOTYPE/TYPE-TREF=/DataTypes/ImplementationDataTypes/SRdsSettingInit
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/METHODS/CLIENT-SERVER-OPERATION/ARGUMENTS/ARGUMENT-DATA-PROTOTYPE/DIRECTION=IN
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SHORT-NAME=first
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SYMBOL=com
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SHORT-NAME=second
AUTOSAR/AR-PACKAGES/AR-PACKAGE/ELEMENTS/SERVICE-INTERFACE/NAMESPACES/SYMBOL-PROPS/SYMBOL=hinge
Press any key to continue . . .

不替换的话,输出就是这样的。

 {http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}METHODS/{http://autosar.org/schema/r4.0}CLIENT-SERVER-OPERATION/{http://autosar.org/schema/r4.0}SHORT-NAME=setFmNum
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}METHODS/{http://autosar.org/schema/r4.0}CLIENT-SERVER-OPERATION/{http://autosar.org/schema/r4.0}SHORT-NAME=setAmNum
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}METHODS/{http://autosar.org/schema/r4.0}CLIENT-SERVER-OPERATION/{http://autosar.org/schema/r4.0}SHORT-NAME=setListItemNum
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}METHODS/{http://autosar.org/schema/r4.0}CLIENT-SERVER-OPERATION/{http://autosar.org/schema/r4.0}SHORT-NAME=setRDSInfo
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}NAMESPACES/{http://autosar.org/schema/r4.0}SYMBOL-PROPS/{http://autosar.org/schema/r4.0}SHORT-NAME=first
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}NAMESPACES/{http://autosar.org/schema/r4.0}SYMBOL-PROPS/{http://autosar.org/schema/r4.0}SYMBOL=com
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}NAMESPACES/{http://autosar.org/schema/r4.0}SYMBOL-PROPS/{http://autosar.org/schema/r4.0}SHORT-NAME=second
{http://autosar.org/schema/r4.0}AUTOSAR/{http://autosar.org/schema/r4.0}AR-PACKAGES/{http://autosar.org/schema/r4.0}AR-PACKAGE/{http://autosar.org/schema/r4.0}ELEMENTS/{http://autosar.org/schema/r4.0}SERVICE-INTERFACE/{http://autosar.org/schema/r4.0}NAMESPACES/{http://autosar.org/schema/r4.0}SYMBOL-PROPS/{http://autosar.org/schema/r4.0}SYMBOL=hinge
Press any key to continue . . .
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
C#读取xml文件指定节点内容的值
-
C#读取xml文件节点数据问题
-
C#读取xml文件 获取路径问题。
-
C#读取XML文件数据显示在datagridview控件中
-
c# 对xml文件的增删改写
-
C#读取xml文件,其中某个节点内容显示
-
C#读取xml文件数据。显示在datagridview控件问题
-
C#读取xml文件数据。显示在datagridview控件
-
C#读取XML并绑定Treeview
-
c# 操作xml文件进行修改 请看下面代码
-
C#中,读取数据库数据,写入xml文件
-
c#中一个页面显示多个树形菜单,并且树形菜单的值是从xml文件中读取的?
-
C#,向xml文件指定位置按照格式写入数据 @caozhy
-
C# 读取4g大小的txt文件,并写成xml文件
-
c#中读取目录树xml文件并显示到dataGridView中
-
c# 中操作xml文件 读取所有的父节点 并显示现在listbox中 如下
-
关于C#下的WebService读取数据库并输出XML的问题。
-
C#用linq以节点条件的读取xml并绑定控件
-
c#bootstrap上传文件服务器打不开报错,读取二进制流的问题待解决
-
程序员竟然钟爱这个!我 low了
今天和一帮程序员大佬群里闲聊(需要入群的可以加最底下微信哦~)聊着聊着竟然扯到鞋子一直在讨论穿什么鞋子比较耐脏然后一帮大佬集中围殴小白鞋说小白鞋虽然百搭但是太容易脏,太不...
程序员实用工具网站
目录 1、搜索引擎 2、PPT 3、图片操作 4、文件共享 5、应届生招聘 6、程序员面试题库 7、办公、开发软件 8、高清图片、视频素材网站 9、项目开源 10、算法 11、在线工具宝典大全 程序员开发需要具备良好的信息检索能力,为了备忘(收藏夹真是满了),将开发过程中常用的网站进行整理。 1、搜索引擎 1.1、秘迹搜索 一款无敌有良心、无敌安全的搜索引擎,不会收...
996下的程序员,该如何保证自己的身体健康?
作者:陈大鱼头github:KRISACHAN自从开始写代码之后,一天里大部分的时间都贡献了给了电脑跟那张从X总办公室里搬回来的人体工学椅了。鱼头也经历过无数次的 肥胖 ...
史上最详细的IDEA优雅整合Maven+SSM框架(详细思路+附带源码)
网上很多整合SSM博客文章并不能让初探ssm的同学思路完全的清晰,可以试着关掉整合教程,摇两下头骨,哈一大口气,就在万事具备的时候,开整,这个时候你可能思路全无 ~中招了咩~ ,还有一些同学依旧在使用eclipse或者Myeclipse开发,我想对这些朋友说IDEA 的编译速度很快,人生苦短,来不及解释了,直接上手idea吧。这篇文章每一步搭建过程都测试过了,应该不会有什么差错。本文章还有个比较优秀的特点,就是idea的使用,基本上关于idea的操作都算是比较详细的,所以不用太担心不会撸idea!最后,本文
全球最厉害的 14 位程序员!
来源 | ITWorld 整理自网络全球最厉害的 14 位程序员是谁?今天就让我们一起来了解一下吧,排名不分先后。01. Jon Skeet个人名望:程序技术问答网站 S...
我花了一夜用数据结构给女朋友写个H5走迷宫游戏
起因 又到深夜了,我按照以往在csdn和公众号写着数据结构!这占用了我大量的时间!我的超越妹妹严重缺乏陪伴而 怨气满满! 而女朋友时常埋怨,认为数据结构这么抽象难懂的东西没啥作用,常会问道:天天写这玩意,有啥作用。而我答道:能干事情多了,比如写个迷宫小游戏啥的! 当我码完字准备睡觉时:写不好别睡觉! 分析 如果用数据结构与算法造出东西来呢? ...
招人!入职阿里仅1年,我和做AI的程序员薪资翻了2倍!
最近在知乎上,关于AI的这个话题又被顶起来,其中,这条回答让人印象深刻:在这短短的一条信息里,无疑显示出:AI行业缺人,高端岗位80万年薪恐怕也招不来!小编上周在一个AI...
什么是大公司病(太形象了)
点击蓝色“五分钟学算法”关注我哟加个“星标”,天天中午 12:15,一起学算法作者 | 南之鱼来源 | 芝麻观点(chinamkt)所谓大企业病,一般都具有机构臃肿、多重...
让程序员崩溃的瞬间(非程序员勿入)
今天给大家带来点快乐,程序员才能看懂。 来源:https://zhuanlan.zhihu.com/p/47066521 1. 公司实习生找 Bug 2.在调试时,将断点设置在错误的位置 3.当我有一个很棒的调试想法时 4.偶然间看到自己多年前写的代码 5.当我第一次启动我的单元测试时 ...
Spring高级技术梳理
Spring高级技术梳理 序言正文SpringDate部分Spring全家桶之SpringData——预科阶段Spring全家桶之SpringData——Spring 整合Hibernate与Hibernate JpaSpring全家桶之SpringData——Spring Data JPASpring全家桶之SpringData——SpringData RedisSpringBoot部分Sp...
Git 天天用 但是 Git 原理你了解吗?
Git 原理 做技术一定要知其然知其所以然,意思就是:知道它是这样的,更知道它为什么是这样的。我主要通过4块内容来简单介绍 Git 是原理是什么样的。这4块内容如下: Git 存储目录结构介绍 Git 是如何存储的 Git 的对象 Git引用 当然 Git 原理不仅仅包含这些,想要更深入了解请查看官方教程 https://git-scm.com/book/zh/v2/。 本文内容是我在 Git...
Android——微信自动回复实现
首先本文的测试微信版本是7.0.3 ,亲测可以使用。 需要实现-抓取微信自动回复消息的功能点。 一.首先打开DDMS,使用按钮。 在微信中回复一个消息 点击Stop Method Profiling。 二.查看生成的报表,观察到如下两个方法 其中1应该是发送消息的接口方法。2应该是UI层显示的方法。 三.首先分析第一个方法: 1.,可以看到,参数值是String,返...
分享靠写代码赚钱的一些门路
作者 mezod,译者 josephchang10如今,通过自己的代码去赚钱变得越来越简单,不过对很多人来说依然还是很难,因为他们不知道有哪些门路。今天给大家分享一个精彩...
对计算机专业来说学历真的重要吗?
我本科学校是渣渣二本,研究生学校是985,现在毕业五年,校招笔试、面试,社招面试参加了两年了,就我个人的经历来说下这个问题。 这篇文章很长,但绝对是精华,相信我,读完以后,你会知道学历不好的解决方案,记得帮我点赞哦。 先说结论,无论赞不赞同,它本质就是这样:对于技术类工作而言,学历五年以内非常重要,但有办法弥补。五年以后,不重要。 目录: 张雪峰讲述的事实 我看到的事实 为什么会这样 ...
技术人员要拿百万年薪,必须要经历这9个段位
很多人都问,技术人员如何成长,每个阶段又是怎样的,如何才能走出当前的迷茫,实现自我的突破。所以我结合我自己10多年的从业经验,总结了技术人员成长的9个段位,希望对大家的职...
8000字干货:那些很厉害的人是怎么构建知识体系的
本文约8000字,正常阅读需要15~20分钟。读完本文可以获得如下收益: 分辨知识和知识体系的差别 理解如何用八大问发现知识的连接点; 掌握致用类知识体系的构建方法; 能够应用甜蜜区模型找到特定领域来构建知识体系。 1. 知识体系?有必要吗? 小张准备通过跑步锻炼身体,可因为之前听说过小腿变粗、膝盖受伤、猝死等等与跑步有关的意外状况,有点担心自己会掉进各种坑里,就在微信上问朋友圈一直晒跑步...
万字长文!线性代数的本质课程笔记完整合集
点击上方“Datawhale”,选择“星标”公众号第一时间获取价值内容系列目录1.向量究竟是什么https://www.bilibili.com/video/av5987...
Java 网络爬虫,就是这么的简单
这是 Java 网络爬虫系列文章的第一篇,如果你还不知道 Java 网络爬虫系列文章,请参看 学 Java 网络爬虫,需要哪些基础知识。第一篇是关于 Java 网络爬虫入门内容,在该篇中我们以采集虎扑列表新闻的新闻标题和详情页为例,需要提取的内容如下图所示: 我们需要提取图中圈出来的文字及其对应的链接,在提取的过程中,我们会使用两种方式来提取,一种是 Jsoup 的方式,另一种是 httpcli...
nginx学习,看这一篇就够了:下载、安装。使用:正向代理、反向代理、负载均衡。常用命令和配置文件
文章目录前言一、nginx简介1. 什么是 nginx 和可以做什么事情2.Nginx 作为 web 服务器3. 正向代理4. 反向代理5. 动静分离6.动静分离二、Nginx 的安装三、 Nginx 的常用命令和配置文件四、 Nginx 配置实例 1 反向代理五、 Nginx 配置实例 2 负载均衡六、 Nginx 配置实例 3 动静分离七、 Nginx 的高可用集群 前言 一、nginx简介...
Java 爬虫遇上数据异步加载,试试这两种办法!
这是 Java 爬虫系列博文的第三篇,在上一篇 Java 爬虫遇到需要登录的网站,该怎么办? 中,我们简单的讲解了爬虫时遇到登录问题的解决办法,在这篇文章中我们一起来聊一聊爬虫时遇到数据异步加载的问题,这也是爬虫中常见的问题。 现在很多都是前后端分离项目,这会使得数据异步加载问题更加突出,所以你在爬虫时遇到这类问题不必惊讶,不必慌张。对于这类问题的解决办法总体来说有以下两种: 1、内置一个浏览器内...
Angular 入门教程系列:39:使用ng-alain进行开发
在前面的文章中介绍过ng-alain,当时在使用的时候还显得不是很方便,最简单的一个demo运行的都不是非常流畅。而目前的版本已经做有较大的改进,再这个基础上进行二次开发,尤其是一些后端的平台或者监控的平台看起来都比较不错。在这篇文章中继续来确认一下使用的感受。
相关热词 c#俄罗斯方块源码 c# linq原理 c# 装箱有什么用 c#集合 复制 c# 一个字符串分组 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类