170 похожих чатов

'''<?Xml version="1.0" encoding="UTF-8"?> <!DOCTYPE phox-response SYSTEM "value"> <!-- server version : 999999999

-->
<phox-response sessionid="9999999999" buildnumber="9999999999999" date="05.04.2021 09:55:42">
<content>
<o n="">
<s n="results">
<o n="results">
<f t="I" v="1278489247" n="objectId"/>
<f t="S" v="Message" n="messageText"/>
<f t="I" v="1278489248" n="id"/>
<f t="L" v="59164260" n="timestamp"/>
<f t="D" v="03.04.2021 11:57:20" n="processDate"/>
<f t="S" v="HEADER" n="header"/>
<f t="I" v="4" n="state"/>
<f t="I" v="51" n="sendType"/>
<f t="I" v="2" n="sendMethod"/>
<f t="D" v="02.04.2021 12:00:38" n="createDate"/>
<f t="S" v="mail1,mail2" n="address"/>
<r n="lab" i="644249461"/>
</o>
<o n="results">
<f t="I" v="1278339695" n="objectId"/>
<f t="S" v="Message" n="messageText"/>
<f t="I" v="1278339696" n="id"/>
<f t="L" v="59164259" n="timestamp"/>
<f t="D" v="03.04.2021 11:57:20" n="processDate"/>
<f t="S" v="HEADER" n="header"/>
<f t="I" v="4" n="state"/>
<f t="I" v="51" n="sendType"/>
<f t="I" v="2" n="sendMethod"/>
<f t="D" v="02.04.2021 10:36:17" n="createDate"/>
<f t="S" v="mail1,mail2" n="address"/>
<r n="lab" i="644249461"/>
</o>
</s>
</o>
</content>
</phox-response>'''

4 ответов

14 просмотров

Дотер...

библиотека lxml с помощью XPath ищет узлы по значению их атрибутов tree.xpath('//f[@n="objectId"]')[0].attrib.get('v') и остальные по аналогии

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта