D
D
Djasar2021-02-22 14:42:58
Parsing
Djasar, 2021-02-22 14:42:58

What is the best way for me to find values ​​in XML?

Help me solve the problem... it's better of course in C#, if it can be done through something easier than wellcom.
1. There is a file 1.XML
2. It is necessary to display all lines with values ​​in one "256 523 309 312 etc." 3. There is a 2.txt or 2.csv file where the values ​​​​are written in the column 319 316 310 265 , etc. p.2) 5. Output to any file (txt or csv), such information like LLT_25_MV_ts_000 = 319 316 XML code attached<Types>265 523 </Types>
<Types>265 523 </Types>

<?xml version="1.0" encoding="UTF-8"?>
<CollecFile xmlns=>
    <fileHeader>
        <fileSender/>
        <Collec beginTime="2021-02-13"/>
    </fileHeader>
    <Data>
        <managedElement userLabel="LLT_25_MV_ts_000"/>
        <Info InfoId="554">
            <granPeriod lacation="LT9" endTime="2021-02-13"/>
            <repPeriod lacation="LT9"/>
            <Types>265 523 </Types>
            <Value Lds="LLT_25_MV_ts_000">
                <Results>10 20 </Results>
            </Value>
        </Info>
        <Info InfoId="297">
            <granPeriod lacation="LT9" endTime="2021-02-13"/>
            <repPeriod lacation="LT9"/>
            <Types>309 312 </Types>
            <Value Lds="LLT_25_MV_ts_000">
                <Results>0 0 </Results>
        </Info>
        <Info InfoId="312">
            <granPeriod lacation="LT9" endTime="2021-02-13"/>
            <repPeriod lacation="LT9"/>
            <Types>308 309 312 317 312 310 </Types>
            <Value Lds="LLT_25_MV_ts_000">
                <Results>10 20 30 40 50 60 </Results>
            </Value>
            <Value Lds="LLT_25_MV_ts_000">
                <Results>10 20 30 40 50 60 </Results>
            </Value>
        </Info>
        </Data>
    <fileFooter>
        <Collec endTime="2021-02-13"/>
    </fileFooter>
</CollecFile>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2021-02-22
@Djasar

elementary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question